首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Raspberry Pi 4的交叉编译QtWebEngine

Raspberry Pi 4的交叉编译QtWebEngine
EN

Stack Overflow用户
提问于 2020-07-27 14:27:01
回答 1查看 751关注 0票数 0

我在Ubuntu18上使用qt-everywhere-src-5.15.0.tar.xz和gcc-linaro-7.4.1-2019.02-x86_64_arm- linux-gnueabihf工具链交叉编译Qt,特别是QtWebEngine。

我使用以下配置:

代码语言:javascript
复制
../qt-everywhere-src-5.15.0/configure \
  -opengl es2 -device linux-rasp-pi4-v3d-g++ \
  -device-option CROSS_COMPILE=~/raspi/tools/gcc-linaro-7.4.1-2019.02-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf- \
  -sysroot ~/raspi/sysroot \
  -prefix /usr/local/qt5pi \
  -opensource -confirm-license -no-gbm \
  -skip qtscript -skip qtandroidextras -skip qtcanvas3d \
  -skip qtgamepad -skip qtmacextras -skip qtpurchasing \
  -skip qtwinextras -skip qtx11extras \
  -nomake tests -nomake examples -make libs \
  -pkg-config -no-use-gold-linker -v

如果我在configure命令中包含"-skip qtwebengine“,所有编译都可以正常工作,但当我包含qtwebengine时,配置会失败,并显示以下警告:

代码语言:javascript
复制
WARNING: Could not find all necessary libraries for qpa-xcb support in QtWebEngine.
WARNING: QtWebEngine will not be built.

经过一段时间的搜索,我知道了这个警告的原因。QtWebEngine使用pkg-config来获取所需的库(例如xtst、xcomposite等)并使用我主机系统上的库,而不是使用从raspberry复制的包。

我如何配置它,以使用从raspberry sysroot复制的文件?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2020-08-12 05:03:16

似乎唯一缺少的库是xtst、xcomposite、xi等。这些库位于Pi上的/usr/share中。所以你的sysroot也必须同步那个文件夹。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/63109749

复制
相关文章

相似问题

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