Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

This application failed to start because it could not find or load the Qt platform plugin "linuxfb"



  • Hi Guys,

    I faced the below error messge when running Qt application on the embbeded linux(target)
    I got the rootfs from board supplier but think that QT experts know about this error and how to fix. thanks..

    "
    root@var-som-mx6:/usr/share/qt5/examples# touch/dials/dials --platform linuxfb
    This application failed to start because it could not find or load the Qt platform plugin "linuxfb".
    Available platform plugins are: eglfs, minimal, minimalegl, offscreen.
    Reinstalling the application may fix this problem.
    Aborted
    "

    it is /etc/profile.d/tslib.sh on my target.
    export TSLIB_TSDEVICE=/dev/input/touchscreen0
    export TSLIB_CALIBFILE=/etc/pointercal
    export TSLIB_CONFFILE=/etc/ts.conf
    export QT_QPA_GENERIC_PLUGINS=tslib:/dev/input/event0
    export QT_QPA_EGLFS_PHYSICAL_HEIGHT=480
    export QT_QPA_EGLFS_PHYSICAL_WIDTH=800
    export QT_QPA_EGLFS_HEIGHT=480
    export QT_QPA_EGLFS_WIDTH=800
    export QT_EGLFS_IMX6_NO_FB_MULTI_BUFFER=1
    export QT_QPA_EGLFS_DEPTH=24
    export QT_QPA_PLATFORM=linuxfb:fb=/dev/fb0:size=800x480:mmSize=800x480


  • Moderators

    @hjpark
    make sure your machine has the linuxfb platform plugin installed.
    This can either be in the Qt installation plugins dir. Or bundled along with your application (in the platforms subfolder)?



  • @raven-worx thanks for your help..

    I found that there is no libqlinuxfb.so in the /usr/lib/qt5/plugins/platforms on my target system..

    therefore, I copied libqlinuxfb.so into the /usr/lib/qt5/plugins/platforms.. but, I'am still facing the same error unfortunately..

    Please let me know what else I have to do for it..

    it is very important for me..

    thanks again



  • Hi, just guessing, but maybe there's some .dll/.so file that libqlinuxfb.so needs that is not present in your /usr/lib/qt5/lib, for example libQt5Dbus.so.5?


  • Moderators

    @hjpark
    set QT_DEBUG_PLUGINS env variable to a non-zero value and post the output



  • This post is deleted!

Log in to reply