Qt5.10.1 cross compile: configure errors



  • Hey there,

    I am trying to build Qt5.10.1, on Ubuntu (intel), for beaglebone black.
    This is my configure call:

    ../qt-everywhere-src-5.10.1/configure -v -platform linux-g++ -release -device linux-beagleboard-g++ -sysroot ~/qt-bbb/sysroot-glibc-linaro-2.25-2017.11-arm-linux-gnueabihf -prefix /usr/local/qt5 -device-option CROSS_COMPILE=~/qt-bbb/gcc-linaro.7.2.1-2017.11-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf- -qt-xcb -egl -opengl es2 -force-pkg-config -skip qtwebengine -opensource -confirm-license

    This is what I get:

    Note: No wayland-egl support deteced. Cross-toolkit compatibility disabled.
    ERROR: Feature 'pkg-config' was enable, but the pre-condition 'tests.pkg-config' failed.
    ERROR: Feature 'xcb' was enabled, but the pre-condition 'libs.xcb' failed.
    ERROR: Feature 'opengles2' was enabled, but the pre-condition 'config.win32 || (!config.watchos && !features.opengl-desktp && libs.opengl_es2)' failed.
    ERROR: Feature 'egl' was enabled, but the pre-condition ''features.opengl || features.openvg) && (features.angle || libs.egl)' failed.
    ERROR: The OpenGL functionality tests failed!
    You might need to modify the include and library search paths by editing QMAKE_INCDIR_OPENGL[_ES2], QMAKE_LIBDIR_OPENGL[_ES2] and QMAKE_LIBS_OPENGL[_ES2] in the mkspec for your platform.

    (The text was copied by human. If there are any typos, do not be irritated. The virtualbox extension stuff for shared clipboard is not yet present ;))

    What does it mean, "precondition failed"?
    And as for modification of the search paths for the OpenGL things, can someone shed some light on the way they need to be modified? Do I need to install something more?

    Regards


  • Moderators

    @sktrpi The tests for all these features failed.
    To find out what is missing add -v parameter to configure, try again and see what exactly is missing (header files and libs for these features are missing).



  • -v already is the first parameter to my configure call? Or do I misunderstand?


  • Moderators

    @sktrpi Then check the output of configure to see what exactly is missing



  • I don't see any other complaints in the output other than the given ones.
    Before the errors, only the build options are listed.



  • So, what am I supposed to be looking for? What is the output supposed to look like? I don't see any more details than the error messages I quoted, despite the -v on configure.

    EDIT:
    By the way: If I configure with skipping opengl stuff, do not specify xcb (no idea whether that's good), and skip building examples etc, configure runs to end, and make runs to end (which it wouldn't without skipping the mentioned things).
    I am curious now whether I can build a project that actually runs on target with that, but I'm not quite there yet.

    I would, obviously, much prefer if OpenGL worked. ;)



  • Can no-one tell why -v does not give me more details about what's wrong? It seems to be a standard answer I have seen in several threads here, but doesn't appear to help in this instance, unless I'm missing something.


  • Moderators

    @sktrpi Can you try to call configure -v from a clean state and post the whole output here?



  • Ah! Using a new folder for building, there are a few things failing quite early on, but it keeps going. I was somehow thinking it should go over the failed things again when starting again.
    Seems there's quite some stuff missing. I did look at tutorials for this and installed prerequisites they listed, though.
    The error messages at the end are slightly different now: pkg-config was not mentioned last time.

    I cannot post the whole thing, it's way too much for this textbox's limits. I'll post only what failed, and cut way fluff (and paste only some instances of repeating stuff like paths).
    I wonder how I got it to make by leaving out openGL, given all those things missing.
    I also wonder why occasionally, some windows stuff is mentioned.

    The configure was:

    ../qt-everywhere-src-5.10.1/configure -v -platform linux-g++ -release -device linux-beagleboard-g++ -sysroot ~/qt-bbb/sysroot-glibc-linaro-2.25-2017.11-arm-linux-gnueabihf -prefix /usr/local/qt5 -device-option CROSS_COMPILE=~/qt-bbb/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf- -qt-xcb  -skip qtwebengine -nomake examples -no-compile-examples  -opensource -confirm-license
    
    Running configuration tests...
    Checking for pkg-config... 
    Found pkg-config from path: /usr/bin/pkg-config
    test config.qtbase.tests.pkg-config FAILED
    Checking for D-Bus >= 1.2... 
    Trying source 0 (type pkgConfig) of library dbus ...
    pkg-config use disabled globally.
      => source produced no result.
    Trying source 1 (type inline) of library dbus ...
      => source failed condition 'config.win32'.
    Trying source 2 (type inline) of library dbus ...
    + cd /home/sk/qt-bbb/qt-tmpbuild/config.tests/dbus && /home/sk/qt-bbb/qt-tmpbuild/qtbase/bin/qmake "CONFIG -= qt debug_and_release app_bundle lib_bundle" "CONFIG += shared use_gold_linker warn_off console single_arch" "QMAKE_CFLAGS += --sysroot=/home/sk/qt-bbb/sysroot-glibc-linaro-2.25-2017.11-arm-linux-gnueabihf" "QMAKE_CXXFLAGS += --sysroot=/home/sk/qt-bbb/sysroot-glibc-linaro-2.25-2017.11-arm-linux-gnueabihf" "QMAKE_LFLAGS += --sysroot=/home/sk/qt-bbb/sysroot-glibc-linaro-2.25-2017.11-arm-linux-gnueabihf" -early "CONFIG += cross_compile" 'LIBS += -ldbus-1' /home/sk/qt-bbb/qt-tmpbuild/config.tests/dbus
    + cd /home/sk/qt-bbb/qt-tmpbuild/config.tests/dbus && MAKEFLAGS= /usr/bin/make
    > /home/sk/qt-bbb/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++ -c -pipe -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mthumb -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mthumb -mfloat-abi=hard --sysroot=/home/sk/qt-bbb/sysroot-glibc-linaro-2.25-2017.11-arm-linux-gnueabihf -O2 -O3 -w -fPIC  -I. -I/home/sk/qt-bbb/qt-everywhere-src-5.10.1/qtbase/mkspecs/devices/linux-beagleboard-g++ -o main.o main.cpp
    > main.cpp:2:10: fatal error: dbus/dbus.h: No such file or directory
    >  #include <dbus/dbus.h>
    >           ^~~~~~~~~~~~~
    > compilation terminated.
    > Makefile:173: recipe for target 'main.o' failed
    > make: *** [main.o] Error 1
     => source failed verification.
    test config.qtbase.libraries.dbus FAILED
    Checking for udev... 
    > main.cpp:2:10: fatal error: libudev.h: No such file or directory
    >  #include <libudev.h>
    >           ^~~~~~~~~~~
    > arm-linux-gnueabihf-g++: error: unrecognized command line option ‘-mrdrnd’
    > Makefile:176: recipe for target 'rdrnd.o' failed
    > /home/sk/qt-bbb/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++ -c -pipe -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mthumb -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mthumb -mfloat-abi=hard --sysroot=/home/sk/qt-bbb/sysroot-glibc-linaro-2.25-2017.11-arm-linux-gnueabihf -O2 -O3 -w -fPIC  -I. -I/home/sk/qt-bbb/qt-everywhere-src-5.10.1/qtbase/mkspecs/devices/linux-beagleboard-g++ -o main.o main.cpp
    > main.cpp:3:4: error: #error Symbolic function binding on this architecture may be broken, disabling it (see QTBUG-36129).
    >  #  error Symbolic function binding on this architecture may be broken, disabling it (see QTBUG-36129).
    >     ^~~~~
    + cd /home/sk/qt-bbb/qt-tmpbuild/config.tests/zlib && /home/sk/qt-bbb/qt-tmpbuild/qtbase/bin/qmake "CONFIG -= qt debug_and_release app_bundle lib_bundle" "CONFIG += shared use_gold_linker warn_off console single_arch" "QMAKE_CFLAGS += --sysroot=/home/sk/qt-bbb/sysroot-glibc-linaro-2.25-2017.11-arm-linux-gnueabihf" "QMAKE_CXXFLAGS += --sysroot=/home/sk/qt-bbb/sysroot-glibc-linaro-2.25-2017.11-arm-linux-gnueabihf" "QMAKE_LFLAGS += --sysroot=/home/sk/qt-bbb/sysroot-glibc-linaro-2.25-2017.11-arm-linux-gnueabihf" -early "CONFIG += cross_compile" 'LIBS += -lz' /home/sk/qt-bbb/qt-tmpbuild/config.tests/zlib
    + cd /home/sk/qt-bbb/qt-tmpbuild/config.tests/zlib && MAKEFLAGS= /usr/bin/make
    > /home/sk/qt-bbb/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++ -c -pipe -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mthumb -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mthumb -mfloat-abi=hard --sysroot=/home/sk/qt-bbb/sysroot-glibc-linaro-2.25-2017.11-arm-linux-gnueabihf -O2 -O3 -w -fPIC  -I. -I/home/sk/qt-bbb/qt-everywhere-src-5.10.1/qtbase/mkspecs/devices/linux-beagleboard-g++ -o main.o main.cpp
    > main.cpp:2:10: fatal error: zlib.h: No such file or directory
    >  #include <zlib.h>
    >           ^~~~~~~~
    > compilation terminated.
    test config.corelib.libraries.glib FAILED
    > main.cpp:2:10: fatal error: unicode/utypes.h: No such file or directory
    >  #include <unicode/utypes.h>
    >           ^~~~~~~~~~~~~~~~~~
    > main.cpp: In function ‘int main(int, char**)’:
    > main.cpp:9:53: error: ‘RENAME_NOREPLACE’ was not declared in this scope
    >      renameat2(AT_FDCWD, argv[1], AT_FDCWD, argv[2], RENAME_NOREPLACE | RENAME_WHITEOUT);
    >                                                      ^~~~~~~~~~~~~~~~
    > main.cpp:9:53: note: suggested alternative: ‘_IOS_NOREPLACE’
    >      renameat2(AT_FDCWD, argv[1], AT_FDCWD, argv[2], RENAME_NOREPLACE | RENAME_WHITEOUT);
    >                                                      ^~~~~~~~~~~~~~~~
    >                                                      _IOS_NOREPLACE
    > main.cpp:9:72: error: ‘RENAME_WHITEOUT’ was not declared in this scope
    >      renameat2(AT_FDCWD, argv[1], AT_FDCWD, argv[2], RENAME_NOREPLACE | RENAME_WHITEOUT);
    >                                                                         ^~~~~~~~~~~~~~~
    > main.cpp:9:5: error: ‘renameat2’ was not declared in this scope
    >      renameat2(AT_FDCWD, argv[1], AT_FDCWD, argv[2], RENAME_NOREPLACE | RENAME_WHITEOUT);
    >      ^~~~~~~~~
    > main.cpp:9:5: note: suggested alternative: ‘renameat’
    >      renameat2(AT_FDCWD, argv[1], AT_FDCWD, argv[2], RENAME_NOREPLACE | RENAME_WHITEOUT);
    >      ^~~~~~~~~
    >      renameat
    > Makefile:175: recipe for target 'main.o' failed
    > make: *** [main.o] Error 1
    > main.cpp:2:10: fatal error: sys/slog2.h: No such file or directory
    >  #include <sys/slog2.h>
    >           ^~~~~~~~~~~~~
    Checking for statx() in libc... 
    + cd /home/sk/qt-bbb/qt-tmpbuild/config.tests/statx && /home/sk/qt-bbb/qt-tmpbuild/qtbase/bin/qmake "CONFIG -= qt debug_and_release app_bundle lib_bundle" "CONFIG += shared use_gold_linker warn_off console single_arch" "QMAKE_CFLAGS += --sysroot=/home/sk/qt-bbb/sysroot-glibc-linaro-2.25-2017.11-arm-linux-gnueabihf" "QMAKE_CXXFLAGS += --sysroot=/home/sk/qt-bbb/sysroot-glibc-linaro-2.25-2017.11-arm-linux-gnueabihf" "QMAKE_LFLAGS += --sysroot=/home/sk/qt-bbb/sysroot-glibc-linaro-2.25-2017.11-arm-linux-gnueabihf" -early "CONFIG += cross_compile" /home/sk/qt-bbb/qt-tmpbuild/config.tests/statx
    + cd /home/sk/qt-bbb/qt-tmpbuild/config.tests/statx && MAKEFLAGS= /usr/bin/make
    > /home/sk/qt-bbb/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++ -c -pipe -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mthumb -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mthumb -mfloat-abi=hard --sysroot=/home/sk/qt-bbb/sysroot-glibc-linaro-2.25-2017.11-arm-linux-gnueabihf --sysroot=/home/sk/qt-bbb/sysroot-glibc-linaro-2.25-2017.11-arm-linux-gnueabihf -O2 -O3 -w -fPIC  -I. -I/home/sk/qt-bbb/qt-everywhere-src-5.10.1/qtbase/mkspecs/devices/linux-beagleboard-g++ -o main.o main.cpp
    > main.cpp: In function ‘int main(int, char**)’:
    > main.cpp:11:18: error: aggregate ‘main(int, char**)::statx statxbuf’ has incomplete type and cannot be defined
    >      struct statx statxbuf;
    >                   ^~~~~~~~
    > main.cpp:12:25: error: ‘STATX_BASIC_STATS’ was not declared in this scope
    >      unsigned int mask = STATX_BASIC_STATS;
    >                          ^~~~~~~~~~~~~~~~~
    > main.cpp:13:32: error: ‘AT_STATX_SYNC_AS_STAT’ was not declared in this scope
    >      return statx(AT_FDCWD, "", AT_STATX_SYNC_AS_STAT, mask, &statxbuf);
    >                                 ^~~~~~~~~~~~~~~~~~~~~
    > main.cpp:13:70: error: invalid use of incomplete type ‘struct main(int, char**)::statx’
    >      return statx(AT_FDCWD, "", AT_STATX_SYNC_AS_STAT, mask, &statxbuf);
    >                                                                       ^
    > main.cpp:11:12: note: forward declaration of ‘struct main(int, char**)::statx’
    >      struct statx statxbuf;
    >             ^~~~~
    > main.cpp:2:10: fatal error: double-conversion/double-conversion.h: No such file or directory
    >  #include <double-conversion/double-conversion.h>
    >           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    > main.cpp:3:10: fatal error: pcre2.h: No such file or directory
    >  #include <pcre2.h>
    >           ^~~~~~~~~
    > /home/sk/qt-bbb/qt-everywhere-src-5.10.1/qtbase/config.tests/openssl/openssl.cpp:40:10: fatal error: openssl/opensslv.h: No such file or directory
    >  #include <openssl/opensslv.h>
    >           ^~~~~~~~~~~~~~~~~~~~
    > main.cpp:2:10: fatal error: xcb/xcb.h: No such file or directory
    >  #include <xcb/xcb.h>
    >           ^~~~~~~~~~~
    Trying source 1 (type makeSpec) of library opengl ...
    + cd /home/sk/qt-bbb/qt-tmpbuild/config.tests/opengl && /home/sk/qt-bbb/qt-tmpbuild/qtbase/bin/qmake "CONFIG -= qt debug_and_release app_bundle lib_bundle" "CONFIG += shared use_gold_linker warn_off console single_arch" "QMAKE_CFLAGS += --sysroot=/home/sk/qt-bbb/sysroot-glibc-linaro-2.25-2017.11-arm-linux-gnueabihf" "QMAKE_CXXFLAGS += --sysroot=/home/sk/qt-bbb/sysroot-glibc-linaro-2.25-2017.11-arm-linux-gnueabihf" "QMAKE_LFLAGS += --sysroot=/home/sk/qt-bbb/sysroot-glibc-linaro-2.25-2017.11-arm-linux-gnueabihf" -early "CONFIG += cross_compile" 'LIBS += -lGL' /home/sk/qt-bbb/qt-tmpbuild/config.tests/opengl
    + cd /home/sk/qt-bbb/qt-tmpbuild/config.tests/opengl && MAKEFLAGS= /usr/bin/make
    > /home/sk/qt-bbb/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++ -c -pipe -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mthumb -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mthumb -mfloat-abi=hard --sysroot=/home/sk/qt-bbb/sysroot-glibc-linaro-2.25-2017.11-arm-linux-gnueabihf --sysroot=/home/sk/qt-bbb/sysroot-glibc-linaro-2.25-2017.11-arm-linux-gnueabihf -O2 -O3 -w -fPIC  -I. -I/home/sk/qt-bbb/qt-everywhere-src-5.10.1/qtbase/mkspecs/devices/linux-beagleboard-g++ -o main.o main.cpp
    > main.cpp:6:12: fatal error: GL/gl.h: No such file or directory
    >  #  include <GL/gl.h>
    >             ^~~~~~~~~
    > compilation terminated.
    > Makefile:175: recipe for target 'main.o' failed
    > make: *** [main.o] Error 1
     => source failed verification.
    > main.cpp:6:12: fatal error: GLES2/gl2.h: No such file or directory
    >  #  include <GLES2/gl2.h>
    >             ^~~~~~~~~~~~~
    > main.cpp:2:10: fatal error: VG/openvg.h: No such file or directory
    >  #include <VG/openvg.h>
    >           ^~~~~~~~~~~~~
    > main.cpp:2:10: fatal error: ft2build.h: No such file or directory
    >  #include <ft2build.h>
    >           ^~~~~~~~~~~~
    > main.cpp:5:10: fatal error: xf86drmMode.h: No such file or directory
    >  #include <xf86drmMode.h>
    >           ^~~~~~~~~~~~~~~
      => source failed condition 'config.integrity'.
    test config.gui.libraries.drm FAILED
    test config.gui.libraries.mtdev FAILED
    > main.cpp:2:10: fatal error: harfbuzz/hb.h: No such file or directory
    >  #include <harfbuzz/hb.h>
    >           ^~~~~~~~~~~~~~~
    > main.cpp:5:10: fatal error: jpeglib.h: No such file or directory
    >  #include <jpeglib.h>
    >           ^~~~~~~~~~~
    > main.cpp:2:10: fatal error: tslib.h: No such file or directory
    >  #include <tslib.h>
    >           ^~~~~~~~~
    > /home/sk/qt-bbb/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++ -c -pipe -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mthumb -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mthumb -mfloat-abi=hard --sysroot=/home/sk/qt-bbb/sysroot-glibc-linaro-2.25-2017.11-arm-linux-gnueabihf --sysroot=/home/sk/qt-bbb/sysroot-glibc-linaro-2.25-2017.11-arm-linux-gnueabihf -O2 -O3 -w -fPIC  -I/home/sk/qt-bbb/qt-everywhere-src-5.10.1/qtbase/config.tests/qpa/vulkan -I. -I/home/sk/qt-bbb/qt-everywhere-src-5.10.1/qtbase/mkspecs/devices/linux-beagleboard-g++ -o vulkan.o /home/sk/qt-bbb/qt-everywhere-src-5.10.1/qtbase/config.tests/qpa/vulkan/vulkan.cpp
    > /home/sk/qt-bbb/qt-everywhere-src-5.10.1/qtbase/config.tests/qpa/vulkan/vulkan.cpp:42:10: fatal error: vulkan/vulkan.h: No such file or directory
    >  #include <vulkan/vulkan.h>
    >           ^~~~~~~~~~~~~~~~~
    > main.cpp:2:10: fatal error: X11/Xlib.h: No such file or directory
    >  #include <X11/Xlib.h>
    >           ^~~~~~~~~~~~
    > main.cpp:2:10: fatal error: cups/cups.h: No such file or directory
    >  #include <cups/cups.h>
    >           ^~~~~~~~~~~~~
    > main.cpp:2:10: fatal error: sqlcli.h: No such file or directory
    >  #include <sqlcli.h>
    >           ^~~~~~~~~~
    test config.sqldrivers.libraries.db2 FAILED
    Checking for InterBase... 
    Trying source 0 (type inline) of library ibase ...
      => source failed condition 'config.win32'.
    Trying source 1 (type inline) of library ibase ...
    + cd /home/sk/qt-bbb/qt-tmpbuild/config.tests/ibase && /home/sk/qt-bbb/qt-tmpbuild/qtbase/bin/qmake "CONFIG -= qt debug_and_release app_bundle lib_bundle" "CONFIG += shared use_gold_linker warn_off console single_arch" "QMAKE_CFLAGS += --sysroot=/home/sk/qt-bbb/sysroot-glibc-linaro-2.25-2017.11-arm-linux-gnueabihf" "QMAKE_CXXFLAGS += --sysroot=/home/sk/qt-bbb/sysroot-glibc-linaro-2.25-2017.11-arm-linux-gnueabihf" "QMAKE_LFLAGS += --sysroot=/home/sk/qt-bbb/sysroot-glibc-linaro-2.25-2017.11-arm-linux-gnueabihf" -early "CONFIG += cross_compile" 'LIBS += -lgds' /home/sk/qt-bbb/qt-tmpbuild/config.tests/ibase
    + cd /home/sk/qt-bbb/qt-tmpbuild/config.tests/ibase && MAKEFLAGS= /usr/bin/make
    > /home/sk/qt-bbb/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++ -c -pipe -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mthumb -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mthumb -mfloat-abi=hard --sysroot=/home/sk/qt-bbb/sysroot-glibc-linaro-2.25-2017.11-arm-linux-gnueabihf --sysroot=/home/sk/qt-bbb/sysroot-glibc-linaro-2.25-2017.11-arm-linux-gnueabihf -O2 -O3 -w -fPIC  -I. -I/home/sk/qt-bbb/qt-everywhere-src-5.10.1/qtbase/mkspecs/devices/linux-beagleboard-g++ -o main.o main.cpp
    > main.cpp:2:10: fatal error: ibase.h: No such file or directory
    >  #include <ibase.h>
    >           ^~~~~~~~~
    Checking for MySQL... 
    Trying source 0 (type mysqlConfig) of library mysql ...
    mysql_config not found.
    > main.cpp:5:10: fatal error: mysql.h: No such file or directory
    >  #include <mysql.h>
    >           ^~~~~~~~~
    > compilation terminated.
    > main.cpp:2:10: fatal error: oci.h: No such file or directory
    >  #include <oci.h>
    >           ^~~~~~~
    > main.cpp:5:10: fatal error: sql.h: No such file or directory
    >  #include <sql.h>
    >           ^~~~~~~
    > main.cpp:2:10: fatal error: libpq-fe.h: No such file or directory
    >  #include <libpq-fe.h>
    >           ^~~~~~~~~~~~
    > main.cpp:2:10: fatal error: sqlite.h: No such file or directory
    >  #include <sqlite.h>
    >           ^~~~~~~~~~
    > main.cpp:2:10: fatal error: sybfront.h: No such file or directory
    >  #include <sybfront.h>
    >           ^~~~~~~~~~~~
    > /home/sk/qt-bbb/qt-everywhere-src-5.10.1/qtdeclarative/config.tests/d3d12/d3d12.cpp:40:10: fatal error: d3d12.h: No such file or directory
    >  #include <d3d12.h>
    >           ^~~~~~~~~
    > /home/sk/qt-bbb/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++ -c -pipe -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mthumb -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mthumb -mfloat-abi=hard --sysroot=/home/sk/qt-bbb/sysroot-glibc-linaro-2.25-2017.11-arm-linux-gnueabihf --sysroot=/home/sk/qt-bbb/sysroot-glibc-linaro-2.25-2017.11-arm-linux-gnueabihf -O2 -O3 -w -fPIC  -I/home/sk/qt-bbb/qt-everywhere-src-5.10.1/qtgamepad/config.tests/sdl -I. -I/home/sk/qt-bbb/qt-everywhere-src-5.10.1/qtbase/mkspecs/devices/linux-beagleboard-g++ -o main.o /home/sk/qt-bbb/qt-everywhere-src-5.10.1/qtgamepad/config.tests/sdl/main.cpp
    > /home/sk/qt-bbb/qt-everywhere-src-5.10.1/qtgamepad/config.tests/sdl/main.cpp:37:10: fatal error: SDL.h: No such file or directory
    >  #include <SDL.h>
    >           ^~~~~~~
    + cd /home/sk/qt-bbb/qt-tmpbuild/config.tests/assimp && /home/sk/qt-bbb/qt-tmpbuild/qtbase/bin/qmake "CONFIG -= qt debug_and_release app_bundle lib_bundle" "CONFIG += shared use_gold_linker warn_off console single_arch" "QMAKE_CFLAGS += --sysroot=/home/sk/qt-bbb/sysroot-glibc-linaro-2.25-2017.11-arm-linux-gnueabihf" "QMAKE_CXXFLAGS += --sysroot=/home/sk/qt-bbb/sysroot-glibc-linaro-2.25-2017.11-arm-linux-gnueabihf" "QMAKE_LFLAGS += --sysroot=/home/sk/qt-bbb/sysroot-glibc-linaro-2.25-2017.11-arm-linux-gnueabihf" -early "CONFIG += cross_compile" 'LIBS += -lassimp' /home/sk/qt-bbb/qt-everywhere-src-5.10.1/qt3d/config.tests/assimp
    + cd /home/sk/qt-bbb/qt-tmpbuild/config.tests/assimp && MAKEFLAGS= /usr/bin/make
    > /home/sk/qt-bbb/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++ -c -pipe -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mthumb -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mthumb -mfloat-abi=hard --sysroot=/home/sk/qt-bbb/sysroot-glibc-linaro-2.25-2017.11-arm-linux-gnueabihf --sysroot=/home/sk/qt-bbb/sysroot-glibc-linaro-2.25-2017.11-arm-linux-gnueabihf -O2 -O3 -w -fPIC  -I/home/sk/qt-bbb/qt-everywhere-src-5.10.1/qt3d/config.tests/assimp -I. -I/home/sk/qt-bbb/qt-everywhere-src-5.10.1/qtbase/mkspecs/devices/linux-beagleboard-g++ -o main.o /home/sk/qt-bbb/qt-everywhere-src-5.10.1/qt3d/config.tests/assimp/main.cpp
    > /home/sk/qt-bbb/qt-everywhere-src-5.10.1/qt3d/config.tests/assimp/main.cpp:29:10: fatal error: assimp/cimport.h: No such file or directory
    >  #include <assimp/cimport.h>
    >           ^~~~~~~~~~~~~~~~~~
    >  #include <fbxsdk.h>
    >           ^~~~~~~~~~
    >  #include <wayland-version.h>
    >           ^~~~~~~~~~~~~~~~~~~
    >  #include <wayland-egl.h>
    >           ^~~~~~~~~~~~~~~
    >  #include <wayland-egl.h>
    >           ^~~~~~~~~~~~~~~
    >  #include <wayland-version.h>
    >           ^~~~~~~~~~~~~~~~~~~
    >  #include <bluetooth/bluetooth.h>
    >           ^~~~~~~~~~~~~~~~~~~~~~~
    test config.bluetooth.libraries.bluez FAILED
    test config.sensors.libraries.sensorfw FAILED
    test config.positioning.libraries.gypsy FAILED
    >  #include <windows.system.h>
    >           ^~~~~~~~~~~~~~~~~~
    test config.positioning.tests.winrt_geolocation FAILED
    >  #include <alsa/asoundlib.h>
    >           ^~~~~~~~~~~~~~~~~~
    test config.multimedia.libraries.alsa FAILED
    test config.multimedia.libraries.gstreamer_1_0 FAILED
    test config.multimedia.libraries.gstreamer_0_10 FAILED
    >  #include <AL/al.h>
    >           ^~~~~~~~~
    
    Note: No wayland-egl support detected. Cross-toolkit compatibility disabled.
    
    WARNING: Disabling pkg-config since PKG_CONFIG_LIBDIR is not set and
    the host's .pc files would be used (even if you set PKG_CONFIG_PATH).
    Set this variable to the directory that contains target .pc files
    for pkg-config to function correctly when cross-compiling or
    use -pkg-config to override this test.
    
    ERROR: Feature 'xcb' was enabled, but the pre-condition 'libs.xcb' failed.
    
    ERROR: The OpenGL functionality tests failed!
    You might need to modify the include and library search paths by editing QMAKE_INCDIR_OPENGL[_ES2],
    QMAKE_LIBDIR_OPENGL[_ES2] and QMAKE_LIBS_OPENGL[_ES2] in the mkspec for your platform.
    

  • Moderators

    @sktrpi "main.cpp:2:10: fatal error: dbus/dbus.h: No such file or directory" - DBus header files missing. If you need DBus support install DBus devel package.
    Same goes for all the other failed tests with missing header files - you need to install devel packages for everything you want to use.



  • Hrm. But it complains e.g. about libudev missing. If I do "sudo apt install libudev-dev", at the end it says "0 upgraded, 0 newly installed"
    (and before that it lists a bunch of packages "were automatically installed and are no longer required" ... "..autoremove to remove them". - is it a good idea to follow such suggestions, btw, to keep the system clean? I don't think I did it on this installation, but just to know...)

    So it was already there, yet configure complained it's missing.
    What could cause that?
    Also, this scheme of <packagename>-dev(el) seems not to hold true for even most of the things listed, according to what apt install <TAB> finds.

    Looking from a higher perspective:
    Is there a way to "just install everything commonly needed, dammit!" instead of going over every single thing the build needs and searching for the correct way / actual library (version) to install?
    This whole process, as it currently presents itself to me, does not the least bit resemble something I would dare to call a sound or sane procedure. I feel more like a monkey poking at a hornets nest with a stick.
    So I assume what I am doing here is not "the way" things should be done? Alas I haven't found "the way".


  • Moderators

    @sktrpi Since you're cross compiling for another device: do you install those dev packages in your sysroot? It will not help to install them on your host, you need these packages (headers/libs) in your sysroot.



  • Heh. Likely. I wondered this myself before, and shrugged it off for the time being, as I thought, when following a tutorial (maybe less closely than I thought) for this, they are probably right, and I, so far a rather casual Linux user, am probably not when I doubt something, not knowing what all things do behind the scenes.

    Thanks for your help so far. I have to do some more general, non Qt specific reading now it seems, before I probably will be back with questions nonetheless ;)

    Ah, you don't happen to have a rough estimate at hand of how much storage space a built Qt 5.10 will take for linux arm hf platform?
    It would be great to know if more things than the web thing can be left out of the build without problems, and if it is worthwhile space wise.
    I only need a basic GUI program that sends/receives some data over sockets and UART, displays a few images and stores info to disk. Nothing fancy.


  • Moderators

    @sktrpi Just build QtCore, QtWidgets, networking stuff and QtSerial. I don't know how much space this will take but for sure much less than whole Qt build (and build will be faster and less dependencies needed :-)).


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.