ubuntu下qt安装以及环境搭建
1、下载https://download.qt.io/archive/qt/
2、chmod +x qt-opensource-linux-x64-5.14.2.run
3、sudo ./qt-opensource-linux-x64-5.14.2.run
4、sudo vi /usr/lib/x86_64-linux-gnu/qt-default/qtchooser/default.conf
替换内容为
/opt/Qt5.14.2/5.14.2/gcc_64/bin
/opt/Qt5.14.2/
5、确认构建目录存在,如果不存在,会出现错误
Could not create directory "/opt/Qt5.14.2/Examples/Qt-5.14.2/widgets/itemviews/build-addressbook-Desktop_Qt_5_14_2_GCC_64bit-Debug" Error while building/deploying project addressbook (kit: Desktop Qt 5.14.2 GCC 64bit)
5、运行现有exmaple
6、运行
7、效果