我尝试从源代码构建更多 Qt 版本(5.20. 和 5.3.0 alpha),并按照 their website 中的说明进行操作.我打开 Visual Studio 2013 x64 Native Tools 命令行。
我的命令行是这样的:
configure -debug -nomake examples -opensource -platform win32-msvc2013
configure
过程显然运行良好。 (我的意思是不会出现任何错误)。虽然,当我开始构建它时,使用以下行:
jom
它工作了大约 5 到 10 分钟,然后我的命令行报告了以下错误:
c:\qt\qt5.3.0\qt-source\qtdeclarative\src\3rdparty\masm\assembler\MacroAssemblerX86Common.h(913) : see eference to class template instantiation 'JSC::AbstractMacroAssembler<JSC::X86Assembler>::JumpList' being compiled
jom: C:\Qt\Qt5.3.0\QT-SOURCE\qtdeclarative\src\qml\Makefile.Debug [RegExpJitTables.h] Error 1
jom: C:\Qt\Qt5.3.0\QT-SOURCE\qtdeclarative\src\qml\Makefile [debug] Error 2
jom: C:\Qt\Qt5.3.0\QT-SOURCE\qtdeclarative\src\Makefile [sub-qml-make_first-ordered] Error 2
jom: C:\Qt\Qt5.3.0\QT-SOURCE\qtdeclarative\Makefile [sub-src-make_first] Error 2
jom: C:\Qt\Qt5.3.0\QT-SOURCE\Makefile [module-qtdeclarative-make_first] Error 2
我哪里错了?我该如何解决这个问题?
最佳答案
前段时间我遇到了一个非常相似的问题。
如果您想构建 Qt5,请使用来自 GIT 的源代码克隆它:
git clone git://gitorious.org/qt/qt5.git qt5
cd qt5
git checkout stable
此外,如果您不打算使用 webkit 或任何其他库,则将其释放 - 例如:
configure -debug-and-release -no-webkit -opensource -platform win32-msvc2013
完成处理可能需要一段时间。去煮杯咖啡,然后再回来。现在,如果没有出现错误,请运行 command :
..jom.exe -j 8
它应该可以工作。否则,只需对进展情况发表评论,我们可以跟进以使其启动并运行。
关于c++ - 尝试从源构建 Qt 会导致错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22115044/