首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何从源代码构建QtWebEngine 5.10

如何从源代码构建QtWebEngine 5.10
EN

Stack Overflow用户
提问于 2017-11-04 00:38:31
回答 1查看 7.2K关注 0票数 4

我正在尝试从源代码构建QtWebengine,所以我已经从http://code.qt.io/cgit/qt/qtwebengine.git/下载了qtwebengine

我还安装了http://wiki.qt.io/QtWebEngine/How_to_Try上列出的所有依赖项

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

代码语言:javascript
复制
git submodule update --init

然后是qmake,但我得到了这个错误:

代码语言:javascript
复制
~/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

EN

回答 1

Stack Overflow用户

发布于 2018-02-21 13:51:02

我也有同样的问题,对我有效的解决方案是:

安装所有依赖项: wiki.qt.io/Building_Qt_5_from_Git

1)构建qt 5.10

代码语言:javascript
复制
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

2) qt5.10之后构建相同的步骤

代码语言:javascript
复制
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
票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/47100545

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档