下载Qt安装包
官网下载速度较慢,可以从国内镜像下载。
- 清华大学:https://mirrors.tuna.tsinghua.edu.cn/qt/
- 中国科学技术大学:http://mirrors.ustc.edu.cn/qtproject/
- 中国互联网络信息中心:https://mirrors.cnnic.cn/qt/
安装包名称:qt-opensource-linux-x64-5.14.2.run
./qt-opensource-linux-x64-5.14.2.run安装好后需要一些配置才能开始开发。
配置
- 安装
g++、gcc编译器
sudo apt-get install build-essential
- 安装
OpenGL库
sudo apt-get install mesa-common-dev
如果没有OpenGL库会报can't find -lGL错误。










