报错:
05:11:44: Starting /home/yoling/lab/qt_program/build-faceText-Desktop_Qt_5_13_1_GCC_64bit-Debug/faceText ...
/home/yoling/lab/qt_program/build-faceText-Desktop_Qt_5_13_1_GCC_64bit-Debug/faceText: error while loading shared libraries: libopencv_core.so.4.1: cannot open shared object file: No such file or directory
05:11:44: /home/yoling/lab/qt_program/build-faceText-Desktop_Qt_5_13_1_GCC_64bit-Debug/faceText exited with code 127
参考:
解决方法:
创建一个文件/etc/ld.so.conf.d/opencv.conf
然后用vim以超级用户权限打开它,在里面写入opencv库的路径/usr/local/lib/
保存后在bash中输入
sudo ldconfig -v