Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/macos/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C++ 在Mac 10.11上使用QT 5.6构建QtWebKit_C++_Macos_Qt_Qtwebkit_Qt5.6 - Fatal编程技术网

C++ 在Mac 10.11上使用QT 5.6构建QtWebKit

C++ 在Mac 10.11上使用QT 5.6构建QtWebKit,c++,macos,qt,qtwebkit,qt5.6,C++,Macos,Qt,Qtwebkit,Qt5.6,我试图在Mac OS 10.11上使用Qt Webkit构建Qt 5.6.0(新版本),但尝试时出现编译错误 我下载了5.6.0的tar.gz源代码,然后从5.6.0的社区文件夹下载了QtWebkit源代码。我将qtwebkit文件夹添加到与先前版本相同的qtbase文件夹中。还需要什么吗 我正在使用此配置: OPENSSL_LIBS='-L/usr/local/opt/openssl/lib -lssl -lcrypto' ./configure -nomake examples -opens

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

我下载了5.6.0的tar.gz源代码,然后从5.6.0的社区文件夹下载了QtWebkit源代码。我将qtwebkit文件夹添加到与先前版本相同的qtbase文件夹中。还需要什么吗

我正在使用此配置:

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
.pch/debug/QtWebKitWidgets\u debug/c++.pch
../include/QtWebKitWidgets/QtWebKitWidgetsDepends:7:10:致命错误:“找不到QtWebKit/QtWebKit”文件
#包括
^
生成1个错误。
make[4]:***[.pch/debug/QtWebKitWidgets_debug/c++.pch]错误1
生成[3]:***[debug all]错误2
make[2]:***[sub-widgetsapi-pri-make_first-ordered]错误2
make[1]:***[sub-Source-QtWebKit-pro-make_first-ordered]错误2
make:**[module-qtwebkit-make_first]错误2

感谢您的帮助

我在搜索邮件时发现了问题:

焦油球制作不正确,缺少synqct步骤

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

cd qtwidget
mkdir .git
qmake
syncqt.pl Source -version 5.6.0