这里使用 buildroot 编译根文件系统
编译出现错误
有时候 make
的时候会报一些奇怪的错误信息,这可能是由于之前的编译没有清理导致的
执行 make clean
,再重新 make
,一般就能过编译了
can’t open /dev/console: Permission denied
解决这个问题很简单,进入 /you-path-to-rootfs/bin
下,执行 chown root * -R
qt.qpa.plugin: Could not find the Qt platform plugin
以下是报错信息
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.
Aborted
为了解决这个问题,可以使用其他的插件,在运行命令后面指定插件,例子如下
./qrasterwindow -platform linuxfb