且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在 QTCreator 中使用 mingw 在多个内核上进行编译

更新时间:2023-11-09 16:52:22

这是我所做的.

在 Qt Creator 的工具 -> 选项菜单中,在构建和运行"部分下有一个选项,上面写着使用 jom 而不是 nmake".我检查了那个框,但没有任何改变.因此,我转到了项目的构建设置,在构建步骤类别下有一个制作"项目.展开有关的详细信息,您将找到覆盖 mingw32-make.exe:"项.我在那里粘贴了C:\QtSDK\QtCreator\bin\jom.exe",突然间我正在构建多核.

In the Tools -> Options menu in Qt Creator, under the "Build and Run" section there's an option that says "Use jom instead of nmake". I checked that box, but nothing changed. So instead, I went to the project's build settings and under the build steps category there is a "Make" item. Expand the details on that and you'll find a "Override mingw32-make.exe:" item. I pasted "C:\QtSDK\QtCreator\bin\jom.exe" in there, and suddenly I was building with multiple cores.

在 Qt Creator 2.4.1 上为我工作.试试看.

Worked for me on Qt Creator 2.4.1. Give it a try.