Actions
新建 #180
openrk3568 qt 运行报错
Start date:
01/09/2023
Due date:
% Done:
0%
Estimated time:
Description
版型:pro-rk3568
系统:ubuntu
问题:
在Ubuntu系统下运行qt程序,使用linuxfb显示插件正常,但是使用eglfs报错:
Could not open display
Aborted (core dumped)
使用xcb显示插件,也报错:
qt.qpa.screen: QXcbConnection: Could not connect to display
Could not connect to any X display.
由于我需要使用qml,linuxfb下不支持,只能使用xcb或者eglfs,请问如何才能支持xcb或者eglfs?
Updated by 余 顺 over 2 years ago
类似这种Could not open display 找不到显示设备的
export DISPLAY=:0 # 先配置显示设备
Updated by 余 顺 over 2 years ago
若还是报错,直接在卓面的命令行执行,看是否是同样的报错,若执行成功,查看桌面命令行的的环境变量配置,将其配置到串口,在执行试下
Actions