The following error crops up when Cmake executes on AGX Orin
find_package(OpenCV REQUIRED)
CMake Error at /usr/lib/cmake/opencv4/OpenCVModules.cmake:172 (message):
The imported target "opencv_core" references the file
"/usr/lib/libopencv_core.so.4.8.0"
The paths and files should all be set by libopencv-dev, which is installed from the L4T repo:
I’m not sure about the missing .so file, but I might be able to help you compile OpenCV with CUDA support directly on the board, that’s usually what I do.
Alternatively, you can try using this Debian package I compiled for Orin with JetPack 6.0. It includes all OpenCV components, has CUDA support enabled, and replaces the default installation.
It’s JetPack 6.2 with a stock NVIDIA apt package for libopencv-dev, so it seems like there might be an issue with the package itself which contains both the cmake setup files and the opencv libraries. I was hoping somebody from NVIDIA would comment on this, maybe push a fix to L4T if this assessment is correct.
libopencv_core.so (a symlink to libopencv_core.so.408) is included in …-dev.deb.
libopencv_core.so.408 and libopencv_core.so.4.8.0 are both provided by …-libs.deb.
It’s likely your installation didn’t complete correctly, since the -libs package is a dependency of -dev. I suggest reinstalling OpenCV-4.8.0-1-g6371ee1-aarch64-libs.deb manually or using SDK Manager.
Nope, did not work, but thank you for these suggestions. Tried installing your Debian package, tried libopencv-dev as I mentioned before. This should be simple to do using stock NVIDIA tools already compiled with CUDA acceleration.
If you have an AGX Orin, you flash JetPack 6.2 and run apt install libopencv-dev? These are all NVIDIA products, downloaded directly, and you will probably replicate the missing library error that I mentioned when find_package(OpenCV REQUIRED) is called.