瑞芯微Rockchip开发者社区
直播中

张虎豹

7年用户 1556经验值
私信 关注
[问答]

buildroot QT5.12.2编译时qwayland报错怎么解决呢

项目需要QT 5.12.2,编译时qwayland报错,从错误上看是由于补丁0024-qwaylandwindow-Support-setting-window-blocked-state.patch和版本不符合。重复定义这个可以改下,但是下面还有wlSurface的报错

这些补丁不合行不行?或者有其他的解决方法。

另:QT 5.14.2编译时没有报这个错误
1.jpg


patch中差异点:



回帖(3)

最强海贼王

2022-4-20 10:06:30
同步代码到最新,repo sync -c
删除编译目录后重新编译,rm -rf buildroot/output
举报

张虎豹

2022-4-20 10:06:43
好的,我试试。谢谢
举报

张虎豹

2022-4-20 10:07:12
采用了遇到错误解决错误的方式解决了这个问题。

1.将QT版本修改为5.12.2, rk356x_linux_release_20211019buildrootconfigsrockchipqt.config

BR2_PACKAGE_QT5_VERSION_5_12=y

2.修改qwayland的pro文件,否则不编译插件库。buildrootoutputrockchip_rk3566buildqt5wayland-5.12.2srcsrc.pro

qtConfig(wayland-client) {

    sub_qtwaylandscanner.subdir = qtwaylandscanner

    sub_qtwaylandscanner.target = sub-qtwaylandscanner

    SUBDIRS += sub_qtwaylandscanner

    sub_client.subdir = client

    sub_client.depends = sub-qtwaylandscanner

    sub_client.target = sub-client

    SUBDIRS += sub_client

    /*添加部分*/

    sub_plugins.subdir = plugins

    sub_plugins.depends += sub-qtwaylandscanner

    sub_plugins.depends += sub-client

    sub_plugins.target = sub-plugins

    SUBDIRS += sub_plugins

3.此时编译会报错,将插件中buildrootoutputrockchip_rk3566buildqt5wayland-5.12.2srcpluginshardwareintegrationhardwareintegration.pro

    SUBDIRS += client

    SUBDIRS += compositor /*该行删除*/

    注:项目中没有用compositor

以上笨方法,解决燃眉之急
举报

更多回帖

发帖
×
20
完善资料,
赚取积分