如何将 qt qmake 版本 4.8 添加到 qt creator?

如何将 qt qmake 版本 4.8 添加到 qt creator?

我有 Qt creator 5.4.1。我有 qmake 5.4.1,但我想为桌面版本添加 qmake 4.8。我该怎么做?
我安装了 gcc4.8,但我不知道 qmake 是否安装?(如果安装了,那么它在哪里?)

root@ubuntu:/home/hgh1# sudo apt-get install gcc-4.8
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  cpp-4.8 g++-4.8 gcc-4.8-base libasan0 libatomic1 libgcc-4.8-dev libgomp1
  libitm1 libquadmath0 libstdc++-4.8-dev libstdc++6
Suggested packages:
  gcc-4.8-locales g++-4.8-multilib gcc-4.8-doc libstdc++6-4.8-dbg
  gcc-4.8-multilib libgcc1-dbg libgomp1-dbg libitm1-dbg libatomic1-dbg
  libasan0-dbg libtsan0-dbg libquadmath0-dbg libstdc++-4.8-doc
The following packages will be upgraded:
  cpp-4.8 g++-4.8 gcc-4.8 gcc-4.8-base libasan0 libatomic1 libgcc-4.8-dev
  libgomp1 libitm1 libquadmath0 libstdc++-4.8-dev libstdc++6
12 upgraded, 0 newly installed, 0 to remove and 695 not upgraded.
Need to get 30.7 MB of archives.
After this operation, 3,194 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main libitm1 i386 4.8.4-2ubuntu1~14.04.3 [28.5 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main libgomp1 i386 4.8.4-2ubuntu1~14.04.3 [25.0 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main libasan0 i386 4.8.4-2ubuntu1~14.04.3 [64.0 kB]
Get:4 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main libatomic1 i386 4.8.4-2ubuntu1~14.04.3 [8,288 B]
Get:5 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main libquadmath0 i386 4.8.4-2ubuntu1~14.04.3 [187 kB]
Get:6 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main g++-4.8 i386 4.8.4-2ubuntu1~14.04.3 [18.0 MB]
Get:7 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main gcc-4.8 i386 4.8.4-2ubuntu1~14.04.3 [4,909 kB]
Get:8 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main cpp-4.8 i386 4.8.4-2ubuntu1~14.04.3 [4,444 kB]
Get:9 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main libstdc++-4.8-dev i386 4.8.4-2ubuntu1~14.04.3 [1,060 kB]
Get:10 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main libgcc-4.8-dev i386 4.8.4-2ubuntu1~14.04.3 [1,735 kB]
Get:11 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main gcc-4.8-base i386 4.8.4-2ubuntu1~14.04.3 [16.2 kB]
Get:12 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main libstdc++6 i386 4.8.4-2ubuntu1~14.04.3 [269 kB]
Fetched 30.7 MB in 4min 29s (114 kB/s)                                         
(Reading database ... 166934 files and directories currently installed.)
Preparing to unpack .../libitm1_4.8.4-2ubuntu1~14.04.3_i386.deb ...
Unpacking libitm1:i386 (4.8.4-2ubuntu1~14.04.3) over (4.8.4-2ubuntu1~14.04) ...
Preparing to unpack .../libgomp1_4.8.4-2ubuntu1~14.04.3_i386.deb ...
Unpacking libgomp1:i386 (4.8.4-2ubuntu1~14.04.3) over (4.8.4-2ubuntu1~14.04) ...
Preparing to unpack .../libasan0_4.8.4-2ubuntu1~14.04.3_i386.deb ...
Unpacking libasan0:i386 (4.8.4-2ubuntu1~14.04.3) over (4.8.4-2ubuntu1~14.04) ...
Preparing to unpack .../libatomic1_4.8.4-2ubuntu1~14.04.3_i386.deb ...
Unpacking libatomic1:i386 (4.8.4-2ubuntu1~14.04.3) over (4.8.4-2ubuntu1~14.04) ...
Preparing to unpack .../libquadmath0_4.8.4-2ubuntu1~14.04.3_i386.deb ...
Unpacking libquadmath0:i386 (4.8.4-2ubuntu1~14.04.3) over (4.8.4-2ubuntu1~14.04) ...
Preparing to unpack .../g++-4.8_4.8.4-2ubuntu1~14.04.3_i386.deb ...
Unpacking g++-4.8 (4.8.4-2ubuntu1~14.04.3) over (4.8.4-2ubuntu1~14.04) ...
Preparing to unpack .../gcc-4.8_4.8.4-2ubuntu1~14.04.3_i386.deb ...
Unpacking gcc-4.8 (4.8.4-2ubuntu1~14.04.3) over (4.8.4-2ubuntu1~14.04) ...
Preparing to unpack .../cpp-4.8_4.8.4-2ubuntu1~14.04.3_i386.deb ...
Unpacking cpp-4.8 (4.8.4-2ubuntu1~14.04.3) over (4.8.4-2ubuntu1~14.04) ...
Preparing to unpack .../libstdc++-4.8-dev_4.8.4-2ubuntu1~14.04.3_i386.deb ...
Unpacking libstdc++-4.8-dev:i386 (4.8.4-2ubuntu1~14.04.3) over (4.8.4-2ubuntu1~14.04) ...
Preparing to unpack .../libgcc-4.8-dev_4.8.4-2ubuntu1~14.04.3_i386.deb ...
Unpacking libgcc-4.8-dev:i386 (4.8.4-2ubuntu1~14.04.3) over (4.8.4-2ubuntu1~14.04) ...
Preparing to unpack .../gcc-4.8-base_4.8.4-2ubuntu1~14.04.3_i386.deb ...
Unpacking gcc-4.8-base:i386 (4.8.4-2ubuntu1~14.04.3) over (4.8.4-2ubuntu1~14.04) ...
Processing triggers for man-db (2.6.7.1-1) ...
Setting up gcc-4.8-base:i386 (4.8.4-2ubuntu1~14.04.3) ...
(Reading database ... 166934 files and directories currently installed.)
Preparing to unpack .../libstdc++6_4.8.4-2ubuntu1~14.04.3_i386.deb ...
Unpacking libstdc++6:i386 (4.8.4-2ubuntu1~14.04.3) over (4.8.4-2ubuntu1~14.04) ...
Setting up libstdc++6:i386 (4.8.4-2ubuntu1~14.04.3) ...
Setting up libitm1:i386 (4.8.4-2ubuntu1~14.04.3) ...
Setting up libgomp1:i386 (4.8.4-2ubuntu1~14.04.3) ...
Setting up libasan0:i386 (4.8.4-2ubuntu1~14.04.3) ...
Setting up libatomic1:i386 (4.8.4-2ubuntu1~14.04.3) ...
Setting up libquadmath0:i386 (4.8.4-2ubuntu1~14.04.3) ...
Setting up cpp-4.8 (4.8.4-2ubuntu1~14.04.3) ...
Setting up libgcc-4.8-dev:i386 (4.8.4-2ubuntu1~14.04.3) ...
Setting up gcc-4.8 (4.8.4-2ubuntu1~14.04.3) ...
Setting up libstdc++-4.8-dev:i386 (4.8.4-2ubuntu1~14.04.3) ...
Setting up g++-4.8 (4.8.4-2ubuntu1~14.04.3) ...
Processing triggers for libc-bin (2.19-0ubuntu6) ...

答案1

您可以下载旧版本的 Qt这里。我相信这将是源代码,所以你可能必须编译它。同一链接中有一个文件解释了如何执行此操作。

编译完成后,您应该能够将旧版 Qt 添加到 QtCreator。转到“工具”->“选项”,然后选择“构建和运行”以添加和配置旧版本。

相关内容