|
【Linux】
Linux 如何移植支持xcb和webengine的QT 5.15.2
发表于 2021-6-28 18:01:08
浏览:10451
|
回复:1
打印
只看该作者
[复制链接]
楼主
想要往Ubuntu系统上移植指定版本的QT,在QT官网下载源码后configure如下:
- #~/bin/bash
- ./configure \
- -v \
- -sysroot /home/matinal/workstation/rk-source/rk3399-linux/other/ubuntu/binary \
- -extprefix /opt/Qt5.15.2-armhf \
- -hostprefix /opt/Qt5.15.2-armhf-host \
- -xplatform linux-arm-gnueabihf-g++ \
- -opensource \
- -confirm-license \
- -shared \
- -pkg-config \
- -strip \
- -xcb-xlib \
- -xcb \
- -make libs \
- -make tools \
- -widgets \
- -no-opengl \
- -skip qtlocation \
- -nomake examples
复制代码
配置会报错:
- Note: No wayland-egl support detected. Cross-toolkit compatibility disabled.
- Note: The following modules are not being compiled in this configuration:
- 3dcore
- 3drender
- webenginecore
- webengine
- webenginewidgets
- pdf
- pdfwidgets
- WARNING: A pkg-config support is required to build QtWebEngine.
- WARNING: A pkg-config support is required to build QtPdf.
- WARNING: QtWebEngine will not be built.
- WARNING: QtPdf will not be built.
- ERROR: Feature 'pkg-config' was enabled, but the pre-condition 'tests.pkg-config' failed.
- ERROR: Feature 'xcb' was enabled, but the pre-condition 'features.thread && libs.xcb && tests.xcb_syslibs && features.xkbcommon-x11' failed.
- ERROR: Feature 'xcb-xlib' was enabled, but the pre-condition 'features.xlib && libs.xcb_xlib' failed.
复制代码
已经按照https://wiki.qt.io/Building_Qt_5_from_Git 安装了所有提到的依赖,求问是什么问题导致的这个报错。。。 |
|