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 "eglfs" in "/usr/local/qt5/plugins".
Qt 6.11 is out! See what's new in the release blog

This application failed to start because it could not find or load the Qt platform plugin "eglfs" in "/usr/local/qt5/plugins".

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
19 Posts 3 Posters 18.8k Views 1 Watching
  • 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.
  • A Alex_wang

    when running Qt5 Example "qt5-cinematic-experience" , an error occurs :

    QIconvCodec::convertToUnicode: using Latin-1 for conversion, iconv_open failed
    QIconvCodec::convertFromUnicode: using Latin-1 for conversion, iconv_open failed
    This application failed to start because it could not find or load the Qt platform plugin "eglfs"
    in "/usr/local/qt5/plugins".
    
    Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.
    
    Reinstalling the application may fix this problem.
    Aborted
    

    env :

    #export QTDIR=/usr/local/qt5
    # export QT_QPA_FONTDIR=$QTDIR/lib/fonts
    # export QT_QPA_PLATFORM_PLUGIN_PATH=$QTDIR/plugins
    # export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
    # export PATH=$QTDIR/bin:$PATH
    # export PKG_CONFIG_PATH=$QTDIR/lib/pkgconfig/$PKG_CONFIG_PATH
    
    

    configure :

    Build options:
      Mode ................................... release
      Building shared libraries .............. yes
      Using C++ standard ..................... C++11
      Using gold linker ...................... yes
      Using new DTAGS ........................ yes
      Using precompiled headers .............. yes
      Using LTCG ............................. no
      Target compiler supports:
        NEON ................................. no
      Build parts ............................ libs
    Qt modules and options:
      Qt Concurrent .......................... yes
      Qt D-Bus ............................... yes
      Qt D-Bus directly linked to libdbus .... yes
      Qt Gui ................................. yes
      Qt Widgets ............................. yes
    Support enabled for:
      Accessibility .......................... yes
      Using pkg-config ....................... yes
      QML debugging .......................... yes
      udev ................................... yes
      Using system zlib ...................... yes
    Qt Core:
      DoubleConversion ....................... yes
        Using system DoubleConversion ........ no
      GLib ................................... yes
      iconv .................................. yes
      ICU .................................... no
      Logging backends:
        journald ............................. no
        syslog ............................... no
      Using system PCRE ...................... no
    Qt Network:
      getaddrinfo() .......................... yes
      getifaddrs() ........................... yes
      IPv6 ifname ............................ yes
      libproxy ............................... no
      OpenSSL ................................ yes
        Qt directly linked to OpenSSL ........ no
      SCTP ................................... no
      Use system proxies ..................... yes
    Qt Sql:
      DB2 (IBM) .............................. no
      InterBase .............................. no
      MySql .................................. no
      OCI (Oracle) ........................... no
      ODBC ................................... no
      PostgreSQL ............................. no
      SQLite2 ................................ no
      SQLite ................................. yes
        Using system provided SQLite ......... no
      TDS (Sybase) ........................... no
    Qt Gui:
      FreeType ............................... yes
        Using system FreeType ................ yes
      HarfBuzz ............................... yes
        Using system HarfBuzz ................ no
      Fontconfig ............................. yes
      Image formats:
        GIF .................................. yes
        ICO .................................. yes
        JPEG ................................. yes
          Using system libjpeg ............... yes
        PNG .................................. yes
          Using system libpng ................ yes
      OpenGL:
        EGL .................................. yes
        Desktop OpenGL ....................... no
        OpenGL ES 2.0 ........................ yes
        OpenGL ES 3.0 ........................ no
        OpenGL ES 3.1 ........................ no
      Session Management ..................... yes
    Features used by QPA backends:
      evdev .................................. yes
      libinput ............................... no
      mtdev .................................. no
      tslib .................................. yes
      xkbcommon-evdev ........................ no
    QPA backends:
      DirectFB ............................... no
      EGLFS .................................. yes
      EGLFS details:
        EGLFS i.Mx6 .......................... no
        EGLFS i.Mx6 Wayland .................. no
        EGLFS EGLDevice ...................... no
        EGLFS GBM ............................ no
        EGLFS Mali ........................... no
        EGLFS Rasberry Pi .................... no
        EGL on X11 ........................... no
      LinuxFB ................................ yes
      Mir client ............................. no
      X11:
        Using system provided XCB libraries .. no
        EGL on X11 ........................... no
        Xinput2 .............................. no
        XCB XKB .............................. no
        XLib ................................. yes
        Xrender .............................. yes
        XCB GLX .............................. yes
        XCB Xlib ............................. yes
        Using system-provided xkbcommon ...... no
    Qt Widgets:
      GTK+ ................................... no
      Styles ................................. Fusion Windows
    Qt PrintSupport:
      CUPS ................................... no
    Qt SerialBus:
      Socket CAN ............................. yes
      Socket CAN FD .......................... no
    QtXmlPatterns:
      XML schema support ..................... yes
    Qt QML:
      QML interpreter ........................ yes
      QML network support .................... yes
    Qt Quick:
      Direct3D 12 ............................ no
      AnimatedImage item ..................... yes
      Canvas item ............................ yes
      Support for Quick Designer ............. yes
      Flipable item .......................... yes
      GridView item .......................... yes
      ListView item .......................... yes
      Path support ........................... yes
      PathView item .......................... yes
      Positioner items ....................... yes
      ShaderEffect item ...................... yes
      Sprite item ............................ yes
    Qt Gamepad:
      SDL2 ................................... no
    Qt 3D:
      System Assimp .......................... no
    Qt Wayland Client ........................ no
    Qt Wayland Compositor .................... no
    Qt Bluetooth:
      BlueZ .................................. no
      BlueZ Low Energy ....................... no
      Linux Crypto API ....................... no
    Qt Multimedia:
      ALSA ................................... yes
      GStreamer 1.0 .......................... no
      GStreamer 0.10 ......................... yes
      Video for Linux ........................ yes
      OpenAL ................................. no
      PulseAudio ............................. yes
      Resource Policy (libresourceqt5) ....... no
      DirectShow ............................. no
      Windows Media Foundation ............... no
    Qt Location:
      Gypsy GPS Daemon ....................... no
      WinRT Geolocation API .................. no
    Qt Sensors:
      sensorfw ............................... no
    Qt WebEngine:
      Proprietary Codecs ..................... no
      Spellchecker ........................... yes
      ALSA ................................... yes
      PulseAudio ............................. yes
    
    A Offline
    A Offline
    Alex_wang
    wrote on last edited by
    #3
    This post is deleted!
    1 Reply Last reply
    0
    • jsulmJ jsulm

      @Alex_wang Set QT_DEBUG_PLUGINS environment variable and start your app, you should see more output which can help to find out why the plug-in isn't loaded.
      See http://doc.qt.io/qt-5/debug.html

      A Offline
      A Offline
      Alex_wang
      wrote on last edited by
      #4

      @jsulm

      Thanks!

      QFactoryLoader::QFactoryLoader() checking directory path "/opt/autorun/platforms" ...
      Cannot load library /usr/local/qt5/plugins/platforms/libqeglfs.so: (libXext.so.6: cannot open shared object file: No such file or directory)
      QLibraryPrivate::loadPlugin failed on "/usr/local/qt5/plugins/platforms/libqeglfs.so" : "Cannot load library /usr/local/qt5/plugins/platforms/libqeglfs.so: (libXext.so.6: cannot open shared object file: No such file or directory)"
      This application failed to start because it could not find or load the Qt platform plugin "eglfs"
      in "/usr/local/qt5/plugins".
      
      Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.
      
      Reinstalling the application may fix this problem.
      Aborted
      

      I think , I need to install the X11......

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by SGaist
        #5

        Hi,

        You should only need to install the libraries the compiler has been warning about. If on debian apt-get install libxext-dev.

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        A 1 Reply Last reply
        0
        • SGaistS SGaist

          Hi,

          You should only need to install the libraries the compiler has been warning about. If on debian apt-get install libxext-dev.

          A Offline
          A Offline
          Alex_wang
          wrote on last edited by
          #6

          @SGaist
          Hi,
          I have been added all the libraries that qt5 app needs.
          but when running the Qt5 app , the error occurs:

          QFactoryLoader::QFactoryLoader() checking directory path "/opt/autorun/platforms" ...
          loaded library "/usr/local/qt5/plugins/platforms/libqeglfs.so"
          QFactoryLoader::QFactoryLoader() checking directory path "/usr/local/qt5/plugins/egldeviceintegrations" ...
          QFactoryLoader::QFactoryLoader() checking directory path "/opt/autorun/egldeviceintegrations" ...
          Could not open egl display
          Aborted
          

          any ideas ?

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #7

            On what are you running that application ?

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            A 1 Reply Last reply
            0
            • SGaistS SGaist

              On what are you running that application ?

              A Offline
              A Offline
              Alex_wang
              wrote on last edited by
              #8

              @SGaist

              Hi,

              device : TI DM8168/AM389x
              arch : armv7-a

              configure :

               Configuration .......... accessibility alsa audio-backend c++11 clock-gettime clock-monotonic compile_examples concurrent cross_compile dbus dbus-linked egl eglfs enable_new_dtags evdev eventfd fontconfig full-config getaddrinfo getifaddrs glib gstreamer-0.10 gtk2 gtkstyle harfbuzz iconv inotify ipv6ifname kms large-config largefile libudev linuxfb medium-config minimal-config mremap opengl opengles2 openssl openvg pcre png posix_fallocate precompile_header pulseaudio qpa qpa reduce_exports release rpath shared small-config system-freetype system-jpeg system-png system-zlib threadsafe-cloexec tslib xlib xrender 
                Build parts ............ libs
                Mode ................... release
                Using sanitizer(s)...... none
                Using C++ standard ..... c++11
                Using gold linker....... no
                Using new DTAGS ........ yes
                Using PCH .............. yes
                Using LTCG ............. no
                Target compiler supports:
                  Neon ................. no
              
              Qt modules and options:
                Qt D-Bus ............... yes (linked to dbus-1)
                Qt Concurrent .......... yes
                Qt GUI ................. yes
                Qt Widgets ............. yes
                Large File ............. yes
                QML debugging .......... yes
                Use system proxies ..... no
              
              Support enabled for:
                Accessibility .......... yes
                ALSA ................... yes
                CUPS ................... no
                Evdev .................. yes
                FontConfig ............. yes
                FreeType ............... yes (system library)
                Glib ................... yes
                GStreamer .............. yes (0.10)
                GTK theme .............. yes
                HarfBuzz ............... yes (bundled copy)
                Iconv .................. yes
                ICU .................... no
                Image formats: 
                  GIF .................. yes (plugin, using bundled copy)
                  JPEG ................. yes (plugin, using system library)
                  PNG .................. yes (in QtGui, using system library)
                libinput................ no
                Logging backends: 
                  journald ............... no
                  syslog   ............... no
                mtdev .................. no
                Networking: 
                  getaddrinfo .......... yes
                  getifaddrs ........... yes
                  IPv6 ifname .......... yes
                  libproxy.............. no
                  OpenSSL .............. yes (loading libraries at run-time)
                OpenGL / OpenVG: 
                  EGL .................. yes
                  OpenGL ............... yes (OpenGL ES 2.0+)
                  OpenVG ............... yes-auto
                PCRE ................... yes (bundled copy)
                pkg-config ............. yes 
                PulseAudio ............. yes
                QPA backends: 
                  DirectFB ............. no
                  EGLFS ................ yes
                    EGLFS i.MX6 ........ no
                    EGLFS i.MX6 Wayland. no
                    EGLFS EGLDevice .... no
                    EGLFS GBM .......... no
                    EGLFS Mali ......... no
                    EGLFS Raspberry Pi . no
                    EGLFS X11 .......... no
                  LinuxFB .............. yes
                  Mir client............ no
                  XCB .................. no
                Session management ..... yes
                SQL drivers: 
                  DB2 .................. no
                  InterBase ............ no
                  MySQL ................ no
                  OCI .................. no
                  ODBC ................. no
                  PostgreSQL ........... no
                  SQLite 2 ............. no
                  SQLite ............... yes (plugin, using bundled copy)
                  TDS .................. no
                tslib .................. yes
                udev ................... yes
                xkbcommon-x11........... no
                xkbcommon-evdev......... no
                zlib ................... yes (system library)
              
              
              1 Reply Last reply
              0
              • jsulmJ jsulm

                @Alex_wang Set QT_DEBUG_PLUGINS environment variable and start your app, you should see more output which can help to find out why the plug-in isn't loaded.
                See http://doc.qt.io/qt-5/debug.html

                A Offline
                A Offline
                Alex_wang
                wrote on last edited by
                #9

                @jsulm
                Hi,
                can you tell me my eglfs plugin is right?
                I want to use the eglfs_kms.....

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #10

                  What device are you using exactly ?

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  A 1 Reply Last reply
                  0
                  • SGaistS SGaist

                    What device are you using exactly ?

                    A Offline
                    A Offline
                    Alex_wang
                    wrote on last edited by
                    #11

                    @SGaist
                    Hi, the device is ti DM8168/AM389x,its arm arch is armv7-a.
                    the configure result shows that :

                    KMS enabled.
                    ......
                    EGL enabled.
                    ......
                    
                    egl-x11.cpp: In function 'int main(int, char**)':
                    egl-x11.cpp:48:50: error: invalid conversion from 'Display*' to 'EGLNativeDisplayType'
                    egl-x11.cpp:49:11: error: invalid conversion from 'EGLNativeDisplayType' to 'Display*'
                    egl-x11.cpp:50:79: error: invalid conversion from 'Window' to 'void*'
                    egl-x11.cpp:51:26: error: invalid conversion from 'void*' to 'Window'
                    egl-x11.cpp:51:26: error:   initializing argument 2 of 'int XDestroyWindow(Display*, Window)'
                    Makefile:239: recipe for target 'egl-x11.o' failed
                    make: *** [egl-x11.o] Error 1
                    **EGL-X11 disabled.**
                    
                    
                    

                    so, the egl/x11 is old on my device ,that cause the error ?

                    1 Reply Last reply
                    0
                    • SGaistS Offline
                      SGaistS Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on last edited by
                      #12

                      What Linux distribution are you using ?

                      Interested in AI ? www.idiap.ch
                      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                      A 1 Reply Last reply
                      0
                      • SGaistS SGaist

                        What Linux distribution are you using ?

                        A Offline
                        A Offline
                        Alex_wang
                        wrote on last edited by
                        #13

                        @SGaist
                        Hi,

                        Linux version 2.6.37+  (gcc version 4.5.3 20110311 (prerelease) (GCC) )
                        
                        jsulmJ 1 Reply Last reply
                        0
                        • A Alex_wang

                          @SGaist
                          Hi,

                          Linux version 2.6.37+  (gcc version 4.5.3 20110311 (prerelease) (GCC) )
                          
                          jsulmJ Offline
                          jsulmJ Offline
                          jsulm
                          Lifetime Qt Champion
                          wrote on last edited by
                          #14

                          @Alex_wang This is the Linux kernel version not the name and version of your Linux distribution.
                          And kernel is very old.

                          https://forum.qt.io/topic/113070/qt-code-of-conduct

                          A 1 Reply Last reply
                          0
                          • jsulmJ jsulm

                            @Alex_wang This is the Linux kernel version not the name and version of your Linux distribution.
                            And kernel is very old.

                            A Offline
                            A Offline
                            Alex_wang
                            wrote on last edited by
                            #15

                            @jsulm
                            Hi,
                            sorry,my kernel is from the DVRRDK(04.00.00.03) that ti provides,
                            I can't know the linux distribution.....

                            1 Reply Last reply
                            0
                            • SGaistS Offline
                              SGaistS Offline
                              SGaist
                              Lifetime Qt Champion
                              wrote on last edited by
                              #16

                              Just because of the date I'd say that your dependencies are out of date.

                              You may try to patch Qt's to match your version of the relevant X11 libraries but there's not guaranty it's doable.

                              Interested in AI ? www.idiap.ch
                              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                              A 1 Reply Last reply
                              0
                              • SGaistS SGaist

                                Just because of the date I'd say that your dependencies are out of date.

                                You may try to patch Qt's to match your version of the relevant X11 libraries but there's not guaranty it's doable.

                                A Offline
                                A Offline
                                Alex_wang
                                wrote on last edited by
                                #17

                                @SGaist

                                I would to cross compile the latest libX11, and install ,
                                then the "EGL-X11 can be enabled" ?

                                1 Reply Last reply
                                0
                                • SGaistS Offline
                                  SGaistS Offline
                                  SGaist
                                  Lifetime Qt Champion
                                  wrote on last edited by
                                  #18

                                  If possible you should rather upgrade your device distribution to something more recent.

                                  Interested in AI ? www.idiap.ch
                                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                                  A 1 Reply Last reply
                                  1
                                  • SGaistS SGaist

                                    If possible you should rather upgrade your device distribution to something more recent.

                                    A Offline
                                    A Offline
                                    Alex_wang
                                    wrote on last edited by
                                    #19

                                    @SGaist
                                    Hi,
                                    Thanks for your reply.
                                    Perhaps I can only do that.

                                    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