loading shared libraries error
。
当我输入时从终端
>>pkg-config --libs opencv
-L/usr/local/lib -lopencv_cudabgsegm -lopencv_cudaobjdetect -lopencv_cudastereo -lopencv_shape -lopencv_stitching -lopencv_cudafeatures2d -lopencv_superres -lopencv_cudacodec -lopencv_videostab -lopencv_cudaoptflow -lopencv_cudalegacy -lopencv_calib3d -lopencv_features2d -lopencv_objdetect -lopencv_highgui -lopencv_videoio -lopencv_photo -lopencv_imgcodecs -lopencv_cudawarping -lopencv_cudaimgproc -lopencv_cudafilters -lopencv_video -lopencv_ml -lopencv_imgproc -lopencv_flann -lopencv_cudaarithm -lopencv_core -lopencv_cudev
文件内
sudo gedit /etc/ld.so.conf.d/opencv.conf
我有/ usr / local / lib
然后在Eclipse中,我设置了所有include和lib路径,如附图所示。
然后构建项目没有错误。 但是当我调试时,错误是
error while loading shared libraries: libopencv_core.so.3.1: cannot open shared object file: No such file or directory
可能出现什么问题?
由于
答案 0 :(得分:1)
Batuman于2月2日10:10发布,在终点站运行: sudo ldconfig 2016年9月9日验证,Ubuntu 16.04.1,Eclipse Luna和Opencv 3.1