Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-78660

native built qt cant init platform plugin eglfs even though it's found

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Not Evaluated
    • None
    • 5.13.1
    • Core: Plugins, QPA: EGLFS
    • None
    • raspberry 4b
    • Linux/Other display system

    Description

      I have built a qt 5.13.1 and PySide2 on my raspberry 4b,

      then i try running a pyside2 scripts which run well on windows,  and it complains about:

      qt.qpa.plugin: Could not load the Qt platform plugin "eglfs" in "/usr/lib/arm-linux-gnueabihf/qt5/plugins/platforms" even though it was found.
      This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.Available platform plugins are: eglfs (from /usr/lib/arm-linux-gnueabihf/qt5/plugins/platforms), linuxfb (from /usr/lib/arm-linux-gnueabihf/qt5/plugins/platforms), minimal (from /usr/lib/arm-linux-gnueabihf/qt5/plugins/platforms), minimalegl (from /usr/lib/arm-linux-gnueabihf/qt5/plugins/platforms), offscreen (from /usr/lib/arm-linux-gnueabihf/qt5/plugins/platforms), vnc (from /usr/lib/arm-linux-gnueabihf/qt5/plugins/platforms), xcb (from /usr/lib/arm-linux-gnueabihf/qt5/plugins/platforms), eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.
      

      My Installation steps:

      this is my install scripts:  install-qt.sh

      after run the scripts,  i published qt libs in /usr/lib/arm-linux-gnueabihf/qt5/lib directory, and add the path under 

      /etc/ld.so.conf.d/qt.conf and run `ldconfig` to notify system. 

      then i run `pip3 install` to install the three wheels:

      PySide2-5.13.1-5.13.1-cp35.cp36.cp37-abi3-linux_armv7l.whl

      shiboken2_generator-5.13.1-5.13.1-cp35.cp36.cp37-abi3-linux_armv7l.whl
      shiboken2-5.13.1-5.13.1-cp35.cp36.cp37-abi3-linux_armv7l.whl

       and thats basicly what i have done to install Qt 

       

      configure output: 

      // code placeholder
      qt-everywhere-src-5.13.1/configure -v -opengl es2 -eglfs -no-gtk -device linux-rasp-pi3-g++ -device-option CROSS_COMPILE=/usr/bin/ -prefix /home/pi/Documents/project/qt-for-python-rpi4/install/pi3/release/5.13.1 -extprefix /home/pi/Documents/project/qt-for-python-rpi4/install/pi3/release/5.13.1 -opensource -confirm-license -reduce-exports -no-use-gold-linker -make libs -nomake tests -nomake examples -no-compile-examples -no-kms -no-pch -no-cups -qt-pcre -ssl -evdev -qt-zlib -qpa eglfs -skip qt3d -skip qtactiveqt -skip qtandroidextras -skip qtcanvas3d -skip qtcharts -skip qtconnectivity -skip qtdatavis3d -skip qtdoc -skip qtgamepad -skip qtimageformats -skip qtlocation -skip qtmacextras -skip qtnetworkauth -skip qtpurchasing -skip qtscript -skip qtsensors -skip qtserialbus -skip qtserialport -skip qtspeech -skip qtsvg -skip qttools -skip qttranslations -skip qtvirtualkeyboard -skip qtwayland -skip qtwebchannel -skip qtwebengine -skip qtwebglplugin -skip qtwebsockets -skip qtwebview -skip qtwinextras
      
      // summary:
      Configuration: cross_compile enable_new_dtags largefile neon shared rpath release c++11 c++14 c++1z concurrent dbus no-pkg-config reduce_exports stl
      Build options:
        Mode ................................... release
        Optimize release build for size ........ no
        Building shared libraries .............. yes
        Using C standard ....................... C11
        Using C++ standard ..................... C++17
        Using ccache ........................... no
        Using new DTAGS ........................ yes
        Using precompiled headers .............. no
        Using LTCG ............................. no
        Target compiler supports:
          NEON ................................. yes
        Build parts ............................ libs
      Qt modules and options:
        Qt Concurrent .......................... yes
        Qt D-Bus ............................... yes
        Qt D-Bus directly linked to libdbus .... no
        Qt Gui ................................. yes
        Qt Network ............................. yes
        Qt Sql ................................. yes
        Qt Testlib ............................. yes
        Qt Widgets ............................. yes
        Qt Xml ................................. yes
      Support enabled for:
        Using pkg-config ....................... no
        udev ................................... yes
        Using system zlib ...................... no
        Zstandard support ...................... no
      Qt Core:
        DoubleConversion ....................... yes
          Using system DoubleConversion ........ no
        GLib ................................... no
        iconv .................................. no
        ICU .................................... yes
        Built-in copy of the MIME database ..... yes
        Tracing backend ........................ <none>
        Logging backends:
          journald ............................. no
          syslog ............................... no
          slog2 ................................ no
        Using system PCRE2 ..................... no
      Qt Network:
        getifaddrs() ........................... yes
        IPv6 ifname ............................ yes
        libproxy ............................... no
        Linux AF_NETLINK ....................... yes
        OpenSSL ................................ yes
          Qt directly linked to OpenSSL ........ no
        OpenSSL 1.1 ............................ yes
        DTLS ................................... yes
        OCSP-stapling .......................... yes
        SCTP ................................... no
        Use system proxies ..................... yes
      Qt Gui:
        Accessibility .......................... yes
        FreeType ............................... yes
          Using system FreeType ................ no
        HarfBuzz ............................... yes
          Using system HarfBuzz ................ no
        Fontconfig ............................. no
        Image formats:
          GIF .................................. yes
          ICO .................................. yes
          JPEG ................................. yes
            Using system libjpeg ............... no
          PNG .................................. yes
            Using system libpng ................ no
        EGL .................................... yes
        OpenVG ................................. no
        OpenGL:
          Desktop OpenGL ....................... no
          OpenGL ES 2.0 ........................ yes
          OpenGL ES 3.0 ........................ yes
          OpenGL ES 3.1 ........................ yes
          OpenGL ES 3.2 ........................ yes
        Vulkan ................................. no
        Session Management ..................... yes
      Features used by QPA backends:
        evdev .................................. yes
        libinput ............................... no
        INTEGRITY HID .......................... no
        mtdev .................................. no
        tslib .................................. no
        xkbcommon .............................. no
        X11 specific:
          XLib ................................. yes
          XCB Xlib ............................. yes
          EGL on X11 ........................... no
      QPA backends:
        DirectFB ............................... no
        EGLFS .................................. yes
        EGLFS details:
          EGLFS OpenWFD ........................ no
          EGLFS i.Mx6 .......................... no
          EGLFS i.Mx6 Wayland .................. no
          EGLFS RCAR ........................... no
          EGLFS EGLDevice ...................... no
          EGLFS GBM ............................ no
          EGLFS VSP2 ........................... no
          EGLFS Mali ........................... no
          EGLFS Raspberry Pi ................... yes
          EGLFS X11 ............................ no
        LinuxFB ................................ yes
        VNC .................................... yes
        Mir client ............................. no
      Qt Sql:
        SQL item models ........................ yes
      Qt Widgets:
        GTK+ ................................... no
        Styles ................................. Fusion Windows
      Qt PrintSupport:
        CUPS ................................... no
      Qt Sql Drivers:
        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 Testlib:
        Tester for item models ................. yes
      Qt QML:
        QML network support .................... yes
        QML debugging and profiling support .... yes
        QML tracing JIT support ................ no
        QML sequence object .................... yes
        QML list model ......................... yes
        QML XML http request ................... yes
        QML Locale ............................. yes
        QML delegate model ..................... yes
      Qt Quick:
        Direct3D 12 ............................ no
        AnimatedImage item ..................... yes
        Canvas item ............................ yes
        Support for Qt Quick Designer .......... yes
        Flipable item .......................... yes
        GridView item .......................... yes
        ListView item .......................... yes
        TableView item ......................... yes
        Path support ........................... yes
        PathView item .......................... yes
        Positioner items ....................... yes
        Repeater item .......................... yes
        ShaderEffect item ...................... yes
        Sprite item ............................ yes
      Qt Scxml:
        ECMAScript data model for QtScxml ...... yes
      Qt Quick Controls 2:
        Styles ................................. Default Fusion Imagine Material Universal
      Qt Quick Templates 2:
        Hover support .......................... yes
        Multi-touch support .................... yes
      QtXmlPatterns:
        XML schema support ..................... yes
      Qt Multimedia:
        ALSA ................................... yes
        GStreamer 1.0 .......................... no
        GStreamer 0.10 ......................... no
        Video for Linux ........................ yes
        OpenAL ................................. no
        PulseAudio ............................. no
        Resource Policy (libresourceqt5) ....... no
        Windows Audio Services ................. no
        DirectShow ............................. no
        Windows Media Foundation ............... noNote: Also available for Linux: linux-clang linux-iccQt is now configured for building. Just run 'make'.

       

       

       

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            thiago Thiago Macieira
            flybywind tongxin wen
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes