I'm trying to cross compile to an ARM target, which already has a fakeroot directory with OpenCV installed.
When using find_package(OpenCV)
, it manages to find the OpenCV directory (after setting CMAKE_FIND_ROOT_PATH
to the fakeroot directory), but then it says:
CMake Error at /fakeroot/usr/lib/cmake/opencv4/OpenCVModules.cmake:379 (message):
The imported target "opencv_core" references the file
"/usr/lib/libopencv_core.so.4.1.0"
Can I add a prefix to point to the correct location of the file?