在使用IMX8的过程中,系统启动后使用wayland+weston(SDK默认方式),可正常运行QT程序;使用systemctl stop weston.service停止weston后,再使用eglfs运行QT程序,会出现以下报错:
软件版本为:yocto LF5.10.72; 需求:需要使用eglfs运行qt程序,
If you want to use eglfs, you need run like this :
systemctl stop weston
export QT_QPA_EGLFS_KMS_CONFIG=`pwd`/eglfs.json
export QT_QPA_PLATFORM=eglfs
export QT_QPA_EGLFS_INTEGRATION=eglfs_viv
The eglfs.json
{
"device": "/dev/dri/card1",
"outputs":[
{"name": "HDMI-A-1","mode":"1920x1080"}
]
}