Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. This application failed to start because it could not find or load the Qt platform plugin "linuxfb"

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

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
6 Posts 4 Posters 3.1k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • hjparkH Offline
    hjparkH Offline
    hjpark
    wrote on last edited by
    #1

    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

    raven-worxR 1 Reply Last reply
    0
    • hjparkH hjpark

      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

      raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by
      #2

      @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)?

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      hjparkH 1 Reply Last reply
      0
      • raven-worxR raven-worx

        @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)?

        hjparkH Offline
        hjparkH Offline
        hjpark
        wrote on last edited by
        #3

        @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

        raven-worxR 1 Reply Last reply
        0
        • hskoglundH Offline
          hskoglundH Offline
          hskoglund
          wrote on last edited by
          #4

          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?

          1 Reply Last reply
          0
          • hjparkH hjpark

            @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

            raven-worxR Offline
            raven-worxR Offline
            raven-worx
            Moderators
            wrote on last edited by
            #5

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

            --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
            If you have a question please use the forum so others can benefit from the solution in the future

            I 1 Reply Last reply
            0
            • raven-worxR raven-worx

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

              I Offline
              I Offline
              iamjbn
              wrote on last edited by
              #6
              This post is deleted!
              1 Reply Last reply
              0

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved