This repository is for fresh blood who join in algorithm group
any of install packages are supposed to be put in /home/username
, you can type 'pwd'
to locate your current folder.
Remember to type these codes in your .pro file
#Configs
TEMPLATE = app
CONFIG += console
CONFIG -= app_bundle
CONFIG -= qt
CONFIG += c++14
#Libraries
unix: CONFIG += link_pkgconfig
#OpenCV
unix: PKGCONFIG += opencv
1.cannot find -lGL
solution: https://www.cnblogs.com/coding-my-life/p/5677256.html
2.TypeError: Property 'asciify' of object Core::Internal::UtilsJsExtension(0xa2d060) is not a function
solution: https://www.cnblogs.com/zhangjunwu/p/7417566.html
3.error while loading shared libraries: libgstreamer-0.10.so.0: cannot open shared object file: No such file or directory
solution: https://blog.csdn.net/pyf09/article/details/55777217
4.can't open your picture like this
image = imread('1.jpg', IMREAD_COLOR);
solution: use absolute address to load picture like this
image = imread('/home/username/qt_test/1.jpg', IMREAD_COLOR);
记得把opencv压缩包解压到/home/username目录下