问题描述
我正在尝试在Mac OS 10.11上使用Qt Webkit构建Qt 5.6.0(新发行版),尝试时出现编译错误.
I'm trying to build Qt 5.6.0 (new release) with Qt Webkit on Mac OS 10.11 and I have a compiling error when I try.
我下载了5.6.0的tar.gz源,然后从5.6.0的Community文件夹中下载了QtWebkit源.我将qtwebkit文件夹添加到与以前版本相同的qtbase文件夹中.还有什么需要吗?
I downloaded the tar.gz source of 5.6.0, then I downloaded QtWebkit source from Community folder for 5.6.0. I added the qtwebkit folder in the same folder of qtbase like previous version. Anything else is needed?
我正在使用此配置:
OPENSSL_LIBS='-L/usr/local/opt/openssl/lib -lssl -lcrypto' ./configure -nomake examples -opensource -openssl-linked -I /usr/local/opt/openssl/include
经过几个小时的编译,我收到以下错误消息:
After a few hour of compilation, I have this error message:
.pch/debug/QtWebKitWidgets_debug/c++.pch
../include/QtWebKitWidgets/QtWebKitWidgetsDepends:7:10: fatal error: 'QtWebKit/QtWebKit' file not found
#include <QtWebKit/QtWebKit>
^
1 error generated.
make[4]: *** [.pch/debug/QtWebKitWidgets_debug/c++.pch] Error 1
make[3]: *** [debug-all] Error 2
make[2]: *** [sub-widgetsapi-pri-make_first-ordered] Error 2
make[1]: *** [sub-Source-QtWebKit-pro-make_first-ordered] Error 2
make: *** [module-qtwebkit-make_first] Error 2
感谢您的帮助
推荐答案
我在搜索某些邮件时发现了这个问题: http://lists.qt-project.org/pipermail/development/2016-March/025358.html
I found the issue while searching some mailing: http://lists.qt-project.org/pipermail/development/2016-March/025358.html
压缩包的制作不正确,并且缺少合成步骤.
The tarball was not properly made and the synqct step is missing.
要解决此问题,请在qtwidget中创建一个空的.git文件夹并执行qmake,然后为Qtwebkit手动执行syncqt:
To fix, create an empty .git folder (in qtwidget) and execute qmake, then manually execute syncqt for Qtwebkit:
cd qtwidget
mkdir .git
qmake
syncqt.pl Source -version 5.6.0
这篇关于在Mac 10.11上使用QT 5.6构建QtWebKit的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!