说明:
buildroots根文件中已经移植好了QT的库,但是运行QT交叉编译之后的可执行文件报错:

qt.qpa.plugin: Could not find the Qt platform plugin "eglfs" in ""
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: linuxfb, minimal, offscreen, vnc.

解决方法:
在自己的buildroots根文件系统etc文件夹下面

在这里插入图片描述
打开【profile文件】,添加如下内容:

export QT_QPA_PLATFORM=linuxfb

在这里插入图片描述

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐