采用了遇到错误解决错误的方式解决了这个问题。
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
以上笨方法,解决燃眉之急
采用了遇到错误解决错误的方式解决了这个问题。
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
以上笨方法,解决燃眉之急
举报