When compiling some code with opencv
I get this error
# g++ txtbin-03.1.cpp -o txtbin `pkg-config opencv --cflags --libs`
/usr/bin/ld: cannot fi
I was running into the same problem while trying to install the opencv_contrib repository (opencv-3.1.0/Ubuntu 16.04), and none of the solutions worked (I tried to make OpenCV with flag WITH_IPP=ON
, but somehow OpenCV 3.1.0 failed to download the ippicv
library(?) and there was no error prompt so I only figured this out when I tried to locate ippicv
in terminal).
My solution was to download another OpenCV build (3.0.0 worked for me), make + make install with flag WITH_IPP=ON
, and then copy the downloaded ippicv library (which should be located in /usr/local/share/OpenCV/3rdparty/lib/libippicv.a
by now) to /usr/local/lib/
.
I don't know if this is a known bug in OpenCV 3.1.0, but this one is definitely worth keeping an eye out for.