我正在尝试从源代码构建QtWebengine,所以我已经从http://code.qt.io/cgit/qt/qtwebengine.git/下载了qtwebengine
我还安装了http://wiki.qt.io/QtWebEngine/How_to_Try上列出的所有依赖项
我按照步骤cd进入文件夹并运行
git submodule update --init然后是qmake,但我得到了这个错误:
~/Documents/qtwebengine 5.10
❯ qmake -r
Cannot read /home/austin/Documents/qtwebengine/qtwebengine-config.pri: No such file or directory
/home/austin/Documents/qtwebengine/mkspecs/features/platform.prf:68: 'qtConfig' is not a recognized test function.
/home/austin/Documents/qtwebengine/mkspecs/features/configure.prf:33: 'qtConfig' is not a recognized test function.
Required gperf could not be found.
QtWebEngine will not be built.是否需要创建自己的qtwebengine-config.pri文件?
ps:我现在使用的是Ubuntu 16.04 LTS
发布于 2018-02-21 13:51:02
我也有同样的问题,对我有效的解决方案是:
安装所有依赖项: wiki.qt.io/Building_Qt_5_from_Git
1)构建qt 5.10
git clone git://code.qt.io/qt/qt5.git qt5
cd qt5
perl init-repository --module-subset=default,-qtwebengine
./configure -developer-build -opensource -nomake examples -nomake tests
make2) qt5.10之后构建相同的步骤
git clone git://code.qt.io/qt/qt5.git qwebeng
cd qwebeng
perl init-repository --module-subset=qtwebengine,qtwebplugin,qtwebsoskets,qtwebview
cd qtwebengine
/yourQt5.10dir/base/bin/qmake
make -jhttps://stackoverflow.com/questions/47100545
复制相似问题