- 【问题描述】
在开发板上运行qt程序报错,错误提示如下:
root@M6708-T:~# /untitled
This application failed to start because it could not find or load the Qt platform plugin "xcb".
Available platform plugins are: eglfs, minimal, minimalegl, offscreen.
Reinstalling the application may fix this problem.
- 【问题定位】
qt相关环境变量配置不对。 - 【解决方案】
执行如下命令后再执行,OK.
export QT_QPA_PLATFORM=eglfs