Friday, 6 September 2013

C++ linker errors with OpenCV

C++ linker errors with OpenCV

When I'm using opencv I keep getting this error
linker command failed with exit code 1 ld: library not found for
-lopencv_core.2.4.6
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
In my main cpp I use #include <opencv2/opencv.hpp> And in my build
settings Header Search Paths I have the paths connect to
/usr/local/include And I have these two files in my library
libopencv_highgui.2.4.6.dylib and libopencv_core.2.4.6.dylib

No comments:

Post a Comment