提问者:小点点

libopencv_highgui.so.4.4:无法打开共享对象文件:没有这样的文件或目录


我正在用
g++-std=C++11-I/usr/local/include/opencv4/recordvideo.cpp-l/usr/local/lib-lopencv_objdetecte-lopencv_features2d-lopencv_imgproc-lopencv_highgui-lopencv_core-lopencv_videoo
加载共享库时遇到错误
错误:libopencv_highgui.so4.4:无法打开共享对象文件:没有这样的文件或目录
但它以


共1个答案

匿名用户

使用链接https://github.com/cggos/dip_cvqt/issues/1解决

    Find the folder containing the shared library libopencv_core.so.3.2 using the following command line.

sudo find / -name "libopencv_core.so.3.2*"

Then I got the result: /usr/local/lib/libopencv_core.so.3.2.
2. Create a file called /etc/ld.so.conf.d/opencv.conf and write to it the path to the folder where the binary is stored.For example, I wrote /usr/local/lib/ to my opencv.conf file.
3. Run the command line as follows.

sudo ldconfig -v

    Try to run the test binary again.