OpenCV 3.1.0: /usr/bin/ld: cannot find -lippicv

asked 2017-03-28 04:15:48 -0500

missionary gravatar image

I have installed OpenCV 3.1.0 locally in my home directory. Also I have exported the following paths -

export PYTHONPATH="/home/zeus/Libraries/opencv-3.1.0/release/install/lib/python2.7/dist-packages"
export LD_LIBRARY_PATH="/home/zeus/Libraries/opencv-3.1.0/release/install/lib"
export PKG_CONFIG_PATH="/home/zeus/Libraries/opencv-3.1.0/release/install/lib/pkgconfig"

But, when I am trying to compile a program using g++ $1 -o $2 pkg-config --cflags --libs opencv it gives the following error - /usr/bin/ld: cannot find -lippicv collect2: error: ld returned 1 exit status

How can I fix this? The link for -lippicv is there in the pkgconfig of OpenCV3.1.0 but, why is it not present in the lib folder? I can remove it from the pkgconfig file so that it doesn't show that error but, I want to know why this is happening?

edit retag flag offensive close merge delete