Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Failed when building QT5 for Udoo Neo board



  • Hello all,
    I have a problem when building QT5 for udoo board (UDOObuntu 14.04)
    Following instructions on https://www.udoo.org/tutorial/how-to-build-qt5-for-udoo/
    my configure settings are

    ./configure -prefix /opt/qt5 -make libs -no-pch -no-opengl -device imx6 -device-option CROSS_COMPILE=/home/closx/Qt5_build/fsl-linaro-toolchain/bin/arm-fsl-linux-gnueabi- -no-largefile -opengl es2 -qt-zlib -qt-libpng -qt-libjpeg -no-nis -no-cups -gui -make examples -sysroot /home/closx/Qt5_build/ubuntu-14.04.2-minimal-armhf-2015-06-09 -no-gcc-sysroot -opensource -confirm-license -qreal 0float -v
    

    and having error

    sse2 auto-detection... ()
    /home/closx/Qt5_build/fsl-linaro-toolchain/bin/arm-fsl-linux-gnueabi-g++ -c -pipe -mfloat-abi=softfp -msse2 -g -march=armv7-a -mfpu=neon -DLINUX=1 -DEGL_API_FB=1 -Wall -W -fPIE  -I../../../mkspecs/devices/linux-imx6-g++ -I. -I/home/closx/Qt5_build/ubuntu-14.04.2-minimal-armhf-2015-06-09/usr/include -I/home/closx/Qt5_build/ubuntu-14.04.2-minimal-armhf-2015-06-09/usr/include/arm-linux-gnueabi -o sse2.o sse2.cpp
    cc1plus: error: unrecognized command line option '-msse2'
    Makefile:199: recipe for target 'sse2.o' failed
    make: *** [sse2.o] Error 1
    sse2 disabled.
    mtdev auto-detection... ()
    Project ERROR: mtdev development package not found
    make: *** No targets specified and no makefile found.  Stop.
    mtdev disabled.
    DB2 auto-detection... ()
    /home/closx/Qt5_build/fsl-linaro-toolchain/bin/arm-fsl-linux-gnueabi-g++ -c -pipe -mfloat-abi=softfp -O2 -O2 -march=armv7-a -mfpu=neon -DLINUX=1 -DEGL_API_FB=1 -Wall -W -fPIE  -I../../../mkspecs/devices/linux-imx6-g++ -I. -I/home/closx/Qt5_build/ubuntu-14.04.2-minimal-armhf-2015-06-09/usr/include -I/home/closx/Qt5_build/ubuntu-14.04.2-minimal-armhf-2015-06-09/usr/include/arm-linux-gnueabi -o db2.o db2.cpp
    db2.cpp:42:20: fatal error: sqlcli.h: No such file or directory
    compilation terminated.
    Makefile:199: recipe for target 'db2.o' failed
    make: *** [db2.o] Error 1
    DB2 disabled.
    InterBase auto-detection... ()
    /home/closx/Qt5_build/fsl-linaro-toolchain/bin/arm-fsl-linux-gnueabi-g++ -c -pipe -mfloat-abi=softfp -O2 -O2 -march=armv7-a -mfpu=neon -DLINUX=1 -DEGL_API_FB=1 -Wall -W -fPIE  -I../../../mkspecs/devices/linux-imx6-g++ -I. -I/home/closx/Qt5_build/ubuntu-14.04.2-minimal-armhf-2015-06-09/usr/include -I/home/closx/Qt5_build/ubuntu-14.04.2-minimal-armhf-2015-06-09/usr/include/arm-linux-gnueabi -o ibase.o ibase.cpp
    ibase.cpp:42:19: fatal error: ibase.h: No such file or directory
    compilation terminated.
    Makefile:199: recipe for target 'ibase.o' failed
    make: *** [ibase.o] Error 1
    InterBase disabled.
    MySQL (thread-safe) auto-detection... ()
    /home/closx/Qt5_build/fsl-linaro-toolchain/bin/arm-fsl-linux-gnueabi-g++ -c -pipe -mfloat-abi=softfp -O2 -O2 -march=armv7-a -mfpu=neon -DLINUX=1 -DEGL_API_FB=1 -Wall -W -fPIE  -I../../../mkspecs/devices/linux-imx6-g++ -I. -I/home/closx/Qt5_build/ubuntu-14.04.2-minimal-armhf-2015-06-09/usr/include -I/home/closx/Qt5_build/ubuntu-14.04.2-minimal-armhf-2015-06-09/usr/include/arm-linux-gnueabi -o mysql.o ../mysql/mysql.cpp
    ../mysql/mysql.cpp:42:19: fatal error: mysql.h: No such file or directory
    compilation terminated.
    Makefile:199: recipe for target 'mysql.o' failed
    make: *** [mysql.o] Error 1
    MySQL (thread-safe) disabled.
    MySQL (thread-unsafe) auto-detection... ()
    /home/closx/Qt5_build/fsl-linaro-toolchain/bin/arm-fsl-linux-gnueabi-g++ -c -pipe -mfloat-abi=softfp -O2 -O2 -march=armv7-a -mfpu=neon -DLINUX=1 -DEGL_API_FB=1 -Wall -W -fPIE  -I../../../mkspecs/devices/linux-imx6-g++ -I. -I/home/closx/Qt5_build/ubuntu-14.04.2-minimal-armhf-2015-06-09/usr/include -I/home/closx/Qt5_build/ubuntu-14.04.2-minimal-armhf-2015-06-09/usr/include/arm-linux-gnueabi -o mysql.o mysql.cpp
    mysql.cpp:42:19: fatal error: mysql.h: No such file or directory
    compilation terminated.
    Makefile:199: recipe for target 'mysql.o' failed
    make: *** [mysql.o] Error 1
    MySQL (thread-unsafe) disabled.
    OCI auto-detection... ()
    /home/closx/Qt5_build/fsl-linaro-toolchain/bin/arm-fsl-linux-gnueabi-g++ -c -pipe -mfloat-abi=softfp -O2 -O2 -march=armv7-a -mfpu=neon -DLINUX=1 -DEGL_API_FB=1 -Wall -W -fPIE  -I../../../mkspecs/devices/linux-imx6-g++ -I. -I/home/closx/Qt5_build/ubuntu-14.04.2-minimal-armhf-2015-06-09/usr/include -I/home/closx/Qt5_build/ubuntu-14.04.2-minimal-armhf-2015-06-09/usr/include/arm-linux-gnueabi -o oci.o oci.cpp
    oci.cpp:42:17: fatal error: oci.h: No such file or directory
    compilation terminated.
    Makefile:199: recipe for target 'oci.o' failed
    make: *** [oci.o] Error 1
    OCI disabled.
    ODBC auto-detection... ()
    /home/closx/Qt5_build/fsl-linaro-toolchain/bin/arm-fsl-linux-gnueabi-g++ -c -pipe -mfloat-abi=softfp -O2 -O2 -march=armv7-a -mfpu=neon -DLINUX=1 -DEGL_API_FB=1 -Wall -W -fPIE  -I../../../mkspecs/devices/linux-imx6-g++ -I. -I/home/closx/Qt5_build/ubuntu-14.04.2-minimal-armhf-2015-06-09/usr/include -I/home/closx/Qt5_build/ubuntu-14.04.2-minimal-armhf-2015-06-09/usr/include/arm-linux-gnueabi -o odbc.o odbc.cpp
    odbc.cpp:45:17: fatal error: sql.h: No such file or directory
    compilation terminated.
    Makefile:199: recipe for target 'odbc.o' failed
    make: *** [odbc.o] Error 1
    ODBC disabled.
    iODBC auto-detection... ()
    /home/closx/Qt5_build/fsl-linaro-toolchain/bin/arm-fsl-linux-gnueabi-g++ -c -pipe -mfloat-abi=softfp -O2 -O2 -march=armv7-a -mfpu=neon -DLINUX=1 -DEGL_API_FB=1 -Wall -W -fPIE  -I../../../mkspecs/devices/linux-imx6-g++ -I. -I/home/closx/Qt5_build/ubuntu-14.04.2-minimal-armhf-2015-06-09/usr/include -I/home/closx/Qt5_build/ubuntu-14.04.2-minimal-armhf-2015-06-09/usr/include/arm-linux-gnueabi -o iodbc.o iodbc.cpp
    iodbc.cpp:42:17: fatal error: sql.h: No such file or directory
    compilation terminated.
    Makefile:199: recipe for target 'iodbc.o' failed
    make: *** [iodbc.o] Error 1
    iODBC disabled.
    PostgreSQL auto-detection... ()
    /home/closx/Qt5_build/fsl-linaro-toolchain/bin/arm-fsl-linux-gnueabi-g++ -c -pipe -mfloat-abi=softfp -O2 -O2 -march=armv7-a -mfpu=neon -DLINUX=1 -DEGL_API_FB=1 -Wall -W -fPIE  -I../../../mkspecs/devices/linux-imx6-g++ -I. -I/home/closx/Qt5_build/ubuntu-14.04.2-minimal-armhf-2015-06-09/usr/include -I/home/closx/Qt5_build/ubuntu-14.04.2-minimal-armhf-2015-06-09/usr/include/arm-linux-gnueabi -o psql.o psql.cpp
    psql.cpp:42:22: fatal error: libpq-fe.h: No such file or directory
    compilation terminated.
    Makefile:199: recipe for target 'psql.o' failed
    make: *** [psql.o] Error 1
    PostgreSQL disabled.
    SQLite2 auto-detection... ()
    /home/closx/Qt5_build/fsl-linaro-toolchain/bin/arm-fsl-linux-gnueabi-g++ -c -pipe -mfloat-abi=softfp -O2 -O2 -march=armv7-a -mfpu=neon -DLINUX=1 -DEGL_API_FB=1 -Wall -W -fPIE  -I../../../mkspecs/devices/linux-imx6-g++ -I. -I/home/closx/Qt5_build/ubuntu-14.04.2-minimal-armhf-2015-06-09/usr/include -I/home/closx/Qt5_build/ubuntu-14.04.2-minimal-armhf-2015-06-09/usr/include/arm-linux-gnueabi -o sqlite2.o sqlite2.cpp
    sqlite2.cpp:42:20: fatal error: sqlite.h: No such file or directory
    compilation terminated.
    Makefile:199: recipe for target 'sqlite2.o' failed
    make: *** [sqlite2.o] Error 1
    SQLite2 disabled.
    TDS auto-detection... ()
    /home/closx/Qt5_build/fsl-linaro-toolchain/bin/arm-fsl-linux-gnueabi-g++ -c -pipe -mfloat-abi=softfp -O2 -O2 -march=armv7-a -mfpu=neon -DLINUX=1 -DEGL_API_FB=1 -Wall -W -fPIE  -I../../../mkspecs/devices/linux-imx6-g++ -I. -I/home/closx/Qt5_build/ubuntu-14.04.2-minimal-armhf-2015-06-09/usr/include -I/home/closx/Qt5_build/ubuntu-14.04.2-minimal-armhf-2015-06-09/usr/include/arm-linux-gnueabi -o tds.o tds.cpp
    tds.cpp:42:22: fatal error: sybfront.h: No such file or directory
    compilation terminated.
    Makefile:199: recipe for target 'tds.o' failed
    make: *** [tds.o] Error 1
    TDS disabled.
    POSIX iconv auto-detection... ()
    /home/closx/Qt5_build/fsl-linaro-toolchain/bin/arm-fsl-linux-gnueabi-g++ -c -pipe -mfloat-abi=softfp -O2 -O2 -march=armv7-a -mfpu=neon -DLINUX=1 -DEGL_API_FB=1 -Wall -W -fPIE  -I../../../mkspecs/devices/linux-imx6-g++ -I. -I/home/closx/Qt5_build/ubuntu-14.04.2-minimal-armhf-2015-06-09/usr/include -I/home/closx/Qt5_build/ubuntu-14.04.2-minimal-armhf-2015-06-09/usr/include/arm-linux-gnueabi -o iconv.o iconv.cpp
    /home/closx/Qt5_build/fsl-linaro-toolchain/bin/arm-fsl-linux-gnueabi-g++ -Wl,-rpath-link,/home/closx/Qt5_build/ubuntu-14.04.2-minimal-armhf-2015-06-09/usr/lib -Wl,-rpath-link,/home/closx/Qt5_build/ubuntu-14.04.2-minimal-armhf-2015-06-09/usr/lib/arm-linux-gnueabi -Wl,-O1 -o iconv iconv.o   -L/home/closx/Qt5_build/ubuntu-14.04.2-minimal-armhf-2015-06-09/usr/lib 
    POSIX iconv enabled.
    D-Bus auto-detection... ()
    /home/closx/Qt5_build/fsl-linaro-toolchain/bin/arm-fsl-linux-gnueabi-g++ -c -pipe -mfloat-abi=softfp -O2 -O2 -march=armv7-a -mfpu=neon -DLINUX=1 -DEGL_API_FB=1 -Wall -W -fPIE  -I../../../mkspecs/devices/linux-imx6-g++ -I. -I/home/closx/Qt5_build/ubuntu-14.04.2-minimal-armhf-2015-06-09/usr/include -I/home/closx/Qt5_build/ubuntu-14.04.2-minimal-armhf-2015-06-09/usr/include/arm-linux-gnueabi -o dbus.o dbus.cpp
    dbus.cpp:43:23: fatal error: dbus/dbus.h: No such file or directory
    compilation terminated.
    Makefile:199: recipe for target 'dbus.o' failed
    make: *** [dbus.o] Error 1
    D-Bus disabled.
    Glib auto-detection... ()
    /home/closx/Qt5_build/fsl-linaro-toolchain/bin/arm-fsl-linux-gnueabi-g++ -c -pipe -mfloat-abi=softfp -O2 -O2 -march=armv7-a -mfpu=neon -DLINUX=1 -DEGL_API_FB=1 -Wall -W -fPIE  -I../../../mkspecs/devices/linux-imx6-g++ -I. -I/home/closx/Qt5_build/ubuntu-14.04.2-minimal-armhf-2015-06-09/usr/include -I/home/closx/Qt5_build/ubuntu-14.04.2-minimal-armhf-2015-06-09/usr/include/arm-linux-gnueabi -o glib.o glib.cpp
    glib.cpp:44:18: fatal error: glib.h: No such file or directory
    compilation terminated.
    Makefile:199: recipe for target 'glib.o' failed
    make: *** [glib.o] Error 1
    Glib disabled.
    ICU auto-detection... ()
    /home/closx/Qt5_build/fsl-linaro-toolchain/bin/arm-fsl-linux-gnueabi-g++ -c -pipe -mfloat-abi=softfp -O2 -O2 -march=armv7-a -mfpu=neon -DLINUX=1 -DEGL_API_FB=1 -Wall -W -fPIE  -I../../../mkspecs/devices/linux-imx6-g++ -I. -I/home/closx/Qt5_build/ubuntu-14.04.2-minimal-armhf-2015-06-09/usr/include -I/home/closx/Qt5_build/ubuntu-14.04.2-minimal-armhf-2015-06-09/usr/include/arm-linux-gnueabi -o icu.o icu.cpp
    icu.cpp:42:28: fatal error: unicode/utypes.h: No such file or directory
    compilation terminated.
    Makefile:199: recipe for target 'icu.o' failed
    make: *** [icu.o] Error 1
    ICU disabled.
    PulseAudio auto-detection... ()
    /home/closx/Qt5_build/fsl-linaro-toolchain/bin/arm-fsl-linux-gnueabi-g++ -c -pipe -mfloat-abi=softfp -O2 -O2 -march=armv7-a -mfpu=neon -DLINUX=1 -DEGL_API_FB=1 -Wall -W -fPIE  -I../../../mkspecs/devices/linux-imx6-g++ -I. -I/home/closx/Qt5_build/ubuntu-14.04.2-minimal-armhf-2015-06-09/usr/include -I/home/closx/Qt5_build/ubuntu-14.04.2-minimal-armhf-2015-06-09/usr/include/arm-linux-gnueabi -o pulseaudio.o pulseaudio.cpp
    pulseaudio.cpp:42:30: fatal error: pulse/pulseaudio.h: No such file or directory
    compilation terminated.
    Makefile:199: recipe for target 'pulseaudio.o' failed
    make: *** [pulseaudio.o] Error 1
    PulseAudio disabled.
    OpenGL ES 2.x auto-detection... ()
    /home/closx/Qt5_build/fsl-linaro-toolchain/bin/arm-fsl-linux-gnueabi-g++ -c -pipe -mfloat-abi=softfp -O2 -O2 -march=armv7-a -mfpu=neon -DLINUX=1 -DEGL_API_FB=1 -Wall -W -fPIE  -I../../../mkspecs/devices/linux-imx6-g++ -I. -I/home/closx/Qt5_build/ubuntu-14.04.2-minimal-armhf-2015-06-09/usr/include -I/home/closx/Qt5_build/ubuntu-14.04.2-minimal-armhf-2015-06-09/usr/include/arm-linux-gnueabi -o opengles2.o opengles2.cpp
    opengles2.cpp:45:25: fatal error: GLES2/gl2.h: No such file or directory
    compilation terminated.
    Makefile:199: recipe for target 'opengles2.o' failed
    make: *** [opengles2.o] Error 1
    OpenGL ES 2.x disabled.
    The OpenGL ES 2.0 functionality test 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
     /home/closx/Qt5_build/qt5/qtbase/mkspecs/devices/linux-imx6-g++.
    

    Please help me guys, I am being busy with building for 3 WEEKS :C


  • Lifetime Qt Champion

    Hi @closx,

    which version of Qt5 is that? I'm asking, as your compiler is already a bit outdated, so you will most likely encounter problems with Qt versions >= 5.5.

    Regards



  • Hello,
    Got the QT from https://github.com/Distrotech/qt-5 as shown in instructions.
    with QT 5.12, with the same configuration options, it gives the following error,

    ERROR: Cannot compile a minimal program. The toolchain or QMakeSpec is broken.
    

Log in to reply