使用特定版本的Qt和GCC进行安装
1.安装编译环境
1
| sudo apt-get install build-essential
|
2.安装GCC7
1
| sudo apt-get install gcc-7
|
3.安装G++
1
| sudo apt-get install g++-7
|
4.设置软链接(默认链接)
1 2 3
| ln -s /usr/bin/gcc-7 /usr/bin/gcc -f ln -s /usr/bin/gcc-ar-7 /usr/bin/gcc-ar -f ln -s /usr/bin/g++-7 /usr/bin/g++ -f
|
5.安装Qt
1
| sudo apt-get install qt5-default
|
6.安装通用字体配置库
1
| sudo apt-get install libfontconfig1
|
7.安装OpenGL库
1 2
| sudo apt-get install mesa-common-dev sudo apt-get install libglu1-mesa-dev -y
|
8.设置文件关联
1
| [Desktop Entry] Version=1.0 Encoding=UTF-8 Type=Application Name=QtCreator Comment=QtCreator NoDsiplay=true Exec=(Install folder of QT)/Tools/QtCreator/bin/qtcreator %f Icon=(Install folder of QT)/5.4/Src/qtdoc/doc/images/landing/icon_QtCreator_78x78px.png Name[en_US]=Qt-Creator
|
9.安装CMake
1
| sudo apt-get install cmake
|
10.安装Git
1
| sudo apt-get install git
|
11.安装gdb
1
| sudo apt-get install gdb
|
12.安装Qt IDE
1
| sudo apt-get install qtcreator
|
13.下载qt5.14.2 .run (AMD64)安装包
ARM版本安装需要自己编译
链接直达:https://download.qt.io/archive/qt/5.14/5.14.2/
PS:之后的版本不在提供安装包