【问题标题】:How to build QtWebEngine 5.10 from source如何从源代码构建 QtWebEngine 5.10
【发布时间】:2017-11-03 16:38:30
【问题描述】:

我正在尝试从源代码构建 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

【问题讨论】:

  • Required gperf could not be found. — @applepie,这不是说它找不到构建所需的特定版本的 gperf 工具吗?

标签: qt qt5 qtwebengine


【解决方案1】:

我遇到了同样的问题,对我有用的解决方案是:

安装所有依赖项: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

make

2) 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 -j

【讨论】:

猜你喜欢
  • 1970-01-01
  • 2015-07-30
  • 2010-11-17
  • 2021-10-07
  • 2012-01-21
  • 2012-06-13
  • 2012-08-22
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多