创建用于构建32位应用程序的工具包

时间:2018-04-04 08:07:48

标签: c++ qt

我需要使用将在Linux中运行的QT构建32位应用程序。我想因此我应该管理用于构建32位二进制文​​件的工具包。目前只有一个套件我已经构建了64位的套件。

enter image description here

为了编译32位应用程序,应该在此工具包中进行哪些更改?

尝试1

我试图再次运行QT安装以安装QT Maintainency  工具。我希望我会在它的帮助下添加套件。我发现安装程序正计划安装QT indirectory我没有/home/g/Qt。我害怕在我的电脑上搞两个QT安装

尝试2

安装32位库也没有给出任何内容:

sudo aptitude install glibc-devel.i386 libstdc ++ - devel.i386 qt5-qtbase-devel.i386

输出:

Couldn't find any package whose name or description matched "glibc-devel.i386"
Couldn't find any package whose name or description matched "libstdc++-devel.i386"
Couldn't find any package whose name or description matched "qt5-qtbase-devel.i386"
Couldn't find any package whose name or description matched "glibc-devel.i386"
Couldn't find any package whose name or description matched "libstdc++-devel.i386"
Couldn't find any package whose name or description matched "qt5-qtbase-devel.i386"
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 7 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.

1 个答案:

答案 0 :(得分:1)

您需要先安装32位系统& Qt库。对于centos / redhat,这就像

yum -y install glibc-devel.i386 libstdc++-devel.i386 qt5-qtbase-devel.i386

其他系统应该类似。

然后将Qt mkspec设置为套件中的linux-g++-32