Important: Please read the 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.

    it is /etc/profile.d/ 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_HEIGHT=480
    export QT_QPA_EGLFS_WIDTH=800
    export QT_QPA_EGLFS_DEPTH=24
    export QT_QPA_PLATFORM=linuxfb:fb=/dev/fb0:size=800x480:mmSize=800x480

  • Moderators

    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 in the /usr/lib/qt5/plugins/platforms on my target system..

    therefore, I copied 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 needs that is not present in your /usr/lib/qt5/lib, for example

  • Moderators

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

  • This post is deleted!

Log in to reply