简体   繁体   English

如何配置Qt来构建所有模块?

[英]How to configure Qt to build all modules?

I am following the guide to build Qt from sources, but the build seems to be incomplete, I am building with the following configuration: 我正在按照指南从源代码构建Qt,但构建似乎不完整,我使用以下配置构建:

configure -prefix E:\\Qt57b_static_mingw5_64 -release -developer-build -opensource -c++std c++1z -static -no-accessibility -platform win32-g++ -qt-zlib -qt-libpng -qt-libjpeg -qt-freetype -no-compile-examples -no-icu -opengl desktop -skip qtscript -nomake examples -nomake tests configure -prefix E:\\ Qt57b_static_mingw5_64 -release -developer-build -opensource -c ++ std c ++ 1z -static -no-accessibility -platform win32-g ++ -qt-zlib -qt-libpng -qt-libjpeg -qt- freetype -no-compile-examples -no-icu -opengl desktop -skip qtscript -nomake examples -nomake tests

Then jom -j 16 and 15 minutes later it is "done". 然后jom -j 16和15分钟后它“完成”。

I also notice that it doesn't install anything in the prefix directory, and from the timestamps it appears the build has not touched most of the model folders. 我还注意到它没有在前缀目录中安装任何东西,并且从时间戳开始,构建没有触及大多数模型文件夹。 It only builds qtbase and a few other smaller modules, they do contain the static libs, but the rest is not being built. 它只构建qtbase和其他一些较小的模块,它们确实包含静态库,但其余的不是构建的。

Is there something special I need to do in order to build everything? 为了构建一切,我需要做些什么特别的事情吗? It wasn't the case last time I built Qt. 上次我建Qt的情况并非如此。 Or maybe something with the configuration is wrong? 或者可能配置错误的东西? Or maybe GCC5 has a problem with Qt? 或者GCC5可能有Qt问题? Before I was always building with 4.9. 在我总是建造4.9之前。 Also I am building a beta release. 我也正在构建测试版。

The platform is win 7 x64, mingw-w64-i686-gcc 5.3.0-1 该平台赢得7 x64,mingw-w64-i686-gcc 5.3.0-1

EDIT: After running a shadow build, I noticed that the configuration indeed only prepares qtbase for building, the rest is not built. 编辑:运行阴影构建后,我注意到配置确实只准备qtbase进行构建,其余部分没有构建。

You've built likely everything, but you've installed nothing. 你可能已经建成了所有东西,但你什么都没装。

You need to: 你需要:

jom -j
jom install -j

The number of threads to run in parallel is not needed unless you want to use a number other than the number of logical cores. 除非您要使用逻辑核心数以外的数字,否则不需要并行运行的线程数。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM