Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

libopencv_core.so.3.1: cannot open shared object file: No such file or directory

I was trying to run an OpenCV-based code which was compiled using Cmake and make. 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:

/usr/local/lib/libopencv_core.so.4.1.1
/usr/local/lib/libopencv_core.so
/usr/local/lib/libopencv_core.so.3.4
/usr/local/lib/libopencv_core.so.4.1
/usr/local/lib/libopencv_core.so.3.4.7

How to solve this problem? Why it looks for only 3.1? Where does this number come from?!