Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

ld: library not found for -lopencv_calib3d.2.4.3

Hi,

I'm working on a mac 10.7.5 and xcode 4.6.2. I've followed a tutorial to install opencv and cmake.

In terminal :

 mkdir build
cd build
cmake -D WITH_TBB=OFF -D BUILD_NEW_PYTHON_SUPPORT=OFF -D BUILD_FAT_JAVA_LIB=OFF -D BUILD_TBB=OFF -D BUILD_EXAMPLES=ON -D CMAKE_CXX_COMPILER=g++ CMAKE_CC_COMPILER=gcc -D CMAKE_OSX_ARCHITECTURES=x86_64 -D BUILD_opencv_java=OFF -G "Unix Makefiles" ..
make -j8
sudo make install

I've opened up Xcode and added the .dylib files from /usr/local/lib changed the header files

Then I wrote an include to test:

#include <opencv2/opencv.hpp>
#include <opencv2/highgui/highgui.hpp>

The error I'm getting is :

ld: library not found for -lopencv_calib3d.2.4.3
collect2: ld returned 1 exit status
Command /Applications/Xcode.app/Contents/Developer/usr/bin/llvm-g++-4.2 failed with exit code 1

Can anyone give me a hand fixing this? Would be greatly appreciated!