Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/qt/7.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
如何从源代码构建QtWebEngine 5.10_Qt_Qt5_Qtwebengine - Fatal编程技术网

如何从源代码构建QtWebEngine 5.10

如何从源代码构建QtWebEngine 5.10,qt,qt5,qtwebengine,Qt,Qt5,Qtwebengine,我试图从源代码构建QtWebengine,所以我所做的是从源代码下载QtWebengine 我还安装了上列出的所有依赖项 我按照步骤将cd放入文件夹并运行 git submodule update --init 那就去做吧 但我有一个错误: ~/Documents/qtwebengine 5.10 ❯ qmake -r Cannot read /home/austin/Documents/qtwebengine/qtwebengine-config.pri: No such file or d

我试图从源代码构建QtWebengine,所以我所做的是从源代码下载QtWebengine

我还安装了上列出的所有依赖项

我按照步骤将cd放入文件夹并运行

git submodule update --init
那就去做吧 但我有一个错误:

~/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:我目前正在使用Ubuntu16.04 LTS,我也遇到了同样的问题,解决方案是:

安装所有依赖项:wiki.qt.io/Building\u qt\u 5\u from\u Git 1) 构建qt5.10 2) 在qt5.10之后,构建了相同的步骤
找不到必需的gperf。
-@applepie,这不是说它找不到构建所需的特定版本的gperf工具吗?请注意,应该安装所有依赖项使用信息:在qt.5.9和更高版本上,我用于删除qtwebengine目录,
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

make
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 -j