0

I have trying to build QT5 5.12.3 on Raspberry Pi zero via these site instructions:

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

And 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 gone until the configure process so get this output:

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 .........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: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
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.................. 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 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 2target '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

and the make install script output:

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

SO I have asked for error solution vi Qt forum here:

https://forum.qt.io/topic/103934/failure-to-build-qt5-5-12-3-on-raspberry-pi-zero/2

there s said:

our 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 this command for example:

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

but i don't find any massage, so i checked via internet and I have seen this bugreports from qt site 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

So i dont know why the MR sierdzio is said still does not show any error, and what do you think anout this proccess and the Errors in this native build Qt installtion on Raspberry pi zero?

thanks.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.