求助,关于qt5移植到RK3288 Firefly开发板
我根据社区里的帖子以及网上的帖子,先将qt5.5.1的源码交叉编译后放到开发板上,运行Demo,一开始报缺少“xcb”,查找了一番,说 Qt4的程序在嵌入式Linux运行时,需要加入参数“-qws”启动Qt窗口系统服务,Qt5运行时需要通过“-platform”来制定QPA插件,可是我试了后还是不行,有没有懂的大佬的能指点一下,感谢 环境变量的配置export QTDIR=/opt/qt -5.5.1-arm
export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
export QT_QPA_PLATFORM_ PLUGIN_PATH=$QTDIR/plugins
export QT_QPA_FONTDIR=$QTDIR/lib/ fonts
export QWS KEYBOARD=USB: /dev/ input/event2
export QWS MOUSE PROTO=Linuxinput : /dev/ input/event0
export QT_QPA_PLATF0RM=linuxfb: fb=/dev /fb0
第一次运行
firefly@firefly: //home/ firefly/Downloads/build-hello-ARM-Release$ . /hello - qws
This application failed to start because it could not find or load the Qt platform plugin "xcb"
in
Available platform plugins are: linuxfb, minimal, offscreen, vnc.
Reinstalling the application may fix this problem.
Aborted
加了-platform后
root@firefly:/ /opt/qt- 5.5.1- arm/ examples/widgets/mainwindows/application# ./applRMication -platform linuxfb
Failed to mmap f ramebuffer (Invalid argument)
linuxfb: Failed to initialize screen
no screens available, assuming 24-bit color
Cannot create window: no screens avai lable
Aborted 请问您是怎么解决的
mark下,我在rk3399上,用FIREFLY-RK3399-UBUNTU16.04-GPT-20190910-1001.img这个镜像,移植了QT5.12.2也出现了
Failed to mmap framebuffer (Invalid argument)
linuxfb: Failed to initialize screen mark 下,遇到同样问题。期待大佬指点一下 请问这个问题如何解决? 我在RK3328上也碰到了这问题,请问要如何解决? 有解决方法吗?
页:
[1]