我正在尝试为我的树莓派交叉编译Qt库。我实际上让它工作了,但是我正在计划的项目最需要的模块没有编译。我需要网络引擎模块。
以下是配置脚本的输出:
Qt WebEngine:
Embedded build ......................... yes
Pepper Plugins ......................... no
Printing and PDF ....................... no
Proprietary Codecs ..................... no
Spellchecker ........................... yes
Native Spellchecker .................... no
WebRTC ................................. no
Use System Ninja ....................... no
Geolocation ............................ yes
Use v8 snapshot ........................ yes
Use ALSA ............................... yes
Use PulseAudio ......................... yes
Optional system libraries used:
re2 .................................. no
icu .................................. no
libwebp, libwebpmux and libwebpdemux . yes
opus ................................. yes
ffmpeg ............................... no
libvpx ............................... no
snappy ............................... no
libsrtp .............................. no
glib ................................. yes
zlib ................................. yes
minizip .............................. yes
libevent ............................. yes
jsoncpp .............................. yes
protobuf ............................. no
libxml2 and libxslt .................. yes
lcms2 ................................ no
png .................................. yes
harfbuzz ............................. yes
Required system libraries:
fontconfig ........................... yes
dbus ................................. yes
nss .................................. yes
khr .................................. yes
glibc ................................ yes
Required system libraries for qpa-xcb:
libdrm ............................... yes
xcomposite ........................... no
xcursor .............................. no
xi ................................... no
xrandr ............................... no
xtst ................................. no
如您所见,我有所需的系统库。但是我需要Qt WebEngine标题下列出的所有内容吗?
编辑:我发现为什么它跳过qtWebEngine:
V8 snapshot cannot be built. Most likely, the 32-bit host compiler does not work. Please make sure you have 32-bit devel environment installed, or configure webengine with '-no-webengine-v8-snapshot'
QtWebEngine will not be built.
我不确定 V8 快照的用途以及为什么安装程序无法使用 32 位编译器。
这可能是你的问题:https://bugreports.qt.io/browse/QTBUG-67983
如您所见,这在Qt 5.11.1中已修复。不幸的是,还有另一个错误会阻止您编译QtWebengine(包括解决方法(:https://bugreports.qt.io/browse/QTBUG-65256