【linux】failed to start because it could not find or load the Qt platform plugin "xcb"

  • 【问题描述】
    在开发板上运行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
发布了224 篇原创文章 · 获赞 14 · 访问量 3万+

猜你喜欢

转载自blog.csdn.net/qq_43248127/article/details/105242352