2016-07-14 15 views
1

Nach der Installation von opencv3 auf meinem OSX gefunden, ich diesen BefehlBibliothek nicht für -lippicv

g++ -ggdb `pkg-config --cflags --libs opencv` facedetect.cpp -o /tmp/test && /tmp/test 

ich diesen Fehler bekam

ld: library not found for -lippicv 
    clang: error: linker command failed with exit code 1 (use -v to see invocation) 

Antwort

0

Wenn Sie mit Mac OSX sind kompilieren, ich lief in das gleiche Problem und fand eine Lösung here, unter "OpenCV 3 unter Mac OSX mit Brühen installieren", "Fehlerbehebung":

# Find ippicv 
find /usr/local -name "libippicv.a" 
# For me it is /usr/local/Cellar/opencv3/3.1.0_3/share/OpenCV/3rdparty/lib/libippicv.a 

# Make a symlink to /usr/local/lib 
ln -s /some/path/OpenCV/3rdparty/lib/libippicv.a /usr/local/lib/ 

# I used 
ln -s /usr/local/Cellar/opencv3/3.1.0_3/share/OpenCV/3rdparty/lib/libippicv.a /usr/local/lib/