I have the following issue encoutering during caffe installation: /usr/bin/ld: cannot find -lopencv_imgcodecs
I built opencv3.2, but I believe I have an issue with linking the cv2.cpython-36m-x86_64-linux-gnu.so
library. I tried adding it to the LD_LIBRARY_PATH
but it still fails with the same error.
Shall I make a link to the cv2.cpython-36m-x86_64-linux-gnu.so
in the LD path? if yes, which path exactly shall I make the link in it.
Here is the last few lines of the output (the error msg):
CXX examples/mnist/convert_mnist_data.cpp
CXX .build_release/src/caffe/proto/caffe.pb.cc
AR -o .build_release/lib/libcaffe.a
LD -o .build_release/lib/libcaffe.so.1.0.0
/usr/bin/ld: cannot find -lopencv_imgcodecs
collect2: error: ld returned 1 exit status
Makefile:572: recipe for target '.build_release/lib/libcaffe.so.1.0.0' failed
make: *** [.build_release/lib/libcaffe.so.1.0.0] Error 1