I’m cross-compiling a Linux library for ARM using dockcross and linking to OpenCV. OpenCV builds and installs successfully, but configuring my library gives me errors like this:
CMake Error in build/_deps/mylib-src/CMakeLists.txt:
IMPORTED_LOCATION not set for imported target "opencv_core"
Did you ever figure this out? I’m having the same problem with current latest OpenCV.
I think it may be because I created a static build of OpenCV that is installed into a target directory. I’ve read somewhere that static builds can only be used from the source tree. Is that possible?