Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
442 views
in Technique[技术] by (71.8m points)

c++ - Qt 5.12.0 MinGW 7.3 w64从Windows 64交叉编译到Windows x86(Qt 5.12.0 MinGW 7.3 w64 cross compile from windows 64 to windows x86)

I have recently updated Qt to v 5.12.0.

(我最近将Qt更新为v 5.12.0。)

This version includes MinGW 7.3 W64 and there is not option to download MinGW 7.3 W32 as in previous version of Qt (see image below).

(此版本包括MinGW 7.3 W64,没有像以前的Qt版本一样下载MinGW 7.3 W32的选项(请参见下图)。)

Qt安装程序可用的工具

I've built my application using QtCreator 4.8.1, and it was built without issues, however i noticed that my binary file is in 64 bits, and not in 32 bits like in previous version of Qt.

(我已经使用QtCreator 4.8.1构建了我的应用程序,并且构建时没有问题,但是我注意到我的二进制文件是64位的,而不是Qt以前版本中的32位。)

My problem is that i want to build my application for x86 platforms, but i can't find any options in Qt to do that.

(我的问题是我想为x86平台构建我的应用程序,但是我无法在Qt中找到任何选项来做到这一点。)

How can i cross compile my app for x86 using MinGW 7.3 w64 and QtCreator ?

(如何使用MinGW 7.3 w64和QtCreator为x86交叉编译我的应用程序?)

FYI: My OS is Windows 10 x64.

(仅供参考:我的操作系统是Windows 10 x64。)

Thanks in advanced.

(先谢谢了。)

  ask by kato2 translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

可以单独下载mingw-64的32位版本https://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Personal%20Builds/mingw-builds/5.3.0/之后您应该在Qt Creator中配置您的Qt工具包。


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...