Failure to build QT5 5.12.3 on Raspberry Pi zero



  • Hi:

    Following the instructions in https://www.tal.org/tutorials/building-qt-512-raspberry-pi :

    wget http://download.qt.io/official_releases/qt/5.12/5.12.3/single/qt-everywhere-src-5.12.3.tar.xz
    tar xf qt-everywhere-src-5.12.3.tar.xz
    git clone https://github.com/oniongarlic/qt-raspberrypi-configuration.git
    

    cd into the clone repository and run (adjust DESTDIR in case your Qt sources are extracted somewhere else):

    cd qt-raspberrypi-configuration && make install DESTDIR=../qt-everywhere-src-5.12.3
    
    apt-get update
    apt-get install build-essential libfontconfig1-dev libdbus-1-dev libfreetype6-dev libicu-dev libinput-dev libxkbcommon-dev libsqlite3-dev libssl-dev libpng-dev libjpeg-dev libglib2.0-dev libraspberrypi-dev
    

    So for running the configure file i entered this command to terminal:
    export PATH="$PATH:/usr/lib/llvm-3.8

     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 -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
    

    I have gone until the configure process so get this output:

    rying source 0 (type pkgConfig) of library pulseaudio ...
    + /usr/bin/pkg-config --exists --silence-errors libpulse '>=' 0.9.10 libpulse-mainloop-glib
    + /usr/bin/pkg-config --modversion libpulse '>=' 0.9.10 libpulse-mainloop-glib
    > 10.0
    > 10.0
    + /usr/bin/pkg-config --libs-only-L libpulse '>=' 0.9.10 libpulse-mainloop-glib
    + /usr/bin/pkg-config --libs-only-l libpulse '>=' 0.9.10 libpulse-mainloop-glib
    > -lpulse-mainloop-glib -lpulse -lglib-2.0
    + /usr/bin/pkg-config --cflags libpulse '>=' 0.9.10 libpulse-mainloop-glib
    > -D_REENTRANT -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include
    + cd /home/pi/Desktop/qt-raspberrypi-configuration/config.tests/pulseaudio && /home/pi/Desktop/qt-raspberrypi-configuration/qtbase/bin/qmake "CONFIG -= qt debug_and_release app_bundle lib_bundle" "CONFIG += shared use_gold_linker warn_off console single_arch" 'QMAKE_USE += pulseaudio' 'QMAKE_LIBS_PULSEAUDIO = /usr/lib/arm-linux-gnueabihf/libpulse-mainloop-glib.so /usr/lib/arm-linux-gnueabihf/libpulse.so /usr/lib/arm-linux-gnueabihf/libglib-2.0.so' 'QMAKE_INCDIR_PULSEAUDIO = /usr/include/glib-2.0 /usr/lib/arm-linux-gnueabihf/glib-2.0/include' 'QMAKE_DEFINES_PULSEAUDIO = _REENTRANT' /home/pi/Desktop/qt-everywhere-src-5.12.3/qtmultimedia/config.tests/pulseaudio
    + cd /home/pi/Desktop/qt-raspberrypi-configuration/config.tests/pulseaudio && MAKEFLAGS= /usr/bin/make
    > g++ -c -pipe -mfpu=vfp -mtune=arm1176jzf-s -march=armv6zk -O2 -w -fPIC -D_REENTRANT -I/home/pi/Desktop/qt-everywhere-src-5.12.3/qtmultimedia/config.tests/pulseaudio -I. -isystem /usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I/home/pi/Desktop/qt-everywhere-src-5.12.3/qtbase/mkspecs/linux-rpi-g++ -o pulseaudio.o /home/pi/Desktop/qt-everywhere-src-5.12.3/qtmultimedia/config.tests/pulseaudio/pulseaudio.cpp
    > g++ -Wl,-O1 -fuse-ld=gold -o pulseaudio pulseaudio.o   /usr/lib/arm-linux-gnueabihf/libpulse-mainloop-glib.so /usr/lib/arm-linux-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.
    
    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
    

    and by running make -j2 i get this output:

    bcommon.so /usr/lib/arm-linux-gnueabihf/libdl.so -lbrcmGLESv2 -lbrcmEGL /usr/lib/arm-linux-gnueabihf/libgthread-2.0.so /usr/lib/arm-linux-gnueabihf/libglib-2.0.so /usr/lib/arm-linux-gnueabihf/libfreetype.so /usr/lib/arm-linux-gnueabihf/libz.so   
    /usr/bin/ld.gold: error: .obj/qxcbwindow.o: file is empty
    .obj/qxcbclipboard.o:qxcbclipboard.cpp:function QXcbClipboard::requestor() const: error: undefined reference to 'QXcbWindow::setWindowTitle(QXcbConnection const*, unsigned int, QString const&)'
    .obj/qxcbconnection.o:qxcbconnection.cpp:function QXcbConnection::getQtSelectionOwner(): error: undefined reference to 'QXcbWindow::setWindowTitle(QXcbConnection const*, unsigned int, QString const&)'
    .obj/qxcbconnection.o:qxcbconnection.cpp:function QXcbConnection::clientLeader(): error: undefined reference to 'QXcbWindow::setWindowTitle(QXcbConnection const*, unsigned int, QString const&)'
    .obj/qxcbconnection.o:qxcbconnection.cpp:function QXcbConnection::event(QEvent*): error: undefined reference to 'QXcbWindow::updateSyncRequestCounter()'
    .obj/qxcbintegration.o:qxcbintegration.cpp:function QXcbIntegration::createForeignWindow(QWindow*, unsigned int) const: error: undefined reference to 'QXcbWindow::QXcbWindow(QWindow*)'
    .obj/qxcbintegration.o:qxcbintegration.cpp:function QXcbIntegration::createForeignWindow(QWindow*, unsigned int) const: error: undefined reference to 'vtable for QXcbForeignWindow'
    /usr/bin/ld.gold: the vtable symbol may be undefined because the class is missing its key function
    .obj/qxcbintegration.o:qxcbintegration.cpp:function QXcbIntegration::createPlatformWindow(QWindow*) const: error: undefined reference to 'QXcbWindow::QXcbWindow(QWindow*)'
    .obj/qxcbintegration.o:qxcbintegration.cpp:function QXcbIntegration::createPlatformWindow(QWindow*) const: error: undefined reference to 'QXcbWindow::create()'
    .obj/qxcbkeyboard.o:qxcbkeyboard.cpp:function QXcbKeyboard::handleKeyEvent(unsigned int, QEvent::Type, unsigned char, unsigned short, unsigned int, bool): error: undefined reference to 'QXcbWindow::updateNetWmUserTime(unsigned int)'
    .obj/qxcbscreen.o:qxcbscreen.cpp:function QXcbVirtualDesktop::QXcbVirtualDesktop(QXcbConnection*, xcb_screen_t*, int): error: undefined reference to 'QXcbWindow::windowTitle(QXcbConnection const*, unsigned int)'
    .obj/qxcbbackingstore.o:qxcbbackingstore.cpp:function QXcbBackingStoreImage::setClip(QRegion const&): error: undefined reference to 'qRegionToXcbRectangleList(QRegion const&)'
    .obj/qxcbbackingstore.o:qxcbbackingstore.cpp:function QXcbSystemTrayBackingStore::initXRenderMode(): error: undefined reference to 'QXcbWindow::visualId() const'
    .obj/qxcbbackingstore.o:qxcbbackingstore.cpp:function QXcbSystemTrayBackingStore::initXRenderMode(): error: undefined reference to 'QXcbWindow::visualId() const'
    .obj/qxcbbackingstore.o:qxcbbackingstore.cpp:function QXcbSystemTrayBackingStore::QXcbSystemTrayBackingStore(QWindow*): error: undefined reference to 'QXcbWindow::visualId() const'
    .obj/qxcbbackingstore.o:qxcbbackingstore.cpp:function QXcbSystemTrayBackingStore::QXcbSystemTrayBackingStore(QWindow*): error: undefined reference to 'QXcbWindow::setParentRelativeBackPixmap()'
    .obj/qxcbbackingstore.o:qxcbbackingstore.cpp:function QXcbBackingStore::flush(QWindow*, QRegion const&, QPoint const&): error: undefined reference to 'QXcbWindow::needsSync() const'
    .obj/qxcbbackingstore.o:qxcbbackingstore.cpp:function QXcbBackingStore::flush(QWindow*, QRegion const&, QPoint const&): error: undefined reference to 'QXcbWindow::updateSyncRequestCounter()'
    .obj/qxcbbackingstore.o:qxcbbackingstore.cpp:function QXcbBackingStore::composeAndFlush(QWindow*, QRegion const&, QPoint const&, QPlatformTextureList*, bool): error: undefined reference to 'QXcbWindow::needsSync() const'
    .obj/qxcbbackingstore.o:qxcbbackingstore.cpp:function QXcbBackingStore::composeAndFlush(QWindow*, QRegion const&, QPoint const&, QPlatformTextureList*, bool): error: undefined reference to 'QXcbWindow::updateSyncRequestCounter()'
    .obj/qxcbbackingstore.o:qxcbbackingstore.cpp:function QXcbSystemTrayBackingStore::recreateImage(QXcbWindow*, QSize const&): error: undefined reference to 'QXcbWindow::xcbScreen() const'
    .obj/qxcbbackingstore.o:qxcbbackingstore.cpp:function QXcbSystemTrayBackingStore::recreateImage(QXcbWindow*, QSize const&): error: undefined reference to 'QXcbWindow::xcbScreen() const'
    .obj/qxcbnativeinterface.o:qxcbnativeinterface.cpp:function dumpNativeWindowsRecursion(QXcbConnection const*, unsigned int, int, QTextStream&): error: undefined reference to 'QXcbWindow::windowTitle(QXcbConnection const*, unsigned int)'
    .obj/qxcbnativeinterface.o:qxcbnativeinterface.cpp:function QXcbNativeInterface::platformFunction(QByteArray const&) const: error: undefined reference to 'QXcbWindow::setWmWindowTypeStatic(QWindow*, QFlags<QXcbWindowFunctions::WmWindowType>)'
    .obj/qxcbnativeinterface.o:qxcbnativeinterface.cpp:function QXcbNativeInterface::platformFunction(QByteArray const&) const: error: undefined reference to 'QXcbWindow::setWmWindowRoleStatic(QWindow*, QByteArray const&)'
    .obj/qxcbnativeinterface.o:qxcbnativeinterface.cpp:function QXcbNativeInterface::platformFunction(QByteArray const&) const: error: undefined reference to 'QXcbWindow::setWindowIconTextStatic(QWindow*, QString const&)'
    .obj/qxcbnativeinterface.o:qxcbnativeinterface.cpp:function QXcbNativeInterface::platformFunction(QByteArray const&) const: error: undefined reference to 'QXcbWindow::visualIdStatic(QWindow*)'
    .obj/qxcbdrag.o:qxcbdrag.cpp:function QXcbDrag::move(QPoint const&, QFlags<Qt::MouseButton>, QFlags<Qt::KeyboardModifier>): error: undefined reference to 'QXcbWindow::windowTitle(QXcbConnection const*, unsigned int)'
    .obj/qxcbconnection_xi2.o:qxcbconnection_xi2.cpp:function QXcbConnection::xi2ProcessTouch(void*, QXcbWindow*): error: undefined reference to 'QXcbWindow::xcbScreen() const'
    .obj/qxcbconnection_xi2.o:qxcbconnection_xi2.cpp:function QXcbConnection::xi2ProcessTouch(void*, QXcbWindow*): error: undefined reference to 'QXcbWindow::doStartSystemMoveResize(QPoint const&, int)'
    .obj/qbackingstore_x11.o:qbackingstore_x11.cpp:function QXcbNativeBackingStore::flush(QWindow*, QRegion const&, QPoint const&): error: undefined reference to 'QXcbWindow::needsSync() const'
    .obj/qbackingstore_x11.o:qbackingstore_x11.cpp:function QXcbNativeBackingStore::flush(QWindow*, QRegion const&, QPoint const&): error: undefined reference to 'QXcbWindow::updateSyncRequestCounter()'
    collect2: error: ld returned 1 exit status
    Makefile.xcb_qpa_lib:260: recipe for target '../../../../lib/libQt5XcbQpa.so.5.12.3' failed
    make[6]: *** [../../../../lib/libQt5XcbQpa.so.5.12.3] Error 1
    make[6]: Leaving directory '/home/pi/Desktop/qt-raspberrypi-configuration/qtbase/src/plugins/platforms/xcb'
    Makefile:90: recipe for target 'sub-xcb_qpa_lib-pro-make_first-ordered' failed
    make[5]: *** [sub-xcb_qpa_lib-pro-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]: *** Waiting for unfinished jobs....
    make[6]: Entering directory '/home/pi/Desktop/qt-raspberrypi-configuration/qtbase/src/plugins/platforms/eglfs'
    make[6]: Nothing to be done for 'first'.
    make[6]: Leaving directory '/home/pi/Desktop/qt-raspberrypi-configuration/qtbase/src/plugins/platforms/eglfs'
    ( test -e Makefile.eglfs-plugin || /home/pi/Desktop/qt-raspberrypi-configuration/qtbase/bin/qmake -o Makefile.eglfs-plugin /home/pi/Desktop/qt-everywhere-src-5.12.3/qtbase/src/plugins/platforms/eglfs/eglfs-plugin.pro ) && make -f Makefile.eglfs-plugin 
    make[6]: Entering directory '/home/pi/Desktop/qt-raspberrypi-configuration/qtbase/src/plugins/platforms/eglfs'
    make[6]: Nothing to be done for 'first'.
    make[6]: Leaving directory '/home/pi/Desktop/qt-raspberrypi-configuration/qtbase/src/plugins/platforms/eglfs'
    cd deviceintegration/ && ( 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/eglfs/deviceintegration/deviceintegration.pro ) && make -f Makefile 
    make[6]: Entering directory '/home/pi/Desktop/qt-raspberrypi-configuration/qtbase/src/plugins/platforms/eglfs/deviceintegration'
    cd eglfs_kms_support/ && ( 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/eglfs/deviceintegration/eglfs_kms_support/eglfs_kms_support.pro ) && make -f Makefile 
    cd eglfs_x11/ && ( 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/eglfs/deviceintegration/eglfs_x11/eglfs_x11.pro ) && make -f Makefile 
    make[7]: Entering directory '/home/pi/Desktop/qt-raspberrypi-configuration/qtbase/src/plugins/platforms/eglfs/deviceintegration/eglfs_x11'
    make[7]: Nothing to be done for 'first'.
    make[7]: Leaving directory '/home/pi/Desktop/qt-raspberrypi-configuration/qtbase/src/plugins/platforms/eglfs/deviceintegration/eglfs_x11'
    cd eglfs_brcm/ && ( 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/eglfs/deviceintegration/eglfs_brcm/eglfs_brcm.pro ) && make -f Makefile 
    make[7]: Entering directory '/home/pi/Desktop/qt-raspberrypi-configuration/qtbase/src/plugins/platforms/eglfs/deviceintegration/eglfs_kms_support'
    make[7]: Nothing to be done for 'first'.
    make[7]: Leaving directory '/home/pi/Desktop/qt-raspberrypi-configuration/qtbase/src/plugins/platforms/eglfs/deviceintegration/eglfs_kms_support'
    cd eglfs_emu/ && ( 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/eglfs/deviceintegration/eglfs_emu/eglfs_emu.pro ) && make -f Makefile 
    make[7]: Entering directory '/home/pi/Desktop/qt-raspberrypi-configuration/qtbase/src/plugins/platforms/eglfs/deviceintegration/eglfs_brcm'
    make[7]: Nothing to be done for 'first'.
    make[7]: Leaving directory '/home/pi/Desktop/qt-raspberrypi-configuration/qtbase/src/plugins/platforms/eglfs/deviceintegration/eglfs_brcm'
    cd eglfs_kms/ && ( 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/eglfs/deviceintegration/eglfs_kms/eglfs_kms.pro ) && make -f Makefile 
    make[7]: Entering directory '/home/pi/Desktop/qt-raspberrypi-configuration/qtbase/src/plugins/platforms/eglfs/deviceintegration/eglfs_emu'
    make[7]: Nothing to be done for 'first'.
    make[7]: Leaving directory '/home/pi/Desktop/qt-raspberrypi-configuration/qtbase/src/plugins/platforms/eglfs/deviceintegration/eglfs_emu'
    cd eglfs_kms_egldevice/ && ( 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/eglfs/deviceintegration/eglfs_kms_egldevice/eglfs_kms_egldevice.pro ) && make -f Makefile 
    make[7]: Entering directory '/home/pi/Desktop/qt-raspberrypi-configuration/qtbase/src/plugins/platforms/eglfs/deviceintegration/eglfs_kms'
    make[7]: Nothing to be done for 'first'.
    make[7]: Leaving directory '/home/pi/Desktop/qt-raspberrypi-configuration/qtbase/src/plugins/platforms/eglfs/deviceintegration/eglfs_kms'
    make[7]: Entering directory '/home/pi/Desktop/qt-raspberrypi-configuration/qtbase/src/plugins/platforms/eglfs/deviceintegration/eglfs_kms_egldevice'
    make[7]: Nothing to be done for 'first'.
    make[7]: Leaving directory '/home/pi/Desktop/qt-raspberrypi-configuration/qtbase/src/plugins/platforms/eglfs/deviceintegration/eglfs_kms_egldevice'
    make[6]: Leaving directory '/home/pi/Desktop/qt-raspberrypi-configuration/qtbase/src/plugins/platforms/eglfs/deviceintegration'
    make[5]: Leaving directory '/home/pi/Desktop/qt-raspberrypi-configuration/qtbase/src/plugins/platforms/eglfs'
    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
    

    my question link via raspberry stack exchange:

    https://raspberrypi.stackexchange.com/questions/99609/failure-to-build-qt5-5-12-3-on-raspberry-pi-zero

    So, what can i do to solve this problem?

    thanks


  • Moderators

    @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.



  • 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


  • Moderators

    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.



  • 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.


  • Moderators

    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.



  • 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


  • Moderators

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



  • 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)


  • Moderators

    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...


Log in to reply