c++ - 尝试从源构建 Qt 会导致错误

标签 c++ qt visual-studio-2013

我尝试从源代码构建更多 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/

相关文章:

c++ - 何时在编译过程中内联函数

c++ - 在 QtCreator 中调试到外部库

visual-studio - 从查找符号/查找所有引用中排除项目

qt - 使用Qt的QLabel点击事件?

c++ - 使用 QPainter 绘制着色 QPixmap

visual-studio-2012 - Visual Studio 2012 上的 SSDT 损坏然后修复,再次损坏在 VS2013 上也损坏

visual-studio - 在TFS项目中,Visual Studio将WCF类标记为 “Type or namespace could not be found”,但是可以完美地编译和构建它们

c++ - 为 C++ 程序编写 makefile

c++ - C++ 中的循环指针

c++ - 为什么 TMutex 方法 Acquire() 不锁定互斥量?