I was trying to compile and run a Caffe code repo located here, which I compiled using Cmake and make (also in the repo). So apparently it comes from Caffe which I built from source code. I have OpenCV 3.4.7 installed, but I don't know why when running the executable, it picks on the version:
error while loading shared libraries: libopencv_core.so.3.1: cannot open shared object file: No such file or directory
I see the followings are already in /usr/local/lib:
It's more shared files than this. And when doing make, I see following warnings regarding them:
[100%] Linking CXX executable DeepVideoSummExample
/usr/bin/ld: warning: libboost_system.so.1.58.0, needed by /home/user/Downloads/caffe/build/lib/libcaffe.so, may conflict with libboost_system.so.1.61.0
/usr/bin/ld: warning: libopencv_core.so.3.1, needed by /home/user/Downloads/caffe/build/lib/libcaffe.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libopencv_imgproc.so.3.1, needed by /home/user/Downloads/caffe/build/lib/libcaffe.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libopencv_imgcodecs.so.3.1, needed by /home/user/Downloads/caffe/build/lib/libcaffe.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libboost_thread.so.1.58.0, needed by /home/user/Downloads/caffe/build/lib/libcaffe.so, may conflict with libboost_thread.so.1.61.0
But how to solve this problem? Why it looks for only 3.1? Where does this number come from?! I don't see anywhere 3.1 being hardcoded.
I was trying to compile and run a Caffe code repo located here, which I compiled using Cmake and make (also in the repo). So apparently it comes from
Caffe
which I built from source code. I haveOpenCV 3.4.7
installed, but I don't know why when running the executable, it picks on the version:I see the followings are already in
/usr/local/lib
:It's more shared files than this. And when doing
make
, I see following warnings regarding them:But how to solve this problem? Why it looks for only
3.1
? Where does this number come from?! I don't see anywhere 3.1 being hardcoded.