我正在尝试在 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
谢谢你的帮助