我已经从github成功编译了QT-5.8,每个子模块都是由QT提供的init-repository克隆的。但是在Qt5.8中,已经去掉了qtwebkit。
但我的应用程序需要 qtwebkit,所以我克隆 qtwebkit 子模块并对其进行 qmake。
但是,它显示编译错误
( test -e Makefile.api || /usr/local/Qt-5.8.0/bin/qmake -o Makefile.api /home/tumh/qt5/qtwebkit/Source/api.pri ) && make -f Makefile.api
make[1]: Entering directory '/home/tumh/qt5/qtwebkit/Source'
make[1]: *** No rule to make target '/home/tumh/qt5/qtwebkit/Source/WebCore//libWebCore.a', needed by '../lib/libQt5WebKit.so.5.8.0'. Stop.
make[1]: Leaving directory '/home/tumh/qt5/qtwebkit/Source'
Makefile:40: recipe for target 'sub-api-pri-make_first-ordered' failed
make: *** [sub-api-pri-make_first-ordered] Error 2
我不知道如何在 QT 中编译单个子模块。
如有任何建议,我们将不胜感激。
谢谢!
最佳答案
你应该从 official releases 中获取 webkit 的 tarball .它应该可以很好地使用 Qt-5.8 构建。
关于c++ - qt-5.8编译qtwebkit的方法,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42173074/