我在Ubuntu18上使用qt-everywhere-src-5.15.0.tar.xz和gcc-linaro-7.4.1-2019.02-x86_64_arm- linux-gnueabihf工具链交叉编译Qt,特别是QtWebEngine。
我使用以下配置:
../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时,配置会失败,并显示以下警告:
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复制的文件?
发布于 2020-08-12 05:03:16
似乎唯一缺少的库是xtst、xcomposite、xi等。这些库位于Pi上的/usr/share中。所以你的sysroot也必须同步那个文件夹。
https://stackoverflow.com/questions/63109749
复制相似问题