0

我正在尝试在 Mac OS 10.11 上使用 Qt Webkit 构建 Qt 5.6.0(新版本),但在尝试时出现编译错误。

我下载了 5.6.0 的 tar.gz 源代码,然后我从 Community 文件夹下载了 5.6.0 的 QtWebkit 源代码。我在 qtbase 的同一文件夹中添加了 qtwebkit 文件夹,就像以前的版本一样。还需要什么吗?

我正在使用这个配置:

OPENSSL_LIBS='-L/usr/local/opt/openssl/lib -lssl -lcrypto' ./configure -nomake examples -opensource -openssl-linked -I /usr/local/opt/openssl/include

编译几个小时后,我收到以下错误消息:

.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

谢谢你的帮助

4

1 回答 1

0

我在搜索一些邮件时发现了这个问题:http: //lists.qt-project.org/pipermail/development/2016-March/025358.html

未正确制作 tarball,并且缺少 synqct 步骤。

要修复,创建一个空的 .git 文件夹(在 qtwidget 中)并执行 qmake,然后为 Qtwebkit 手动执行 syncqt:

cd qtwidget
mkdir .git
qmake
syncqt.pl Source -version 5.6.0
于 2016-03-20T22:05:17.513 回答