【问题标题】:Building QtWebKit with QT 5.6 on Mac 10.11在 Mac 10.11 上使用 QT 5.6 构建 QtWebKit
【发布时间】:2016-03-20 18:32:48
【问题描述】:

我正在尝试在 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

感谢您的帮助

【问题讨论】:

    标签: c++ macos qt qtwebkit qt5.6


    【解决方案1】:

    我在搜索一些邮件时发现了这个问题: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-02-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-10-08
      • 2016-03-20
      • 1970-01-01
      • 2017-01-12
      • 1970-01-01
      相关资源
      最近更新 更多