Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Failure to build QT5 5.12.3 on Raspberry Pi zero
Forum Updated to NodeBB v4.3 + New Features

Failure to build QT5 5.12.3 on Raspberry Pi zero

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
13 Posts 3 Posters 3.7k Views 2 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.
  • sierdzioS Offline
    sierdzioS Offline
    sierdzio
    Moderators
    wrote on last edited by
    #2

    @SoheilSabz said in Failure to build QT5 5.12.3 on Raspberry Pi zero:

    -qpa eglfs
    -qt-xcb

    Not sure but I suspect these 2 flags clash with each other. Try not specifying any of them (or just one).

    Also - are you sure you need all the remaining modules? Will you use Qt to draw any GUI or just command line stuff? The more modules you -skip or remove from source directory, the faster the compilation will be.

    (Z(:^

    1 Reply Last reply
    0
    • SoheilSabzS Offline
      SoheilSabzS Offline
      SoheilSabz
      wrote on last edited by SoheilSabz
      #3

      the fisrt configuratoin setting was:

      PKG_CONFIG_LIBDIR=/usr/lib/arm-linux-gnueabihf/pkgconfig:/usr/share/pkgconfig \
      ../qt-everywhere-src-5.12.3/configure -platform linux-rpi-g++ \
      -v \
      -opengl es2 -eglfs \
      -no-gtk \
      -opensource -confirm-license -release \
      -reduce-exports \
      -force-pkg-config \
      -nomake examples -no-compile-examples \
      -skip qtwayland \
      -skip qtwebengine \
      -no-feature-geoservices_mapboxgl \
      -qt-pcre \
      -no-pch \
      -ssl \
      -evdev \
      -system-freetype \
      -fontconfig \
      -glib \
      -prefix /opt/Qt5.12 \
      -qpa eglfs \
      -qt-xcb
      

      as you said i removed -qpa eglfs from configuration. and the output of configuration setting was:

      Trying source 0 (type pkgConfig) of library libresourceqt5 ...
      + /usr/bin/pkg-config --exists --silence-errors libresourceqt5
      pkg-config did not find package.
        => source produced no result.
      
      Cannot find libclang's main header file, candidate: /usr/lib/llvm-3.8/include/clang-c/Index.h.
      Cannot find libclang's main header file, candidate: /usr/lib/llvm-3.8/include/clang-c/Index.h.
      Done running configuration tests.
      
      Configure summary:
      
      Build type: linux-rpi-g++ (arm, CPU features: <none>)
      Compiler: gcc 6.3.0
      Configuration: use_gold_linker enable_new_dtags largefile shared rpath release c++11 c++14 concurrent dbus 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++14
        Using ccache ........................... no
        Using gold linker ...................... yes
        Using new DTAGS ........................ yes
        Using precompiled headers .............. no
        Using LTCG ............................. no
        Target compiler supports:
          NEON ................................. no
        Build parts ............................ libs tools
      Qt modules and options:
        Qt Concurrent .......................... yes
        Qt D-Bus ............................... yes
        Qt D-Bus directly linked to libdbus .... yes
        Qt Gui ................................. yes
        Qt Network ............................. yes
        Qt Sql ................................. yes
        Qt Testlib ............................. yes
        Qt Widgets ............................. yes
        Qt Xml ................................. yes
      Support enabled for:
        Using pkg-config ....................... yes
        udev ................................... yes
        Using system zlib ...................... yes
      Qt Core:
        DoubleConversion ....................... yes
          Using system DoubleConversion ........ yes
        GLib ................................... yes
        iconv .................................. no
        ICU .................................... 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
        SCTP ................................... no
        Use system proxies ..................... yes
      Qt Gui:
        Accessibility .......................... yes
        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
        EGL .................................... yes
        OpenVG ................................. yes
        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 ............................... yes
        INTEGRITY HID .......................... no
        mtdev .................................. yes
        tslib .................................. yes
        xkbcommon .............................. yes
        X11 specific:
          XLib ................................. yes
          XCB Xlib ............................. yes
          EGL on X11 ........................... yes
      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 ...................... yes
          EGLFS GBM ............................ yes
          EGLFS VSP2 ........................... no
          EGLFS Mali ........................... no
          EGLFS Raspberry Pi ................... yes
          EGLFS X11 ............................ yes
        LinuxFB ................................ yes
        VNC .................................... yes
        Mir client ............................. no
        XCB:
          Using system-provided XCB libraries .. no
          XCB XKB .............................. yes
          XCB XInput ........................... yes
          Native painting (experimental) ....... yes
          GL integrations:
            GLX Plugin ......................... no
            EGL-X11 Plugin ..................... yes
      Qt Sql:
        SQL item models ........................ yes
      Qt Widgets:
        GTK+ ................................... no
        Styles ................................. Fusion Windows
      Qt PrintSupport:
        CUPS ................................... yes
      Qt Sql Drivers:
        DB2 (IBM) .............................. no
        InterBase .............................. no
        MySql .................................. yes
        OCI (Oracle) ........................... no
        ODBC ................................... yes
        PostgreSQL ............................. yes
        SQLite2 ................................ yes
        SQLite ................................. yes
          Using system provided SQLite ......... no
        TDS (Sybase) ........................... yes
      Qt Testlib:
        Tester for item models ................. yes
      Qt SerialBus:
        Socket CAN ............................. yes
        Socket CAN FD .......................... yes
      Qt QML:
        QML network support .................... yes
        QML debugging and profiling support .... yes
        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 Gamepad:
        SDL2 ................................... no
      Qt 3D:
        Assimp ................................. yes
        System Assimp .......................... no
        Output Qt3D Job traces ................. no
        Output Qt3D GL traces .................. no
        Use SSE2 instructions .................. no
        Use AVX2 instructions .................. no
        Aspects:
          Render aspect ........................ yes
          Input aspect ......................... yes
          Logic aspect ......................... yes
          Animation aspect ..................... yes
          Extras aspect ........................ yes
      Qt 3D Renderers:
        OpenGL Renderer ........................ yes
      Qt 3D GeometryLoaders:
        Autodesk FBX ........................... no
      Qt Bluetooth:
        BlueZ .................................. no
        BlueZ Low Energy ....................... no
        Linux Crypto API ....................... no
        WinRT Bluetooth API (desktop & UWP) .... no
      Qt Sensors:
        sensorfw ............................... no
      Qt Quick Controls 2:
        Styles ................................. Default Fusion Imagine Material Universal
      Qt Quick Templates 2:
        Hover support .......................... yes
        Multi-touch support .................... yes
      Qt Positioning:
        Gypsy GPS Daemon ....................... no
        WinRT Geolocation API .................. no
      Qt Location:
        Qt.labs.location experimental QML plugin . yes
        Geoservice plugins:
          OpenStreetMap ........................ yes
          HERE ................................. yes
          Esri ................................. yes
          Mapbox ............................... yes
          MapboxGL ............................. no
          Itemsoverlay ......................... yes
      QtXmlPatterns:
        XML schema support ..................... yes
      Qt Multimedia:
        ALSA ................................... yes
        GStreamer 1.0 .......................... yes
        GStreamer 0.10 ......................... no
        Video for Linux ........................ yes
        OpenAL ................................. no
        PulseAudio ............................. yes
        Resource Policy (libresourceqt5) ....... no
        Windows Audio Services ................. no
        DirectShow ............................. no
        Windows Media Foundation ............... no
      Qt Tools:
        QDoc ................................... no
      
      WARNING: QDoc will not be compiled, probably because libclang could not be located. This means that you cannot build the Qt documentation.
      
      Either ensure that llvm-config is in your PATH environment variable, or set LLVM_INSTALL_DIR to the location of your llvm installation.
      On Linux systems, you may be able to install libclang by installing the libclang-dev or libclang-devel package, depending on your distribution.
      On macOS, you can use Homebrew's llvm package.
      On Windows, you must set LLVM_INSTALL_DIR to the installation path.
      
      Qt is now configured for building. Just run 'make'.
      Once everything is built, you must run 'make install'.
      Qt will be installed into '/opt/Qt5.12'.
      
      Prior to reconfiguration, make sure you remove any leftovers from
      the previous build.
      

      now the make output is here:

      pi/Desktop/qt-everywhere-src-5.12.3/qtbase/mkspecs/linux-rpi-g++ -o .obj/main.o /home/pi/Desktop/qt-everywhere-src-5.12.3/qtbase/src/plugins/generic/tuiotouch/main.cpp
      rm -f libqtuiotouchplugin.so
      g++ -Wl,--no-undefined -Wl,-O1 -fuse-ld=gold -Wl,--enable-new-dtags -Wl,-z,origin -Wl,-rpath,\$ORIGIN/../../lib -shared -o libqtuiotouchplugin.so .obj/main.o .obj/qoscbundle.o .obj/qoscmessage.o .obj/qtuiohandler.o .obj/moc_qtuiohandler_p.o  -L/opt/vc/lib -L/home/pi/Desktop/qt-raspberrypi-configuration/qtbase/lib -lQt5Gui -lQt5Network -lQt5Core -lbrcmGLESv2 -lbrcmEGL -lpthread    
      mv -f libqtuiotouchplugin.so ../../../../plugins/generic/libqtuiotouchplugin.so
      make[5]: Leaving directory '/home/pi/Desktop/qt-raspberrypi-configuration/qtbase/src/plugins/generic/tuiotouch'
      make[4]: Leaving directory '/home/pi/Desktop/qt-raspberrypi-configuration/qtbase/src/plugins/generic'
      make[3]: Leaving directory '/home/pi/Desktop/qt-raspberrypi-configuration/qtbase/src/plugins'
      Makefile:725: recipe for target 'sub-plugins-make_first' failed
      make[2]: *** [sub-plugins-make_first] Error 2
      make[2]: Leaving directory '/home/pi/Desktop/qt-raspberrypi-configuration/qtbase/src'
      Makefile:50: recipe for target 'sub-src-make_first' failed
      make[1]: *** [sub-src-make_first] Error 2
      make[1]: Leaving directory '/home/pi/Desktop/qt-raspberrypi-configuration/qtbase'
      Makefile:83: recipe for target 'module-qtbase-make_first' failed
      make: *** [module-qtbase-make_first] Error 2
      

      but now i have another problem!!!

      My stackexchange question link:

      https://raspberrypi.stackexchange.com/questions/99649/failure-to-build-qt5-5-12-3-on-raspberry-pi-zero-sub-plugins-make-first-error

      1 Reply Last reply
      0
      • sierdzioS Offline
        sierdzioS Offline
        sierdzio
        Moderators
        wrote on last edited by
        #4

        That output does not show any error message. Search before it (since you compile with -j flag the output is mixed so make does not exit immediately on error, it has to wait for all jobs to finish) and post it here, please.

        Hm, but even with -qpa removed you still do use -eglfs flag earlier, so perhaps the issue is still there.

        (Z(:^

        1 Reply Last reply
        0
        • SoheilSabzS Offline
          SoheilSabzS Offline
          SoheilSabz
          wrote on last edited by SoheilSabz
          #5

          because of long time-consuming installation process I use the nohup command by this way:

          nohup sh -c " sudo make -j2 && sudo make install "> /home/pi/Desktop/qt_inst.log /dev/null 2>&1 &
          

          but I think it only ran the sudo make -j2 and don't runned the sudo make install so as you said that there is no error ( but what is for example make[2]: *** [sub-plugins-make_first] Error 2 and ...), I have run the sudo make install and by above configuration the result of make install is :

            m_surface = eglCreateWindowSurface(m_glIntegration->eglDisplay(), m_config, m_window, 0);
                                                                                           ^~~~~~~~
          In file included from /home/pi/Desktop/qt-everywhere-src-5.12.3/qtbase/include/QtEglSupport/5.12.3/QtEglSupport/private/../../../../../src/platformsupport/eglconvenience/qt_egl_p.h:67:0,
                           from /home/pi/Desktop/qt-everywhere-src-5.12.3/qtbase/include/QtEglSupport/5.12.3/QtEglSupport/private/qt_egl_p.h:1,
                           from /home/pi/Desktop/qt-everywhere-src-5.12.3/qtbase/src/plugins/platforms/xcb/gl_integrations/xcb_egl/qxcbeglinclude.h:49,
                           from /home/pi/Desktop/qt-everywhere-src-5.12.3/qtbase/src/plugins/platforms/xcb/gl_integrations/xcb_egl/qxcbeglwindow.h:45,
                           from /home/pi/Desktop/qt-everywhere-src-5.12.3/qtbase/src/plugins/platforms/xcb/gl_integrations/xcb_egl/qxcbeglwindow.cpp:40:
          /opt/vc/include/EGL/egl.h:265:31: note:   initializing argument 3 of ‘void* eglCreateWindowSurface(EGLDisplay, EGLConfig, EGLNativeWindowType, const EGLint*)’
           EGLAPI EGLSurface EGLAPIENTRY eglCreateWindowSurface(EGLDisplay dpy, EGLConfig config,
                                         ^~~~~~~~~~~~~~~~~~~~~~
          Makefile:2020: recipe for target '.obj/qxcbeglwindow.o' failed
          make[7]: *** [.obj/qxcbeglwindow.o] Error 1
          make[7]: Leaving directory '/home/pi/Desktop/qt-raspberrypi-configuration/qtbase/src/plugins/platforms/xcb/gl_integrations/xcb_egl'
          Makefile:58: recipe for target 'sub-xcb_egl-install_subtargets' failed
          make[6]: *** [sub-xcb_egl-install_subtargets] Error 2
          make[6]: Leaving directory '/home/pi/Desktop/qt-raspberrypi-configuration/qtbase/src/plugins/platforms/xcb/gl_integrations'
          Makefile:174: recipe for target 'sub-gl_integrations-install_subtargets-ordered' failed
          make[5]: *** [sub-gl_integrations-install_subtargets-ordered] Error 2
          make[5]: Leaving directory '/home/pi/Desktop/qt-raspberrypi-configuration/qtbase/src/plugins/platforms/xcb'
          Makefile:114: recipe for target 'sub-xcb-install_subtargets' failed
          make[4]: *** [sub-xcb-install_subtargets] Error 2
          make[4]: Leaving directory '/home/pi/Desktop/qt-raspberrypi-configuration/qtbase/src/plugins/platforms'
          Makefile:116: recipe for target 'sub-platforms-install_subtargets' failed
          make[3]: *** [sub-platforms-install_subtargets] Error 2
          make[3]: Leaving directory '/home/pi/Desktop/qt-raspberrypi-configuration/qtbase/src/plugins'
          Makefile:737: recipe for target 'sub-plugins-install_subtargets' failed
          make[2]: *** [sub-plugins-install_subtargets] Error 2
          make[2]: Leaving directory '/home/pi/Desktop/qt-raspberrypi-configuration/qtbase/src'
          Makefile:62: recipe for target 'sub-src-install_subtargets' failed
          make[1]: *** [sub-src-install_subtargets] Error 2
          make[1]: Leaving directory '/home/pi/Desktop/qt-raspberrypi-configuration/qtbase'
          Makefile:95: recipe for target 'module-qtbase-install_subtargets' failed
          make: *** [module-qtbase-install_subtargets] Error 2
          pi@raspberrypi:~/MagPi $ 
          
          

          Dose still the error came from the xcb and eglfs mismatch?

          So i will try this configuration;

          PKG_CONFIG_LIBDIR=/usr/lib/arm-linux-gnueabihf/pkgconfig:/usr/share/pkgconfig \
          ../qt-everywhere-src-5.12.3/configure -platform linux-rpi-g++ \
          -v \
          -opengl es2 \
          -no-gtk \
          -opensource -confirm-license -release \
          -reduce-exports \
          -force-pkg-config \
          -nomake examples -no-compile-examples \
          -skip qtwayland \
          -skip qtwebengine \
          -no-feature-geoservices_mapboxgl \
          -qt-pcre \
          -no-pch \
          -ssl \
          -evdev \
          -system-freetype \
          -fontconfig \
          -glib \
          -prefix /opt/Qt5.12 \
          -qpa eglfs \
          -qt-xcb
          

          which i have removed -eglfs andthe output is:

          ux-gnueabihf/libpulse.so /usr/lib/arm-linux-gnueabihf/libglib-2.0.so   
           => source accepted.
          
          Trying source 0 (type pkgConfig) of library libresourceqt5 ...
          + /usr/bin/pkg-config --exists --silence-errors libresourceqt5
          pkg-config did not find package.
            => source produced no result.
          
          Cannot find libclang's main header file, candidate: /usr/lib/llvm-3.8/include/clang-c/Index.h.
          Cannot find libclang's main header file, candidate: /usr/lib/llvm-3.8/include/clang-c/Index.h.
          Done running configuration tests.
          
          Configure summary:
          
          Build type: linux-rpi-g++ (arm, CPU features: <none>)
          Compiler: gcc 6.3.0
          Configuration: use_gold_linker enable_new_dtags largefile shared rpath release c++11 c++14 concurrent dbus 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++14
            Using ccache ........................... no
            Using gold linker ...................... yes
            Using new DTAGS ........................ yes
            Using precompiled headers .............. no
            Using LTCG ............................. no
            Target compiler supports:
              NEON ................................. no
            Build parts ............................ libs tools
          Qt modules and options:
            Qt Concurrent .......................... yes
            Qt D-Bus ............................... yes
            Qt D-Bus directly linked to libdbus .... yes
            Qt Gui ................................. yes
            Qt Network ............................. yes
            Qt Sql ................................. yes
            Qt Testlib ............................. yes
            Qt Widgets ............................. yes
            Qt Xml ................................. yes
          Support enabled for:
            Using pkg-config ....................... yes
            udev ................................... yes
            Using system zlib ...................... yes
          Qt Core:
            DoubleConversion ....................... yes
              Using system DoubleConversion ........ yes
            GLib ................................... yes
            iconv .................................. no
            ICU .................................... 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
            SCTP ................................... no
            Use system proxies ..................... yes
          Qt Gui:
            Accessibility .......................... yes
            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
            EGL .................................... yes
            OpenVG ................................. yes
            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 ............................... yes
            INTEGRITY HID .......................... no
            mtdev .................................. yes
            tslib .................................. yes
            xkbcommon .............................. yes
            X11 specific:
              XLib ................................. yes
              XCB Xlib ............................. yes
              EGL on X11 ........................... yes
          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 ...................... yes
              EGLFS GBM ............................ yes
              EGLFS VSP2 ........................... no
              EGLFS Mali ........................... no
              EGLFS Raspberry Pi ................... yes
              EGLFS X11 ............................ yes
            LinuxFB ................................ yes
            VNC .................................... yes
            Mir client ............................. no
            XCB:
              Using system-provided XCB libraries .. no
              XCB XKB .............................. yes
              XCB XInput ........................... yes
              Native painting (experimental) ....... yes
              GL integrations:
                GLX Plugin ......................... no
                EGL-X11 Plugin ..................... yes
          Qt Sql:
            SQL item models ........................ yes
          Qt Widgets:
            GTK+ ................................... no
            Styles ................................. Fusion Windows
          Qt PrintSupport:
            CUPS ................................... yes
          Qt Sql Drivers:
            DB2 (IBM) .............................. no
            InterBase .............................. no
            MySql .................................. yes
            OCI (Oracle) ........................... no
            ODBC ................................... yes
            PostgreSQL ............................. yes
            SQLite2 ................................ yes
            SQLite ................................. yes
              Using system provided SQLite ......... no
            TDS (Sybase) ........................... yes
          Qt Testlib:
            Tester for item models ................. yes
          Qt SerialBus:
            Socket CAN ............................. yes
            Socket CAN FD .......................... yes
          Qt QML:
            QML network support .................... yes
            QML debugging and profiling support .... yes
            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 Gamepad:
            SDL2 ................................... no
          Qt 3D:
            Assimp ................................. yes
            System Assimp .......................... no
            Output Qt3D Job traces ................. no
            Output Qt3D GL traces .................. no
            Use SSE2 instructions .................. no
            Use AVX2 instructions .................. no
            Aspects:
              Render aspect ........................ yes
              Input aspect ......................... yes
              Logic aspect ......................... yes
              Animation aspect ..................... yes
              Extras aspect ........................ yes
          Qt 3D Renderers:
            OpenGL Renderer ........................ yes
          Qt 3D GeometryLoaders:
            Autodesk FBX ........................... no
          Qt Bluetooth:
            BlueZ .................................. no
            BlueZ Low Energy ....................... no
            Linux Crypto API ....................... no
            WinRT Bluetooth API (desktop & UWP) .... no
          Qt Sensors:
            sensorfw ............................... no
          Qt Quick Controls 2:
            Styles ................................. Default Fusion Imagine Material Universal
          Qt Quick Templates 2:
            Hover support .......................... yes
            Multi-touch support .................... yes
          Qt Positioning:
            Gypsy GPS Daemon ....................... no
            WinRT Geolocation API .................. no
          Qt Location:
            Qt.labs.location experimental QML plugin . yes
            Geoservice plugins:
              OpenStreetMap ........................ yes
              HERE ................................. yes
              Esri ................................. yes
              Mapbox ............................... yes
              MapboxGL ............................. no
              Itemsoverlay ......................... yes
          QtXmlPatterns:
            XML schema support ..................... yes
          Qt Multimedia:
            ALSA ................................... yes
            GStreamer 1.0 .......................... yes
            GStreamer 0.10 ......................... no
            Video for Linux ........................ yes
            OpenAL ................................. no
            PulseAudio ............................. yes
            Resource Policy (libresourceqt5) ....... no
            Windows Audio Services ................. no
            DirectShow ............................. no
            Windows Media Foundation ............... no
          Qt Tools:
            QDoc ................................... no
          
          WARNING: QDoc will not be compiled, probably because libclang could not be located. This means that you cannot build the Qt documentation.
          
          Either ensure that llvm-config is in your PATH environment variable, or set LLVM_INSTALL_DIR to the location of your llvm installation.
          On Linux systems, you may be able to install libclang by installing the libclang-dev or libclang-devel package, depending on your distribution.
          On macOS, you can use Homebrew's llvm package.
          On Windows, you must set LLVM_INSTALL_DIR to the installation path.
          
          Qt is now configured for building. Just run 'make'.
          Once everything is built, you must run 'make install'.
          Qt will be installed into '/opt/Qt5.12'.
          
          Prior to reconfiguration, make sure you remove any leftovers from
          the previous build.
          
          

          Output of make -j2 is :

          g++ -Wl,--no-undefined -Wl,-O1 -fuse-ld=gold -Wl,--enable-new-dtags -Wl,-z,origin -Wl,-rpath,\$ORIGIN/../../lib -shared -o libqminimalegl.so .obj/main.o .obj/qminimaleglintegration.o .obj/qminimaleglwindow.o .obj/qminimaleglscreen.o .obj/qminimaleglbackingstore.o  -L/opt/vc/lib -L/home/pi/Desktop/qt-raspberrypi-configuration/qtbase/lib -lQt5EventDispatcherSupport /usr/lib/arm-linux-gnueabihf/libgthread-2.0.so /usr/lib/arm-linux-gnueabihf/libglib-2.0.so -lQt5FontDatabaseSupport /usr/lib/arm-linux-gnueabihf/libfontconfig.so /usr/lib/arm-linux-gnueabihf/libfreetype.so /usr/lib/arm-linux-gnueabihf/libz.so -lQt5EglSupport /usr/lib/arm-linux-gnueabihf/libXext.so /usr/lib/arm-linux-gnueabihf/libX11.so /usr/lib/arm-linux-gnueabihf/libm.so -lQt5Gui -lQt5Core -lbrcmGLESv2 -lbrcmEGL -lpthread /usr/lib/arm-linux-gnueabihf/libdl.so -lbrcmEGL -lbrcmGLESv2   
          mv -f libqminimalegl.so ../../../../plugins/platforms/libqminimalegl.so
          make[5]: Leaving directory '/home/pi/Desktop/qt-raspberrypi-configuration/qtbase/src/plugins/platforms/minimalegl'
          make[4]: Leaving directory '/home/pi/Desktop/qt-raspberrypi-configuration/qtbase/src/plugins/platforms'
          Makefile:104: recipe for target 'sub-platforms-make_first' failed
          make[3]: *** [sub-platforms-make_first] Error 2
          make[3]: Leaving directory '/home/pi/Desktop/qt-raspberrypi-configuration/qtbase/src/plugins'
          Makefile:725: recipe for target 'sub-plugins-make_first' failed
          make[2]: *** [sub-plugins-make_first] Error 2
          make[2]: Leaving directory '/home/pi/Desktop/qt-raspberrypi-configuration/qtbase/src'
          Makefile:50: recipe for target 'sub-src-make_first' failed
          make[1]: *** [sub-src-make_first] Error 2
          make[1]: Leaving directory '/home/pi/Desktop/qt-raspberrypi-configuration/qtbase'
          Makefile:83: recipe for target 'module-qtbase-make_first' failed
          make: *** [module-qtbase-make_first] Error 2
          
          

          Out put of the make install is here:

          window.h:45,
                           from /home/pi/Desktop/qt-everywhere-src-5.12.3/qtbase/src/plugins/platforms/xcb/gl_integrations/xcb_egl/qxcbeglwindow.cpp:40:
          /opt/vc/include/EGL/egl.h:265:31: note:   initializing argument 3 of ‘void* eglCreateWindowSurface(EGLDisplay, EGLConfig, EGLNativeWindowType, const EGLint*)’
           EGLAPI EGLSurface EGLAPIENTRY eglCreateWindowSurface(EGLDisplay dpy, EGLConfig config,
                                         ^~~~~~~~~~~~~~~~~~~~~~
          Makefile:2020: recipe for target '.obj/qxcbeglwindow.o' failed
          make[7]: *** [.obj/qxcbeglwindow.o] Error 1
          make[7]: Leaving directory '/home/pi/Desktop/qt-raspberrypi-configuration/qtbase/src/plugins/platforms/xcb/gl_integrations/xcb_egl'
          Makefile:58: recipe for target 'sub-xcb_egl-install_subtargets' failed
          make[6]: *** [sub-xcb_egl-install_subtargets] Error 2
          make[6]: Leaving directory '/home/pi/Desktop/qt-raspberrypi-configuration/qtbase/src/plugins/platforms/xcb/gl_integrations'
          Makefile:174: recipe for target 'sub-gl_integrations-install_subtargets-ordered' failed
          make[5]: *** [sub-gl_integrations-install_subtargets-ordered] Error 2
          make[5]: Leaving directory '/home/pi/Desktop/qt-raspberrypi-configuration/qtbase/src/plugins/platforms/xcb'
          Makefile:114: recipe for target 'sub-xcb-install_subtargets' failed
          make[4]: *** [sub-xcb-install_subtargets] Error 2
          make[4]: Leaving directory '/home/pi/Desktop/qt-raspberrypi-configuration/qtbase/src/plugins/platforms'
          Makefile:116: recipe for target 'sub-platforms-install_subtargets' failed
          make[3]: *** [sub-platforms-install_subtargets] Error 2
          make[3]: Leaving directory '/home/pi/Desktop/qt-raspberrypi-configuration/qtbase/src/plugins'
          Makefile:737: recipe for target 'sub-plugins-install_subtargets' failed
          make[2]: *** [sub-plugins-install_subtargets] Error 2
          make[2]: Leaving directory '/home/pi/Desktop/qt-raspberrypi-configuration/qtbase/src'
          Makefile:62: recipe for target 'sub-src-install_subtargets' failed
          make[1]: *** [sub-src-install_subtargets] Error 2
          make[1]: Leaving directory '/home/pi/Desktop/qt-raspberrypi-configuration/qtbase'
          Makefile:95: recipe for target 'module-qtbase-install_subtargets' failed
          make: *** [module-qtbase-install_subtargets] Error 2
          
          

          Again i get the same erorr. Dose it need to run make clean beffor running ./configure ... ?

          I think I must ask another question about which plugin is better between xcb and eglfs on raspberry qt native built installation, So I have asked here:

          https://raspberrypi.stackexchange.com/questions/99667/which-plugin-is-better-between-xcb-and-eglfs-on-raspberry-qt-native-built-in

          Thanks a lot.

          1 Reply Last reply
          0
          • sierdzioS Offline
            sierdzioS Offline
            sierdzio
            Moderators
            wrote on last edited by
            #6

            You you have to always build in a clean environment. No artifacts from previous build. The easiest way to do so is to build in a separate directory.

            Do you need to compile as root (sudo make)? That should not be necessary. In most cases there is also no need to install as root, you can install into your user directory.

            Your output still does not show any error. Look earlier in the log and find where linker or compiler report an error message with dsecription of what and where has failed.

            (Z(:^

            1 Reply Last reply
            1
            • SoheilSabzS Offline
              SoheilSabzS Offline
              SoheilSabz
              wrote on last edited by SoheilSabz
              #7

              So i searched via the var/log files for Linux logs file to find out any error message by the command for example:

              pi@raspberrypi:/var/log $ sudo grep -r 'Error 2' $PWD
              

              but I don't find any massage.

              Now I have seen this [bugreports from qt site](lhttps://bugreports.qt.io/browse/QTBUG-44998?page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel&showAll=true which have had somepartly the same make output like me:

              Makefile:102: recipe for target 'sub-xcb-make_first' failed
              make[4]: *** [sub-xcb-make_first] Error 2
              make[4]: Leaving directory '/home/pi/Desktop/qt-raspberrypi-configuration/qtbase/src/plugins/platforms'
              Makefile:104: recipe for target 'sub-platforms-make_first' failed
              make[3]: *** [sub-platforms-make_first] Error 2
              make[3]: Leaving directory '/home/pi/Desktop/qt-raspberrypi-configuration/qtbase/src/plugins'
              Makefile:725: recipe for target 'sub-plugins-make_first' failed
              make[2]: *** [sub-plugins-make_first] Error 2
              make[2]: Leaving directory '/home/pi/Desktop/qt-raspberrypi-configuration/qtbase/src'
              Makefile:50: recipe for target 'sub-src-make_first' failed
              make[1]: *** [sub-src-make_first] Error 2
              

              Where
              So if it is not error for the third try by this configuration setting:

              sudo PKG_CONFIG_LIBDIR=/usr/lib/arm-linux-gnueabihf/pkgconfig:/usr/share/pkgconfig \
              ../qt-everywhere-src-5.12.3/configure -platform linux-rpi-g++ \
              -v \
              -opengl es2  \
              -no-gtk \
              -opensource -confirm-license -release \
              -reduce-exports \
              -force-pkg-config \
              -nomake examples -no-compile-examples \
              -skip qtwayland \
              -skip qtwebengine \
              -no-feature-geoservices_mapboxgl \
              -qt-pcre \
              -no-pch \
              -ssl \
              -evdev \
              -system-freetype \
              -fontconfig \
              -glib \
              -prefix /opt/Qt5.12 \
              -qt-xcb 
              

              i have this outpu:

              Trying source 0 (type pkgConfig) of library libresourceqt5 ...
              + /usr/bin/pkg-config --exists --silence-errors libresourceqt5
              pkg-config did not find package.
                => source produced no result.
              
              Cannot find libclang's main header file, candidate: /usr/lib/llvm-3.8/include/clang-c/Index.h.
              Cannot find libclang's main header file, candidate: /usr/lib/llvm-3.8/include/clang-c/Index.h.
              Done running configuration tests.
              
              Configure summary:
              
              Build type: linux-rpi-g++ (arm, CPU features: <none>)
              Compiler: gcc 6.3.0
              Configuration: use_gold_linker enable_new_dtags largefile shared rpath release c++11 c++14 concurrent dbus 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++14
                Using ccache ........................... no
                Using gold linker ...................... yes
                Using new DTAGS ........................ yes
                Using precompiled headers .............. no
                Using LTCG ............................. no
                Target compiler supports:
                  NEON ................................. no
                Build parts ............................ libs tools
              Qt modules and options:
                Qt Concurrent .......................... yes
                Qt D-Bus ............................... yes
                Qt D-Bus directly linked to libdbus .... yes
                Qt Gui ................................. yes
                Qt Network ............................. yes
                Qt Sql ................................. yes
                Qt Testlib ............................. yes
                Qt Widgets ............................. yes
                Qt Xml ................................. yes
              Support enabled for:
                Using pkg-config ....................... yes
                udev ................................... yes
                Using system zlib ...................... yes
              Qt Core:
                DoubleConversion ....................... yes
                  Using system DoubleConversion ........ yes
                GLib ................................... yes
                iconv .................................. no
                ICU .................................... 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
                SCTP ................................... no
                Use system proxies ..................... yes
              Qt Gui:
                Accessibility .......................... yes
                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
                EGL .................................... yes
                OpenVG ................................. yes
                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 ............................... yes
                INTEGRITY HID .......................... no
                mtdev .................................. yes
                tslib .................................. yes
                xkbcommon .............................. yes
                X11 specific:
                  XLib ................................. yes
                  XCB Xlib ............................. yes
                  EGL on X11 ........................... yes
              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 ...................... yes
                  EGLFS GBM ............................ yes
                  EGLFS VSP2 ........................... no
                  EGLFS Mali ........................... no
                  EGLFS Raspberry Pi ................... yes
                  EGLFS X11 ............................ yes
                LinuxFB ................................ yes
                VNC .................................... yes
                Mir client ............................. no
                XCB:
                  Using system-provided XCB libraries .. no
                  XCB XKB .............................. yes
                  XCB XInput ........................... yes
                  Native painting (experimental) ....... yes
                  GL integrations:
                    GLX Plugin ......................... no
                    EGL-X11 Plugin ..................... yes
              Qt Sql:
                SQL item models ........................ yes
              Qt Widgets:
                GTK+ ................................... no
                Styles ................................. Fusion Windows
              Qt PrintSupport:
                CUPS ................................... yes
              Qt Sql Drivers:
                DB2 (IBM) .............................. no
                InterBase .............................. no
                MySql .................................. yes
                OCI (Oracle) ........................... no
                ODBC ................................... yes
                PostgreSQL ............................. yes
                SQLite2 ................................ yes
                SQLite ................................. yes
                  Using system provided SQLite ......... no
                TDS (Sybase) ........................... yes
              Qt Testlib:
                Tester for item models ................. yes
              Qt SerialBus:
                Socket CAN ............................. yes
                Socket CAN FD .......................... yes
              Qt QML:
                QML network support .................... yes
                QML debugging and profiling support .... yes
                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 Gamepad:
                SDL2 ................................... no
              Qt 3D:
                Assimp ................................. yes
                System Assimp .......................... no
                Output Qt3D Job traces ................. no
                Output Qt3D GL traces .................. no
                Use SSE2 instructions .................. no
                Use AVX2 instructions .................. no
                Aspects:
                  Render aspect ........................ yes
                  Input aspect ......................... yes
                  Logic aspect ......................... yes
                  Animation aspect ..................... yes
                  Extras aspect ........................ yes
              Qt 3D Renderers:
                OpenGL Renderer ........................ yes
              Qt 3D GeometryLoaders:
                Autodesk FBX ........................... no
              Qt Bluetooth:
                BlueZ .................................. no
                BlueZ Low Energy ....................... no
                Linux Crypto API ....................... no
                WinRT Bluetooth API (desktop & UWP) .... no
              Qt Sensors:
                sensorfw ............................... no
              Qt Quick Controls 2:
                Styles ................................. Default Fusion Imagine Material Universal
              Qt Quick Templates 2:
                Hover support .......................... yes
                Multi-touch support .................... yes
              Qt Positioning:
                Gypsy GPS Daemon ....................... no
                WinRT Geolocation API .................. no
              Qt Location:
                Qt.labs.location experimental QML plugin . yes
                Geoservice plugins:
                  OpenStreetMap ........................ yes
                  HERE ................................. yes
                  Esri ................................. yes
                  Mapbox ............................... yes
                  MapboxGL ............................. no
                  Itemsoverlay ......................... yes
              QtXmlPatterns:
                XML schema support ..................... yes
              Qt Multimedia:
                ALSA ................................... yes
                GStreamer 1.0 .......................... yes
                GStreamer 0.10 ......................... no
                Video for Linux ........................ yes
                OpenAL ................................. no
                PulseAudio ............................. yes
                Resource Policy (libresourceqt5) ....... no
                Windows Audio Services ................. no
                DirectShow ............................. no
                Windows Media Foundation ............... no
              Qt Tools:
                QDoc ................................... no
              
              WARNING: QDoc will not be compiled, probably because libclang could not be located. This means that you cannot build the Qt documentation.
              
              Either ensure that llvm-config is in your PATH environment variable, or set LLVM_INSTALL_DIR to the location of your llvm installation.
              On Linux systems, you may be able to install libclang by installing the libclang-dev or libclang-devel package, depending on your distribution.
              On macOS, you can use Homebrew's llvm package.
              On Windows, you must set LLVM_INSTALL_DIR to the installation path.
              
              Qt is now configured for building. Just run 'make'.
              Once everything is built, you must run 'make install'.
              Qt will be installed into '/opt/Qt5.12'.
              

              And for make command this output:

              /opt/vc/include/EGL/egl.h:265:31: note:   initializing argument 3 of ‘void* eglCreateWindowSurface(EGLDisplay, EGLConfig, EGLNativeWindowType, const EGLint*)’
               EGLAPI EGLSurface EGLAPIENTRY eglCreateWindowSurface(EGLDisplay dpy, EGLConfig config,
                                             ^~~~~~~~~~~~~~~~~~~~~~
              Makefile:2020: recipe for target '.obj/qxcbeglwindow.o' failed
              make[7]: *** [.obj/qxcbeglwindow.o] Error 1
              make[7]: Leaving directory '/home/pi/Desktop/qt-raspberrypi-configuration/qtbase/src/plugins/platforms/xcb/gl_integrations/xcb_egl'
              Makefile:46: recipe for target 'sub-xcb_egl-make_first' failed
              make[6]: *** [sub-xcb_egl-make_first] Error 2
              make[6]: Leaving directory '/home/pi/Desktop/qt-raspberrypi-configuration/qtbase/src/plugins/platforms/xcb/gl_integrations'
              Makefile:150: recipe for target 'sub-gl_integrations-make_first-ordered' failed
              make[5]: *** [sub-gl_integrations-make_first-ordered] Error 2
              make[5]: Leaving directory '/home/pi/Desktop/qt-raspberrypi-configuration/qtbase/src/plugins/platforms/xcb'
              Makefile:102: recipe for target 'sub-xcb-make_first' failed
              make[4]: *** [sub-xcb-make_first] Error 2
              make[4]: Leaving directory '/home/pi/Desktop/qt-raspberrypi-configuration/qtbase/src/plugins/platforms'
              Makefile:104: recipe for target 'sub-platforms-make_first' failed
              make[3]: *** [sub-platforms-make_first] Error 2
              make[3]: Leaving directory '/home/pi/Desktop/qt-raspberrypi-configuration/qtbase/src/plugins'
              Makefile:725: recipe for target 'sub-plugins-make_first' failed
              make[2]: *** [sub-plugins-make_first] Error 2
              make[2]: Leaving directory '/home/pi/Desktop/qt-raspberrypi-configuration/qtbase/src'
              Makefile:50: recipe for target 'sub-src-make_first' failed
              make[1]: *** [sub-src-make_first] Error 2
              make[1]: Leaving directory '/home/pi/Desktop/qt-raspberrypi-configuration/qtbase'
              Makefile:83: recipe for target 'module-qtbase-make_first' failed
              make: *** [module-qtbase-make_first] Error 2
              
              

              The total make output file in pastabin :

              https://www.pastabin.ml/2DZ2fbK2SV

              which is the same with the previuse try. the make install output is here:

              make[4]: Entering directory '/home/pi/Desktop/qt-raspberrypi-configuration/qtbase/src/plugins/platforms'
              cd minimal/ && ( test -e Makefile || /home/pi/Desktop/qt-raspberrypi-configuration/qtbase/bin/qmake -o Makefile /home/pi/Desktop/qt-everywhere-src-5.12.3/qtbase/src/plugins/platforms/minimal/minimal.pro ) && make -f Makefile install
              make[5]: Entering directory '/home/pi/Desktop/qt-raspberrypi-
              make[5]: Entering directory '/home/pi/Desktop/qt-raspberrypi-configuration/qtbase/src/plugins/platforms/xcb'
              cd xcb-static/ && ( test -e Makefile || /home/pi/Desktop/qt-raspberrypi-configuration/qtbase/bin/qmake -o Makefile /home/pi/Desktop/qt-everywhere-src-5.12.3/qtbase/src/plugins/platforms/xcb/xcb-static/xcb-static.pro ) && make -f Makefile install
              make[6]: Entering directory '/home/pi/Desktop/qt-raspberrypi-configuration/qtbase/src/plugins/platforms/xcb/xcb-static'
              make[6]: Nothing to be done for 'install'.
              make[6]: Leaving directory '/home/pi/Desktop/qt-raspberrypi-configuration/qtbase/src/plugins/platforms/xcb/xcb-static'
              ( test -e Makefile.xcb_qpa_lib || /home/pi/Desktop/qt-raspberrypi-configuration/qtbase/bin/qmake -o Makefile.xcb_qpa_lib /home/pi/Desktop/qt-everywhere-src-5.12.3/qtbase/src/plugins/platforms/xcb/xcb_qpa_lib.pro ) && make -f Makefile.xcb_qpa_lib install
              make[6]: Entering directory '/home/pi/Desktop/qt-raspberrypi-configuration/qtbase/src/plugins/platforms/xcb'
              /home/pi/Desktop/qt-raspberrypi-configuration/qtbase/bin/qmake -install 
              make[6]: Entering directory '/home/pi/Desktop/qt-raspberrypi-configuration/qtbase/src/plugins/platforms/xcb'
              /home/pi/Desktop/qt-raspberrypi-configuration/qtbase/bin/qmake -install qinstall -exe ../../../../plugins/platforms/libqxcb.so /opt/Qt5.12/plugins/platforms/libqxcb.so
              strip --strip-unneeded /opt/Qt5.12/plugins/platforms/libqxcb.so
              /home/pi/Desktop/qt-raspberrypi-configuration/qtbase/bin/qmake -install qinstall /home/pi/Desktop/qt-raspberrypi-configuration/qtbase/lib/cmake/Qt5Gui/Qt5Gui_QXcbIntegrationPlugin.cmake /opt/Qt5.12/lib/cmake/Qt5Gui/Qt5Gui_QXcbIntegrationPlugin.cmake
              make[6]: Leaving directory '/home/pi/Desktop/qt-raspberrypi-configuration/qtbase/src/plugins/platforms/xcb'
              cd gl_integrations/ && ( test -e Makefile || /home/pi/Desktop/qt-raspberrypi-configuration/qtbase/bin/qmake -o Makefile /home/pi/Desktop/qt-everywhere-src-5.12.3/qtbase/src/plugins/platforms/xcb/gl_integrations/gl_integrations.pro ) && make -f Makefile install
              make[6]: Entering directory '/home/pi/Desktop/qt-raspberrypi-configuration/qtbase/src/plugins/platforms/xcb/gl_integrations'
              cd xcb_egl/ && ( test -e Makefile || /home/pi/Desktop/qt-raspberrypi-configuration/qtbase/bin/qmake -o Makefile /home/pi/Desktop/qt-everywhere-
                                                                                               ^~~~~~~~
              In file included from /home/pi/Desktop/qt-everywhere-src-5.12.3/qtbase
               EGLAPI EGLSurface EGLAPIENTRY eglCreateWindowSurface(EGLDisplay dpy, EGLConfig config,
                                             ^~~~~~~~~~~~~~~~~~~~~~
              Makefile:2020: recipe for target '.obj/qxcbeglwindow.o' failed
              make[7]: *** [.obj/qxcbeglwindow.o] Error 1
              make[7]: Leaving directory '/home/pi/Desktop/qt-raspberrypi-configuration/qtbase/src/plugins/platforms/xcb/gl_integrations/xcb_egl'
              Makefile:58: recipe for target 'sub-xcb_egl-install_subtargets' failed
              make[6]: *** [sub-xcb_egl-install_subtargets] Error 2
              make[6]: Leaving directory '/home/pi/Desktop/qt-raspberrypi-configuration/qtbase/src/plugins/platforms/xcb/gl_integrations'
              Makefile:174: recipe for target 'sub-gl_integrations-install_subtargets-ordered' failed
              make[5]: *** [sub-gl_integrations-install_subtargets-ordered] Error 2
              make[5]: Leaving directory '/home/pi/Desktop/qt-raspberrypi-configuration/qtbase/src/plugins/platforms/xcb'
              Makefile:114: recipe for target 'sub-xcb-install_subtargets' failed
              make[4]: *** [sub-xcb-install_subtargets] Error 2
              make[4]: Leaving directory '/home/pi/Desktop/qt-raspberrypi-configuration/qtbase/src/plugins/platforms'
              Makefile:116: recipe for target 'sub-platforms-install_subtargets' failed
              make[3]: *** [sub-platforms-install_subtargets] Error 2
              make[3]: Leaving directory '/home/pi/Desktop/qt-raspberrypi-configuration/qtbase/src/plugins'
              Makefile:737: recipe for target 'sub-plugins-install_subtargets' failed
              make[2]: *** [sub-plugins-install_subtargets] Error 2
              make[2]: Leaving directory '/home/pi/Desktop/qt-raspberrypi-configuration/qtbase/src'
              Makefile:62: recipe for target 'sub-src-install_subtargets' failed
              make[1]: *** [sub-src-install_subtargets] Error 2
              make[1]: Leaving directory '/home/pi/Desktop/qt-raspberrypi-configuration/qtbase'
              Makefile:95: recipe for target 'module-qtbase-install_subtargets' failed
              make: *** [module-qtbase-install_subtargets] Error 2
              

              The total make install output file in pastabin :

              https://www.pastabin.ml/av4wZnXbws

              I have asked a similar question here:

              https://unix.stackexchange.com/questions/525566/makes-errors-in-native-build-qt-installtion

              sierdzioS 1 Reply Last reply
              0
              • SoheilSabzS SoheilSabz

                So i searched via the var/log files for Linux logs file to find out any error message by the command for example:

                pi@raspberrypi:/var/log $ sudo grep -r 'Error 2' $PWD
                

                but I don't find any massage.

                Now I have seen this [bugreports from qt site](lhttps://bugreports.qt.io/browse/QTBUG-44998?page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel&showAll=true which have had somepartly the same make output like me:

                Makefile:102: recipe for target 'sub-xcb-make_first' failed
                make[4]: *** [sub-xcb-make_first] Error 2
                make[4]: Leaving directory '/home/pi/Desktop/qt-raspberrypi-configuration/qtbase/src/plugins/platforms'
                Makefile:104: recipe for target 'sub-platforms-make_first' failed
                make[3]: *** [sub-platforms-make_first] Error 2
                make[3]: Leaving directory '/home/pi/Desktop/qt-raspberrypi-configuration/qtbase/src/plugins'
                Makefile:725: recipe for target 'sub-plugins-make_first' failed
                make[2]: *** [sub-plugins-make_first] Error 2
                make[2]: Leaving directory '/home/pi/Desktop/qt-raspberrypi-configuration/qtbase/src'
                Makefile:50: recipe for target 'sub-src-make_first' failed
                make[1]: *** [sub-src-make_first] Error 2
                

                Where
                So if it is not error for the third try by this configuration setting:

                sudo PKG_CONFIG_LIBDIR=/usr/lib/arm-linux-gnueabihf/pkgconfig:/usr/share/pkgconfig \
                ../qt-everywhere-src-5.12.3/configure -platform linux-rpi-g++ \
                -v \
                -opengl es2  \
                -no-gtk \
                -opensource -confirm-license -release \
                -reduce-exports \
                -force-pkg-config \
                -nomake examples -no-compile-examples \
                -skip qtwayland \
                -skip qtwebengine \
                -no-feature-geoservices_mapboxgl \
                -qt-pcre \
                -no-pch \
                -ssl \
                -evdev \
                -system-freetype \
                -fontconfig \
                -glib \
                -prefix /opt/Qt5.12 \
                -qt-xcb 
                

                i have this outpu:

                Trying source 0 (type pkgConfig) of library libresourceqt5 ...
                + /usr/bin/pkg-config --exists --silence-errors libresourceqt5
                pkg-config did not find package.
                  => source produced no result.
                
                Cannot find libclang's main header file, candidate: /usr/lib/llvm-3.8/include/clang-c/Index.h.
                Cannot find libclang's main header file, candidate: /usr/lib/llvm-3.8/include/clang-c/Index.h.
                Done running configuration tests.
                
                Configure summary:
                
                Build type: linux-rpi-g++ (arm, CPU features: <none>)
                Compiler: gcc 6.3.0
                Configuration: use_gold_linker enable_new_dtags largefile shared rpath release c++11 c++14 concurrent dbus 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++14
                  Using ccache ........................... no
                  Using gold linker ...................... yes
                  Using new DTAGS ........................ yes
                  Using precompiled headers .............. no
                  Using LTCG ............................. no
                  Target compiler supports:
                    NEON ................................. no
                  Build parts ............................ libs tools
                Qt modules and options:
                  Qt Concurrent .......................... yes
                  Qt D-Bus ............................... yes
                  Qt D-Bus directly linked to libdbus .... yes
                  Qt Gui ................................. yes
                  Qt Network ............................. yes
                  Qt Sql ................................. yes
                  Qt Testlib ............................. yes
                  Qt Widgets ............................. yes
                  Qt Xml ................................. yes
                Support enabled for:
                  Using pkg-config ....................... yes
                  udev ................................... yes
                  Using system zlib ...................... yes
                Qt Core:
                  DoubleConversion ....................... yes
                    Using system DoubleConversion ........ yes
                  GLib ................................... yes
                  iconv .................................. no
                  ICU .................................... 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
                  SCTP ................................... no
                  Use system proxies ..................... yes
                Qt Gui:
                  Accessibility .......................... yes
                  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
                  EGL .................................... yes
                  OpenVG ................................. yes
                  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 ............................... yes
                  INTEGRITY HID .......................... no
                  mtdev .................................. yes
                  tslib .................................. yes
                  xkbcommon .............................. yes
                  X11 specific:
                    XLib ................................. yes
                    XCB Xlib ............................. yes
                    EGL on X11 ........................... yes
                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 ...................... yes
                    EGLFS GBM ............................ yes
                    EGLFS VSP2 ........................... no
                    EGLFS Mali ........................... no
                    EGLFS Raspberry Pi ................... yes
                    EGLFS X11 ............................ yes
                  LinuxFB ................................ yes
                  VNC .................................... yes
                  Mir client ............................. no
                  XCB:
                    Using system-provided XCB libraries .. no
                    XCB XKB .............................. yes
                    XCB XInput ........................... yes
                    Native painting (experimental) ....... yes
                    GL integrations:
                      GLX Plugin ......................... no
                      EGL-X11 Plugin ..................... yes
                Qt Sql:
                  SQL item models ........................ yes
                Qt Widgets:
                  GTK+ ................................... no
                  Styles ................................. Fusion Windows
                Qt PrintSupport:
                  CUPS ................................... yes
                Qt Sql Drivers:
                  DB2 (IBM) .............................. no
                  InterBase .............................. no
                  MySql .................................. yes
                  OCI (Oracle) ........................... no
                  ODBC ................................... yes
                  PostgreSQL ............................. yes
                  SQLite2 ................................ yes
                  SQLite ................................. yes
                    Using system provided SQLite ......... no
                  TDS (Sybase) ........................... yes
                Qt Testlib:
                  Tester for item models ................. yes
                Qt SerialBus:
                  Socket CAN ............................. yes
                  Socket CAN FD .......................... yes
                Qt QML:
                  QML network support .................... yes
                  QML debugging and profiling support .... yes
                  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 Gamepad:
                  SDL2 ................................... no
                Qt 3D:
                  Assimp ................................. yes
                  System Assimp .......................... no
                  Output Qt3D Job traces ................. no
                  Output Qt3D GL traces .................. no
                  Use SSE2 instructions .................. no
                  Use AVX2 instructions .................. no
                  Aspects:
                    Render aspect ........................ yes
                    Input aspect ......................... yes
                    Logic aspect ......................... yes
                    Animation aspect ..................... yes
                    Extras aspect ........................ yes
                Qt 3D Renderers:
                  OpenGL Renderer ........................ yes
                Qt 3D GeometryLoaders:
                  Autodesk FBX ........................... no
                Qt Bluetooth:
                  BlueZ .................................. no
                  BlueZ Low Energy ....................... no
                  Linux Crypto API ....................... no
                  WinRT Bluetooth API (desktop & UWP) .... no
                Qt Sensors:
                  sensorfw ............................... no
                Qt Quick Controls 2:
                  Styles ................................. Default Fusion Imagine Material Universal
                Qt Quick Templates 2:
                  Hover support .......................... yes
                  Multi-touch support .................... yes
                Qt Positioning:
                  Gypsy GPS Daemon ....................... no
                  WinRT Geolocation API .................. no
                Qt Location:
                  Qt.labs.location experimental QML plugin . yes
                  Geoservice plugins:
                    OpenStreetMap ........................ yes
                    HERE ................................. yes
                    Esri ................................. yes
                    Mapbox ............................... yes
                    MapboxGL ............................. no
                    Itemsoverlay ......................... yes
                QtXmlPatterns:
                  XML schema support ..................... yes
                Qt Multimedia:
                  ALSA ................................... yes
                  GStreamer 1.0 .......................... yes
                  GStreamer 0.10 ......................... no
                  Video for Linux ........................ yes
                  OpenAL ................................. no
                  PulseAudio ............................. yes
                  Resource Policy (libresourceqt5) ....... no
                  Windows Audio Services ................. no
                  DirectShow ............................. no
                  Windows Media Foundation ............... no
                Qt Tools:
                  QDoc ................................... no
                
                WARNING: QDoc will not be compiled, probably because libclang could not be located. This means that you cannot build the Qt documentation.
                
                Either ensure that llvm-config is in your PATH environment variable, or set LLVM_INSTALL_DIR to the location of your llvm installation.
                On Linux systems, you may be able to install libclang by installing the libclang-dev or libclang-devel package, depending on your distribution.
                On macOS, you can use Homebrew's llvm package.
                On Windows, you must set LLVM_INSTALL_DIR to the installation path.
                
                Qt is now configured for building. Just run 'make'.
                Once everything is built, you must run 'make install'.
                Qt will be installed into '/opt/Qt5.12'.
                

                And for make command this output:

                /opt/vc/include/EGL/egl.h:265:31: note:   initializing argument 3 of ‘void* eglCreateWindowSurface(EGLDisplay, EGLConfig, EGLNativeWindowType, const EGLint*)’
                 EGLAPI EGLSurface EGLAPIENTRY eglCreateWindowSurface(EGLDisplay dpy, EGLConfig config,
                                               ^~~~~~~~~~~~~~~~~~~~~~
                Makefile:2020: recipe for target '.obj/qxcbeglwindow.o' failed
                make[7]: *** [.obj/qxcbeglwindow.o] Error 1
                make[7]: Leaving directory '/home/pi/Desktop/qt-raspberrypi-configuration/qtbase/src/plugins/platforms/xcb/gl_integrations/xcb_egl'
                Makefile:46: recipe for target 'sub-xcb_egl-make_first' failed
                make[6]: *** [sub-xcb_egl-make_first] Error 2
                make[6]: Leaving directory '/home/pi/Desktop/qt-raspberrypi-configuration/qtbase/src/plugins/platforms/xcb/gl_integrations'
                Makefile:150: recipe for target 'sub-gl_integrations-make_first-ordered' failed
                make[5]: *** [sub-gl_integrations-make_first-ordered] Error 2
                make[5]: Leaving directory '/home/pi/Desktop/qt-raspberrypi-configuration/qtbase/src/plugins/platforms/xcb'
                Makefile:102: recipe for target 'sub-xcb-make_first' failed
                make[4]: *** [sub-xcb-make_first] Error 2
                make[4]: Leaving directory '/home/pi/Desktop/qt-raspberrypi-configuration/qtbase/src/plugins/platforms'
                Makefile:104: recipe for target 'sub-platforms-make_first' failed
                make[3]: *** [sub-platforms-make_first] Error 2
                make[3]: Leaving directory '/home/pi/Desktop/qt-raspberrypi-configuration/qtbase/src/plugins'
                Makefile:725: recipe for target 'sub-plugins-make_first' failed
                make[2]: *** [sub-plugins-make_first] Error 2
                make[2]: Leaving directory '/home/pi/Desktop/qt-raspberrypi-configuration/qtbase/src'
                Makefile:50: recipe for target 'sub-src-make_first' failed
                make[1]: *** [sub-src-make_first] Error 2
                make[1]: Leaving directory '/home/pi/Desktop/qt-raspberrypi-configuration/qtbase'
                Makefile:83: recipe for target 'module-qtbase-make_first' failed
                make: *** [module-qtbase-make_first] Error 2
                
                

                The total make output file in pastabin :

                https://www.pastabin.ml/2DZ2fbK2SV

                which is the same with the previuse try. the make install output is here:

                make[4]: Entering directory '/home/pi/Desktop/qt-raspberrypi-configuration/qtbase/src/plugins/platforms'
                cd minimal/ && ( test -e Makefile || /home/pi/Desktop/qt-raspberrypi-configuration/qtbase/bin/qmake -o Makefile /home/pi/Desktop/qt-everywhere-src-5.12.3/qtbase/src/plugins/platforms/minimal/minimal.pro ) && make -f Makefile install
                make[5]: Entering directory '/home/pi/Desktop/qt-raspberrypi-
                make[5]: Entering directory '/home/pi/Desktop/qt-raspberrypi-configuration/qtbase/src/plugins/platforms/xcb'
                cd xcb-static/ && ( test -e Makefile || /home/pi/Desktop/qt-raspberrypi-configuration/qtbase/bin/qmake -o Makefile /home/pi/Desktop/qt-everywhere-src-5.12.3/qtbase/src/plugins/platforms/xcb/xcb-static/xcb-static.pro ) && make -f Makefile install
                make[6]: Entering directory '/home/pi/Desktop/qt-raspberrypi-configuration/qtbase/src/plugins/platforms/xcb/xcb-static'
                make[6]: Nothing to be done for 'install'.
                make[6]: Leaving directory '/home/pi/Desktop/qt-raspberrypi-configuration/qtbase/src/plugins/platforms/xcb/xcb-static'
                ( test -e Makefile.xcb_qpa_lib || /home/pi/Desktop/qt-raspberrypi-configuration/qtbase/bin/qmake -o Makefile.xcb_qpa_lib /home/pi/Desktop/qt-everywhere-src-5.12.3/qtbase/src/plugins/platforms/xcb/xcb_qpa_lib.pro ) && make -f Makefile.xcb_qpa_lib install
                make[6]: Entering directory '/home/pi/Desktop/qt-raspberrypi-configuration/qtbase/src/plugins/platforms/xcb'
                /home/pi/Desktop/qt-raspberrypi-configuration/qtbase/bin/qmake -install 
                make[6]: Entering directory '/home/pi/Desktop/qt-raspberrypi-configuration/qtbase/src/plugins/platforms/xcb'
                /home/pi/Desktop/qt-raspberrypi-configuration/qtbase/bin/qmake -install qinstall -exe ../../../../plugins/platforms/libqxcb.so /opt/Qt5.12/plugins/platforms/libqxcb.so
                strip --strip-unneeded /opt/Qt5.12/plugins/platforms/libqxcb.so
                /home/pi/Desktop/qt-raspberrypi-configuration/qtbase/bin/qmake -install qinstall /home/pi/Desktop/qt-raspberrypi-configuration/qtbase/lib/cmake/Qt5Gui/Qt5Gui_QXcbIntegrationPlugin.cmake /opt/Qt5.12/lib/cmake/Qt5Gui/Qt5Gui_QXcbIntegrationPlugin.cmake
                make[6]: Leaving directory '/home/pi/Desktop/qt-raspberrypi-configuration/qtbase/src/plugins/platforms/xcb'
                cd gl_integrations/ && ( test -e Makefile || /home/pi/Desktop/qt-raspberrypi-configuration/qtbase/bin/qmake -o Makefile /home/pi/Desktop/qt-everywhere-src-5.12.3/qtbase/src/plugins/platforms/xcb/gl_integrations/gl_integrations.pro ) && make -f Makefile install
                make[6]: Entering directory '/home/pi/Desktop/qt-raspberrypi-configuration/qtbase/src/plugins/platforms/xcb/gl_integrations'
                cd xcb_egl/ && ( test -e Makefile || /home/pi/Desktop/qt-raspberrypi-configuration/qtbase/bin/qmake -o Makefile /home/pi/Desktop/qt-everywhere-
                                                                                                 ^~~~~~~~
                In file included from /home/pi/Desktop/qt-everywhere-src-5.12.3/qtbase
                 EGLAPI EGLSurface EGLAPIENTRY eglCreateWindowSurface(EGLDisplay dpy, EGLConfig config,
                                               ^~~~~~~~~~~~~~~~~~~~~~
                Makefile:2020: recipe for target '.obj/qxcbeglwindow.o' failed
                make[7]: *** [.obj/qxcbeglwindow.o] Error 1
                make[7]: Leaving directory '/home/pi/Desktop/qt-raspberrypi-configuration/qtbase/src/plugins/platforms/xcb/gl_integrations/xcb_egl'
                Makefile:58: recipe for target 'sub-xcb_egl-install_subtargets' failed
                make[6]: *** [sub-xcb_egl-install_subtargets] Error 2
                make[6]: Leaving directory '/home/pi/Desktop/qt-raspberrypi-configuration/qtbase/src/plugins/platforms/xcb/gl_integrations'
                Makefile:174: recipe for target 'sub-gl_integrations-install_subtargets-ordered' failed
                make[5]: *** [sub-gl_integrations-install_subtargets-ordered] Error 2
                make[5]: Leaving directory '/home/pi/Desktop/qt-raspberrypi-configuration/qtbase/src/plugins/platforms/xcb'
                Makefile:114: recipe for target 'sub-xcb-install_subtargets' failed
                make[4]: *** [sub-xcb-install_subtargets] Error 2
                make[4]: Leaving directory '/home/pi/Desktop/qt-raspberrypi-configuration/qtbase/src/plugins/platforms'
                Makefile:116: recipe for target 'sub-platforms-install_subtargets' failed
                make[3]: *** [sub-platforms-install_subtargets] Error 2
                make[3]: Leaving directory '/home/pi/Desktop/qt-raspberrypi-configuration/qtbase/src/plugins'
                Makefile:737: recipe for target 'sub-plugins-install_subtargets' failed
                make[2]: *** [sub-plugins-install_subtargets] Error 2
                make[2]: Leaving directory '/home/pi/Desktop/qt-raspberrypi-configuration/qtbase/src'
                Makefile:62: recipe for target 'sub-src-install_subtargets' failed
                make[1]: *** [sub-src-install_subtargets] Error 2
                make[1]: Leaving directory '/home/pi/Desktop/qt-raspberrypi-configuration/qtbase'
                Makefile:95: recipe for target 'module-qtbase-install_subtargets' failed
                make: *** [module-qtbase-install_subtargets] Error 2
                

                The total make install output file in pastabin :

                https://www.pastabin.ml/av4wZnXbws

                I have asked a similar question here:

                https://unix.stackexchange.com/questions/525566/makes-errors-in-native-build-qt-installtion

                sierdzioS Offline
                sierdzioS Offline
                sierdzio
                Moderators
                wrote on last edited by
                #8

                @SoheilSabz said in Failure to build QT5 5.12.3 on Raspberry Pi zero:

                sudo grep -r 'Error 2' $PWD

                Rather grep for Error: or just error or something. This "Error 2" stuff tells me nothing - it is just an indication in make that an actual error has occurred earlier. Maybe post the whole make output to pastebin?

                (Z(:^

                1 Reply Last reply
                0
                • SoheilSabzS Offline
                  SoheilSabzS Offline
                  SoheilSabz
                  wrote on last edited by SoheilSabz
                  #9

                  I have added the total output of make and make install scripts via pastabin site links into the above. ( but pastabin have had size limitation and I forced to cut some part s of it)

                  1 Reply Last reply
                  0
                  • sierdzioS Offline
                    sierdzioS Offline
                    sierdzio
                    Moderators
                    wrote on last edited by
                    #10

                    Thanks. The error is:

                    /home/pi/Desktop/qt-everywhere-src-5.12.3/qtbase/src/plugins/platforms/xcb/gl_integrations/xcb_egl/qxcbeglwindow.cpp:96:81: error: invalid conversion from ‘xcb_window_t {aka unsigned int}’ to ‘EGLNativeWindowType {aka void*}’ [-fpermissive]
                         m_surface = eglCreateWindowSurface(m_glIntegration->eglDisplay(), m_config, m_window, 0);
                                                                                                     ^~~~~~~~
                    

                    See a possible solution here: https://forum.qt.io/topic/103021/build-qt5-9-1-error-invalid-conversion-from-xcb_window_t-aka-unsigned-int-to-eglnativewindowtype-aka-void-fpermissive/4

                    Perhaps RPi Zero is too old for this, though...

                    (Z(:^

                    1 Reply Last reply
                    1
                    • R Offline
                      R Offline
                      RahibeMeryem
                      wrote on last edited by
                      #11

                      @sierdzio said in Failure to build QT5 5.12.3 on Raspberry Pi zero:

                      https://forum.qt.io/topic/103021/build-qt5-9-1-error-invalid-conversion-from-xcb_window_t-aka-unsigned-int-to-eglnativewindowtype-aka-void-fpermissive/4

                      @sierdzio

                      did you solve the error problem. I have same problem here with qt5.13.2 on the rpi4+

                      sierdzioS 1 Reply Last reply
                      0
                      • R RahibeMeryem

                        @sierdzio said in Failure to build QT5 5.12.3 on Raspberry Pi zero:

                        https://forum.qt.io/topic/103021/build-qt5-9-1-error-invalid-conversion-from-xcb_window_t-aka-unsigned-int-to-eglnativewindowtype-aka-void-fpermissive/4

                        @sierdzio

                        did you solve the error problem. I have same problem here with qt5.13.2 on the rpi4+

                        sierdzioS Offline
                        sierdzioS Offline
                        sierdzio
                        Moderators
                        wrote on last edited by
                        #12

                        @RahibeMeryem said in Failure to build QT5 5.12.3 on Raspberry Pi zero:

                        @sierdzio said in Failure to build QT5 5.12.3 on Raspberry Pi zero:

                        https://forum.qt.io/topic/103021/build-qt5-9-1-error-invalid-conversion-from-xcb_window_t-aka-unsigned-int-to-eglnativewindowtype-aka-void-fpermissive/4

                        @sierdzio

                        did you solve the error problem. I have same problem here with qt5.13.2 on the rpi4+

                        It wasn't me who had the problem :-)

                        I haven't compiled Qt on/for Raspberry Pi in a long while, so I can't comment. Also, I don't have RPI4 yet.

                        (Z(:^

                        1 Reply Last reply
                        0
                        • R Offline
                          R Offline
                          RahibeMeryem
                          wrote on last edited by
                          #13

                          @SoheilSabz

                          Hi Did you solve your problem ? I have same here..

                          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