Solved No eglfs or linuxfb on Beaglebone Black
-
So, I successfully compiled Qt for Beaglebone Black and I specified no eglfs in the configure options as per many guides here on Qt forum.
So, when I run my project over SSH, I get following error.
qt.qpa.plugin: Could not find the Qt platform plugin "eglfs" in "/home/debian/Qt5ForBBB/plugins/platforms" 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 (from /home/debian/Qt5ForBBB/plugins/platforms), minimal (from /home/debian/Qt5ForBBB/plugins/platforms), offscreen (from /home/debian/Qt5ForBBB/plugins/platforms), vnc (from /home/debian/Qt5ForBBB/plugins/platforms). Aborted
If I specify -platform linuxfb while running, I get another big error.
Unable to figure out framebuffer device. Specify it manually. linuxfb: Failed to initialize screen Device discovery cannot open device "/dev/input/event0" Device discovery cannot open device "/dev/input/event0" Device discovery cannot open device "/dev/input/event0" no screens available, assuming 24-bit color QFontDatabase: Cannot find font directory /home/ketan/Qt5ForBBB/lib/fonts. Note that Qt no longer ships fonts. Deploy some (from https://dejavu-fonts.github.io/ for example) or switch to fontconfig. QFontDatabase: Cannot find font directory /home/ketan/Qt5ForBBB/lib/fonts. Note that Qt no longer ships fonts. Deploy some (from https://dejavu-fonts.github.io/ for example) or switch to fontconfig. QFontDatabase: Cannot find font directory /home/ketan/Qt5ForBBB/lib/fonts. Note that Qt no longer ships fonts. Deploy some (from https://dejavu-fonts.github.io/ for example) or switch to fontconfig. QFontDatabase: Cannot find font directory /home/ketan/Qt5ForBBB/lib/fonts. Note that Qt no longer ships fonts. Deploy some (from https://dejavu-fonts.github.io/ for example) or switch to fontconfig. QFontDatabase: Cannot find font directory /home/ketan/Qt5ForBBB/lib/fonts. Note that Qt no longer ships fonts. Deploy some (from https://dejavu-fonts.github.io/ for example) or switch to fontconfig. Cannot create window: no screens available Aborted
There is no fb device in /dev directory of beaglebone, so I cannot specify it in the command itself.
Any leads in this topic would be greatly appreciated as I haven't ever worked on Qt before. -
Thanks, I solved it by exporting QPA_PLATFORM_PATH.
-
@ketank16 said in No eglfs or linuxfb on Beaglebone Black:
There is no fb device in /dev directory of beaglebone, so I cannot specify it in the command itself.
It looks like you need to be able to provide a fb device in your board before willing Qt to use it.
Have you already asked in Beaglebone forum(s) about having fb device(s) in the board? -
Thanks, I solved it by exporting QPA_PLATFORM_PATH.