Unable to build Qt 5.5.1 sources



  • Dear fellow coders, I tried to compile a lower version of Qt sources, i.e. Qt 5.5.1 as I can disable c++11 as a parameter in my configuration file, hoping to resolve any previous hidden issues but still met with errors:

    I did the following steps:

    1. made a new folder with the new device specs and place it in /qtbase/mkspecs/devices/linux-arm-hi3536-g++
    2. appended the qmake.conf file with the following parameters:

    QMAKE_INCDIR += /opt/hisi-linux/x86-arm/arm-hisiv400-linux/lib/gcc/arm-hisiv400-linux-gnueabi/4.8.3/include
    QMAKE_LIBDIR += /opt/hisi-linux/x86-arm/arm-hisiv400-linux/lib/gcc/arm-hisiv400-linux-gnueabi/4.8.3
    HISILICON_CFLAGS += -march=armv7-a -mcpu=cortex-a9
    QMAKE_CFLAGS += $$HILICON_FLAGS
    QMAKE_CXXFLAGS += $$HILICON_FLAGS

    1. created a build.sh script that contains my ./configure parameters for ease of execution, with the following -<parameters>
      #!/bin/bash
      ./configure -confirm-license -release -eglfs -no-qml-debug -no-c++11 -no-directfb -no-kms -no-xcb -no-alsa -no-audio-backend -qt-zlib -qt-libjpeg -qt-libpng -no-icu -no-nis -make libs -make examples -optimized-qmake -v -static -device linux-arm-hi3536-g++ -device-option CROSS_COMPILE=/opt/hisi-linux/x86-arm/arm-hisiv400-linux/bin/arm-hisiv400-linux-gnueabi- -sysroot /home/aa/Hi3536_SDK_V2.0.4.0/package/osdrv_single/rootfs_glibc_single -prefix /home/aa/Hi3536_SDK_V2.0.4.0/v1_QtEmbedded_5.5.1

    2. The Qt 5.5.1 built was unsuccessful, with the following errors:
      I'm thinking if the cause could be due to my sysroot or compiler issues? Can anyone determine from the errors below what could be the root / source problem?

    Precompiled-headers support enabled.
    /opt/hisi-linux/x86-arm/arm-hisiv400-linux/bin/arm-hisiv400-linux-gnueabi-g++ -c -fvisibility=hidden fvisibility.c
    Symbol visibility control enabled.
    collect2: fatal error: cannot find 'ld'
    compilation terminated.
    /opt/hisi-linux/x86-arm/arm-hisiv400-linux/bin/arm-hisiv400-linux-gnueabi-g++ --sysroot=/home/aa/Hi3536_SDK_V2.0.4.0/package/osdrv_single/rootfs_glibc_single -o libtest.so -shared -Wl,-Bsymbolic-functions -fPIC bsymbolic_functions.c
    bsymbolic_functions.c:2:2: 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)."
    ^
    Symbolic function binding disabled.
    DEFAULT_INCDIRS="/opt/hisi-linux/x86-arm/arm-hisiv400-linux/arm-hisiv400-linux-gnueabi/include/c++/4.8.3
    /opt/hisi-linux/x86-arm/arm-hisiv400-linux/arm-hisiv400-linux-gnueabi/include/c++/4.8.3/arm-hisiv400-linux-gnueabi
    /opt/hisi-linux/x86-arm/arm-hisiv400-linux/arm-hisiv400-linux-gnueabi/include/c++/4.8.3/backward
    /opt/hisi-linux/x86-arm/arm-hisiv400-linux/lib/gcc/arm-hisiv400-linux-gnueabi/4.8.3/include
    /opt/hisi-linux/x86-arm/arm-hisiv400-linux/lib/gcc/arm-hisiv400-linux-gnueabi/4.8.3/include-fixed
    /opt/hisi-linux/x86-arm/arm-hisiv400-linux/arm-hisiv400-linux-gnueabi/include
    "
    DEFAULT_LIBDIRS="/opt/hisi-linux/x86-arm/arm-hisiv400-linux/lib/gcc/arm-hisiv400-linux-gnueabi/4.8.3
    /opt/hisi-linux/x86-arm/arm-hisiv400-linux/lib/gcc
    /opt/hisi-linux/x86-arm/arm-hisiv400-linux/arm-hisiv400-linux-gnueabi/lib
    /home/aa/Hi3536_SDK_V2.0.4.0/package/osdrv_single/rootfs_glibc_single/lib
    /home/aa/Hi3536_SDK_V2.0.4.0/package/osdrv_single/rootfs_glibc_single/usr/lib
    "
    Creating qmake...
    make: Nothing to be done for 'first'.
    Running configuration tests...
    Found pkg-config from $PATH: /usr/bin/pkg-config
    Warning: Disabling pkg-config since PKG_CONFIG_LIBDIR is not set.
    Note: PKG_CONFIG_SYSROOT_DIR automatically set to /home/aa/Hi3536_SDK_V2.0.4.0/package/osdrv_single/rootfs_glibc_single
    Determining architecture... ()
    /opt/hisi-linux/x86-arm/arm-hisiv400-linux/bin/arm-hisiv400-linux-gnueabi-g++ -c -pipe -mfloat-abi=hard --sysroot=/home/aa/Hi3536_SDK_V2.0.4.0/package/osdrv_single/rootfs_glibc_single -g -Wall -W -fPIC -I. -I/opt/hisi-linux/x86-arm/arm-hisiv400-linux/lib/gcc/arm-hisiv400-linux-gnueabi/4.8.3/include -I/usr/include -I../../mkspecs/devices/linux-arm-hi3536-g++ -o arch.o arch.cpp
    In file included from /usr/include/stdio.h:27:0,
    from arch.cpp:37:
    /usr/include/features.h:367:25: fatal error: sys/cdefs.h: No such file or directory

    include <sys/cdefs.h>

                         ^
    

    compilation terminated.
    Makefile:221: recipe for target 'arch.o' failed
    make: *** [arch.o] Error 1
    Unable to determine architecture!

    Could not determine the target architecture!
    Turn on verbose messaging (-v) to see the final report.
    Determining architecture... ()
    g++ -c -pipe -g -Wall -W -fPIC -I. -I../../mkspecs/linux-g++ -o arch.o arch.cpp
    g++ -o arch arch.o
    Found architecture in binary
    CFG_HOST_ARCH="x86_64"
    CFG_HOST_CPUFEATURES=" mmx sse sse2"
    System architecture: 'unknown'
    Host architecture: 'x86_64'
    sse2 auto-detection... ()
    /opt/hisi-linux/x86-arm/arm-hisiv400-linux/bin/arm-hisiv400-linux-gnueabi-g++ -c -pipe -mfloat-abi=hard --sysroot=/home/aa/Hi3536_SDK_V2.0.4.0/package/osdrv_single/rootfs_glibc_single -msse2 -g -Wall -W -fPIC -I. -I/opt/hisi-linux/x86-arm/arm-hisiv400-linux/lib/gcc/arm-hisiv400-linux-gnueabi/4.8.3/include -I/usr/include -I../../../mkspecs/devices/linux-arm-hi3536-g++ -o sse2.o sse2.cpp
    arm-hisiv400-linux-gnueabi-g++: error: unrecognized command line option ‘-msse2’
    Makefile:206: recipe for target 'sse2.o' failed
    make: *** [sse2.o] Error 1
    sse2 disabled.
    ipc_sysv auto-detection... ()
    /opt/hisi-linux/x86-arm/arm-hisiv400-linux/bin/arm-hisiv400-linux-gnueabi-g++ -c -pipe -mfloat-abi=hard --sysroot=/home/aa/Hi3536_SDK_V2.0.4.0/package/osdrv_single/rootfs_glibc_single -O2 -Wall -W -fPIC -I. -I/opt/hisi-linux/x86-arm/arm-hisiv400-linux/lib/gcc/arm-hisiv400-linux-gnueabi/4.8.3/include -I/usr/include -I../../../mkspecs/devices/linux-arm-hi3536-g++ -o ipc.o ipc.cpp
    ipc.cpp:34:23: fatal error: sys/types.h: No such file or directory
    #include <sys/types.h>
    ^
    compilation terminated.
    Makefile:211: recipe for target 'ipc.o' failed
    make: *** [ipc.o] Error 1
    ipc_sysv disabled.
    ipc_posix auto-detection... ()
    /opt/hisi-linux/x86-arm/arm-hisiv400-linux/bin/arm-hisiv400-linux-gnueabi-g++ -c -pipe -mfloat-abi=hard --sysroot=/home/aa/Hi3536_SDK_V2.0.4.0/package/osdrv_single/rootfs_glibc_single -O2 -Wall -W -fPIC -I. -I/opt/hisi-linux/x86-arm/arm-hisiv400-linux/lib/gcc/arm-hisiv400-linux-gnueabi/4.8.3/include -I/usr/include -I../../../mkspecs/devices/linux-arm-hi3536-g++ -o ipc.o ipc.cpp
    ipc.cpp:34:23: fatal error: sys/types.h: No such file or directory
    #include <sys/types.h>
    ^
    compilation terminated.
    Makefile:212: recipe for target 'ipc.o' failed
    make: *** [ipc.o] Error 1
    ipc_posix disabled.
    mtdev auto-detection... ()
    Project ERROR: mtdev development package not found
    mtdev disabled.
    DB2 auto-detection... ()
    /opt/hisi-linux/x86-arm/arm-hisiv400-linux/bin/arm-hisiv400-linux-gnueabi-g++ -c -pipe -mfloat-abi=hard --sysroot=/home/aa/Hi3536_SDK_V2.0.4.0/package/osdrv_single/rootfs_glibc_single -O2 -Wall -W -fPIC -I. -I/opt/hisi-linux/x86-arm/arm-hisiv400-linux/lib/gcc/arm-hisiv400-linux-gnueabi/4.8.3/include -I/usr/include -I../../../mkspecs/devices/linux-arm-hi3536-g++ -o db2.o db2.cpp
    db2.cpp:34:20: fatal error: sqlcli.h: No such file or directory
    #include <sqlcli.h>
    ^
    compilation terminated.
    Makefile:206: recipe for target 'db2.o' failed
    make: *** [db2.o] Error 1
    DB2 disabled.
    InterBase auto-detection... ()
    /opt/hisi-linux/x86-arm/arm-hisiv400-linux/bin/arm-hisiv400-linux-gnueabi-g++ -c -pipe -mfloat-abi=hard --sysroot=/home/aa/Hi3536_SDK_V2.0.4.0/package/osdrv_single/rootfs_glibc_single -O2 -Wall -W -fPIC -I. -I/opt/hisi-linux/x86-arm/arm-hisiv400-linux/lib/gcc/arm-hisiv400-linux-gnueabi/4.8.3/include -I/usr/include -I../../../mkspecs/devices/linux-arm-hi3536-g++ -o ibase.o ibase.cpp
    ibase.cpp:34:19: fatal error: ibase.h: No such file or directory
    #include <ibase.h>
    ^
    compilation terminated.
    Makefile:206: recipe for target 'ibase.o' failed
    make: *** [ibase.o] Error 1
    InterBase disabled.
    MySQL (thread-safe) auto-detection... ()
    /opt/hisi-linux/x86-arm/arm-hisiv400-linux/bin/arm-hisiv400-linux-gnueabi-g++ -c -pipe -mfloat-abi=hard --sysroot=/home/aa/Hi3536_SDK_V2.0.4.0/package/osdrv_single/rootfs_glibc_single -O2 -Wall -W -fPIC -I. -I/opt/hisi-linux/x86-arm/arm-hisiv400-linux/lib/gcc/arm-hisiv400-linux-gnueabi/4.8.3/include -I/usr/include -I../../../mkspecs/devices/linux-arm-hi3536-g++ -o mysql.o ../mysql/mysql.cpp
    ../mysql/mysql.cpp:34:19: fatal error: mysql.h: No such file or directory
    #include "mysql.h"
    ^
    compilation terminated.
    Makefile:206: recipe for target 'mysql.o' failed
    make: *** [mysql.o] Error 1
    MySQL (thread-safe) disabled.
    MySQL (thread-unsafe) auto-detection... ()
    /opt/hisi-linux/x86-arm/arm-hisiv400-linux/bin/arm-hisiv400-linux-gnueabi-g++ -c -pipe -mfloat-abi=hard --sysroot=/home/aa/Hi3536_SDK_V2.0.4.0/package/osdrv_single/rootfs_glibc_single -O2 -Wall -W -fPIC -I. -I/opt/hisi-linux/x86-arm/arm-hisiv400-linux/lib/gcc/arm-hisiv400-linux-gnueabi/4.8.3/include -I/usr/include -I../../../mkspecs/devices/linux-arm-hi3536-g++ -o mysql.o mysql.cpp
    mysql.cpp:34:19: fatal error: mysql.h: No such file or directory
    #include "mysql.h"
    ^
    compilation terminated.
    Makefile:206: recipe for target 'mysql.o' failed
    make: *** [mysql.o] Error 1
    MySQL (thread-unsafe) disabled.
    OCI auto-detection... ()
    /opt/hisi-linux/x86-arm/arm-hisiv400-linux/bin/arm-hisiv400-linux-gnueabi-g++ -c -pipe -mfloat-abi=hard --sysroot=/home/aa/Hi3536_SDK_V2.0.4.0/package/osdrv_single/rootfs_glibc_single -O2 -Wall -W -fPIC -I. -I/opt/hisi-linux/x86-arm/arm-hisiv400-linux/lib/gcc/arm-hisiv400-linux-gnueabi/4.8.3/include -I/usr/include -I../../../mkspecs/devices/linux-arm-hi3536-g++ -o oci.o oci.cpp
    oci.cpp:34:17: fatal error: oci.h: No such file or directory
    #include <oci.h>
    ^
    compilation terminated.
    Makefile:206: recipe for target 'oci.o' failed
    make: *** [oci.o] Error 1
    OCI disabled.
    ODBC auto-detection... ()
    /opt/hisi-linux/x86-arm/arm-hisiv400-linux/bin/arm-hisiv400-linux-gnueabi-g++ -c -pipe -mfloat-abi=hard --sysroot=/home/aa/Hi3536_SDK_V2.0.4.0/package/osdrv_single/rootfs_glibc_single -O2 -Wall -W -fPIC -I. -I/opt/hisi-linux/x86-arm/arm-hisiv400-linux/lib/gcc/arm-hisiv400-linux-gnueabi/4.8.3/include -I/usr/include -I../../../mkspecs/devices/linux-arm-hi3536-g++ -o odbc.o odbc.cpp
    odbc.cpp:37:17: fatal error: sql.h: No such file or directory
    #include <sql.h>
    ^
    compilation terminated.
    Makefile:206: recipe for target 'odbc.o' failed
    make: *** [odbc.o] Error 1
    ODBC disabled.
    iODBC auto-detection... ()
    /opt/hisi-linux/x86-arm/arm-hisiv400-linux/bin/arm-hisiv400-linux-gnueabi-g++ -c -pipe -mfloat-abi=hard --sysroot=/home/aa/Hi3536_SDK_V2.0.4.0/package/osdrv_single/rootfs_glibc_single -O2 -Wall -W -fPIC -I. -I/opt/hisi-linux/x86-arm/arm-hisiv400-linux/lib/gcc/arm-hisiv400-linux-gnueabi/4.8.3/include -I/usr/include -I../../../mkspecs/devices/linux-arm-hi3536-g++ -o iodbc.o iodbc.cpp
    iodbc.cpp:34:17: fatal error: sql.h: No such file or directory
    #include <sql.h>
    ^
    compilation terminated.
    Makefile:206: recipe for target 'iodbc.o' failed
    make: *** [iodbc.o] Error 1
    iODBC disabled.
    PostgreSQL auto-detection... ()
    /opt/hisi-linux/x86-arm/arm-hisiv400-linux/bin/arm-hisiv400-linux-gnueabi-g++ -c -pipe -mfloat-abi=hard --sysroot=/home/aa/Hi3536_SDK_V2.0.4.0/package/osdrv_single/rootfs_glibc_single -O2 -Wall -W -fPIC -I. -I/opt/hisi-linux/x86-arm/arm-hisiv400-linux/lib/gcc/arm-hisiv400-linux-gnueabi/4.8.3/include -I/usr/include -I../../../mkspecs/devices/linux-arm-hi3536-g++ -o psql.o psql.cpp
    psql.cpp:34:22: fatal error: libpq-fe.h: No such file or directory
    #include "libpq-fe.h"
    ^
    compilation terminated.
    Makefile:206: recipe for target 'psql.o' failed
    make: *** [psql.o] Error 1
    PostgreSQL disabled.
    SQLite2 auto-detection... ()
    /opt/hisi-linux/x86-arm/arm-hisiv400-linux/bin/arm-hisiv400-linux-gnueabi-g++ -c -pipe -mfloat-abi=hard --sysroot=/home/aa/Hi3536_SDK_V2.0.4.0/package/osdrv_single/rootfs_glibc_single -O2 -Wall -W -fPIC -I. -I/opt/hisi-linux/x86-arm/arm-hisiv400-linux/lib/gcc/arm-hisiv400-linux-gnueabi/4.8.3/include -I/usr/include -I../../../mkspecs/devices/linux-arm-hi3536-g++ -o sqlite2.o sqlite2.cpp
    sqlite2.cpp:34:20: fatal error: sqlite.h: No such file or directory
    #include <sqlite.h>
    ^
    compilation terminated.
    Makefile:206: recipe for target 'sqlite2.o' failed
    make: *** [sqlite2.o] Error 1
    SQLite2 disabled.
    TDS auto-detection... ()
    /opt/hisi-linux/x86-arm/arm-hisiv400-linux/bin/arm-hisiv400-linux-gnueabi-g++ -c -pipe -mfloat-abi=hard --sysroot=/home/aa/Hi3536_SDK_V2.0.4.0/package/osdrv_single/rootfs_glibc_single -O2 -Wall -W -fPIC -I. -I/opt/hisi-linux/x86-arm/arm-hisiv400-linux/lib/gcc/arm-hisiv400-linux-gnueabi/4.8.3/include -I/usr/include -I../../../mkspecs/devices/linux-arm-hi3536-g++ -o tds.o tds.cpp
    tds.cpp:34:22: fatal error: sybfront.h: No such file or directory
    #include <sybfront.h>
    ^
    compilation terminated.
    Makefile:206: recipe for target 'tds.o' failed
    make: *** [tds.o] Error 1
    TDS disabled.
    Cups auto-detection... ()
    /opt/hisi-linux/x86-arm/arm-hisiv400-linux/bin/arm-hisiv400-linux-gnueabi-g++ -c -pipe -mfloat-abi=hard --sysroot=/home/aa/Hi3536_SDK_V2.0.4.0/package/osdrv_single/rootfs_glibc_single -O2 -Wall -W -fPIC -I. -I/opt/hisi-linux/x86-arm/arm-hisiv400-linux/lib/gcc/arm-hisiv400-linux-gnueabi/4.8.3/include -I/usr/include -I../../../mkspecs/devices/linux-arm-hi3536-g++ -o cups.o cups.cpp
    cups.cpp:34:23: fatal error: cups/cups.h: No such file or directory
    #include <cups/cups.h>
    ^
    compilation terminated.
    Makefile:206: recipe for target 'cups.o' failed
    make: *** [cups.o] Error 1
    Cups disabled.
    POSIX iconv auto-detection... ()
    /opt/hisi-linux/x86-arm/arm-hisiv400-linux/bin/arm-hisiv400-linux-gnueabi-g++ -c -pipe -mfloat-abi=hard --sysroot=/home/aa/Hi3536_SDK_V2.0.4.0/package/osdrv_single/rootfs_glibc_single -O2 -Wall -W -fPIC -I. -I/opt/hisi-linux/x86-arm/arm-hisiv400-linux/lib/gcc/arm-hisiv400-linux-gnueabi/4.8.3/include -I/usr/include -I../../../mkspecs/devices/linux-arm-hi3536-g++ -o iconv.o iconv.cpp
    In file included from /usr/include/iconv.h:21:0,
    from iconv.cpp:37:
    /usr/include/features.h:367:25: fatal error: sys/cdefs.h: No such file or directory

    include <sys/cdefs.h>

                         ^
    

    compilation terminated.
    Makefile:209: recipe for target 'iconv.o' failed
    make: *** [iconv.o] Error 1
    POSIX iconv disabled.
    SUN libiconv auto-detection... ()
    /opt/hisi-linux/x86-arm/arm-hisiv400-linux/bin/arm-hisiv400-linux-gnueabi-g++ -c -pipe -mfloat-abi=hard --sysroot=/home/aa/Hi3536_SDK_V2.0.4.0/package/osdrv_single/rootfs_glibc_single -O2 -Wall -W -fPIC -I. -I/opt/hisi-linux/x86-arm/arm-hisiv400-linux/lib/gcc/arm-hisiv400-linux-gnueabi/4.8.3/include -I/usr/include -I../../../mkspecs/devices/linux-arm-hi3536-g++ -o gnu-libiconv.o ../gnu-libiconv/gnu-libiconv.cpp
    In file included from /usr/include/iconv.h:21:0,
    from ../gnu-libiconv/gnu-libiconv.cpp:37:
    /usr/include/features.h:367:25: fatal error: sys/cdefs.h: No such file or directory

    include <sys/cdefs.h>

                         ^
    

    compilation terminated.
    Makefile:209: recipe for target 'gnu-libiconv.o' failed
    make: *** [gnu-libiconv.o] Error 1
    SUN libiconv disabled.
    GNU libiconv auto-detection... ()
    /opt/hisi-linux/x86-arm/arm-hisiv400-linux/bin/arm-hisiv400-linux-gnueabi-g++ -c -pipe -mfloat-abi=hard --sysroot=/home/aa/Hi3536_SDK_V2.0.4.0/package/osdrv_single/rootfs_glibc_single -O2 -Wall -W -fPIC -I. -I/opt/hisi-linux/x86-arm/arm-hisiv400-linux/lib/gcc/arm-hisiv400-linux-gnueabi/4.8.3/include -I/usr/include -I../../../mkspecs/devices/linux-arm-hi3536-g++ -o gnu-libiconv.o gnu-libiconv.cpp
    In file included from /usr/include/iconv.h:21:0,
    from gnu-libiconv.cpp:37:
    /usr/include/features.h:367:25: fatal error: sys/cdefs.h: No such file or directory

    include <sys/cdefs.h>

                         ^
    

    compilation terminated.
    Makefile:209: recipe for target 'gnu-libiconv.o' failed
    make: *** [gnu-libiconv.o] Error 1
    GNU libiconv disabled.
    libproxy auto-detection... ()
    /opt/hisi-linux/x86-arm/arm-hisiv400-linux/bin/arm-hisiv400-linux-gnueabi-g++ -c -pipe -mfloat-abi=hard --sysroot=/home/aa/Hi3536_SDK_V2.0.4.0/package/osdrv_single/rootfs_glibc_single -O2 -Wall -W -fPIC -I. -I/opt/hisi-linux/x86-arm/arm-hisiv400-linux/lib/gcc/arm-hisiv400-linux-gnueabi/4.8.3/include -I/usr/include -I../../../mkspecs/devices/linux-arm-hi3536-g++ -o libproxy.o libproxy.cpp
    In file included from /usr/include/stdio.h:27:0,
    from libproxy.cpp:34:
    /usr/include/features.h:367:25: fatal error: sys/cdefs.h: No such file or directory

    include <sys/cdefs.h>

                         ^
    

    compilation terminated.
    Makefile:221: recipe for target 'libproxy.o' failed
    make: *** [libproxy.o] Error 1
    libproxy disabled.
    Glib auto-detection... ()
    /opt/hisi-linux/x86-arm/arm-hisiv400-linux/bin/arm-hisiv400-linux-gnueabi-g++ -c -pipe -mfloat-abi=hard --sysroot=/home/aa/Hi3536_SDK_V2.0.4.0/package/osdrv_single/rootfs_glibc_single -O2 -Wall -W -fPIC -I. -I/opt/hisi-linux/x86-arm/arm-hisiv400-linux/lib/gcc/arm-hisiv400-linux-gnueabi/4.8.3/include -I/usr/include -I../../../mkspecs/devices/linux-arm-hi3536-g++ -o glib.o glib.cpp
    glib.cpp:36:18: fatal error: glib.h: No such file or directory
    #include <glib.h>
    ^
    compilation terminated.
    Makefile:206: recipe for target 'glib.o' failed
    make: *** [glib.o] Error 1
    Glib disabled.
    PulseAudio auto-detection... ()
    /opt/hisi-linux/x86-arm/arm-hisiv400-linux/bin/arm-hisiv400-linux-gnueabi-g++ -c -pipe -mfloat-abi=hard --sysroot=/home/aa/Hi3536_SDK_V2.0.4.0/package/osdrv_single/rootfs_glibc_single -O2 -Wall -W -fPIC -I. -I/opt/hisi-linux/x86-arm/arm-hisiv400-linux/lib/gcc/arm-hisiv400-linux-gnueabi/4.8.3/include -I/usr/include -I../../../mkspecs/devices/linux-arm-hi3536-g++ -o pulseaudio.o pulseaudio.cpp
    pulseaudio.cpp:34:30: fatal error: pulse/pulseaudio.h: No such file or directory
    #include <pulse/pulseaudio.h>
    ^
    compilation terminated.
    Makefile:206: recipe for target 'pulseaudio.o' failed
    make: *** [pulseaudio.o] Error 1
    PulseAudio disabled.
    OpenGL auto-detection... ()
    /opt/hisi-linux/x86-arm/arm-hisiv400-linux/bin/arm-hisiv400-linux-gnueabi-g++ -c -pipe -mfloat-abi=hard --sysroot=/home/aa/Hi3536_SDK_V2.0.4.0/package/osdrv_single/rootfs_glibc_single -O2 -Wall -W -fPIC -I. -I/opt/hisi-linux/x86-arm/arm-hisiv400-linux/lib/gcc/arm-hisiv400-linux-gnueabi/4.8.3/include -I/usr/include -I../../../mkspecs/devices/linux-arm-hi3536-g++ -o opengldesktop.o opengldesktop.cpp
    In file included from /usr/include/inttypes.h:25:0,
    from /usr/include/GL/glext.h:1420,
    from /usr/include/GL/gl.h:2055,
    from opengldesktop.cpp:37:
    /usr/include/features.h:367:25: fatal error: sys/cdefs.h: No such file or directory

    include <sys/cdefs.h>

                         ^
    

    compilation terminated.
    Makefile:214: recipe for target 'opengldesktop.o' failed
    make: *** [opengldesktop.o] Error 1
    OpenGL disabled.
    OpenGL ES 2.0 auto-detection... ()
    /opt/hisi-linux/x86-arm/arm-hisiv400-linux/bin/arm-hisiv400-linux-gnueabi-g++ -c -pipe -mfloat-abi=hard --sysroot=/home/aa/Hi3536_SDK_V2.0.4.0/package/osdrv_single/rootfs_glibc_single -O2 -Wall -W -fPIC -I. -I/home/aa/Hi3536_SDK_V2.0.4.0/package/osdrv_single/rootfs_glibc_single/egl/include -I/opt/hisi-linux/x86-arm/arm-hisiv400-linux/lib/gcc/arm-hisiv400-linux-gnueabi/4.8.3/include -I/usr/include -I../../../mkspecs/devices/linux-arm-hi3536-g++ -o opengles2.o opengles2.cpp
    opengles2.cpp:37:25: fatal error: GLES2/gl2.h: No such file or directory
    #include <GLES2/gl2.h>
    ^
    compilation terminated.
    Makefile:206: recipe for target 'opengles2.o' failed
    make: *** [opengles2.o] Error 1
    OpenGL ES 2.0 disabled.
    FontConfig auto-detection... ()
    /opt/hisi-linux/x86-arm/arm-hisiv400-linux/bin/arm-hisiv400-linux-gnueabi-g++ -c -pipe -mfloat-abi=hard --sysroot=/home/aa/Hi3536_SDK_V2.0.4.0/package/osdrv_single/rootfs_glibc_single -O2 -Wall -W -fPIC -I. -I/opt/hisi-linux/x86-arm/arm-hisiv400-linux/lib/gcc/arm-hisiv400-linux-gnueabi/4.8.3/include -I/usr/include -I../../../mkspecs/devices/linux-arm-hi3536-g++ -o fontconfig.o fontconfig.cpp
    fontconfig.cpp:34:22: fatal error: ft2build.h: No such file or directory
    #include <ft2build.h>
    ^
    compilation terminated.
    Makefile:209: recipe for target 'fontconfig.o' failed
    make: *** [fontconfig.o] Error 1
    FontConfig disabled.
    libudev auto-detection... ()
    /opt/hisi-linux/x86-arm/arm-hisiv400-linux/bin/arm-hisiv400-linux-gnueabi-g++ -c -pipe -mfloat-abi=hard --sysroot=/home/aa/Hi3536_SDK_V2.0.4.0/package/osdrv_single/rootfs_glibc_single -O2 -Wall -W -fPIC -I. -I/opt/hisi-linux/x86-arm/arm-hisiv400-linux/lib/gcc/arm-hisiv400-linux-gnueabi/4.8.3/include -I/usr/include -I../../../mkspecs/devices/linux-arm-hi3536-g++ -o libudev.o libudev.cpp
    libudev.cpp:34:21: fatal error: libudev.h: No such file or directory
    #include <libudev.h>
    ^
    compilation terminated.
    Makefile:206: recipe for target 'libudev.o' failed
    make: *** [libudev.o] Error 1
    libudev disabled.
    evdev auto-detection... ()
    /opt/hisi-linux/x86-arm/arm-hisiv400-linux/bin/arm-hisiv400-linux-gnueabi-g++ -c -pipe -mfloat-abi=hard --sysroot=/home/aa/Hi3536_SDK_V2.0.4.0/package/osdrv_single/rootfs_glibc_single -O2 -Wall -W -fPIC -I. -I/opt/hisi-linux/x86-arm/arm-hisiv400-linux/lib/gcc/arm-hisiv400-linux-gnueabi/4.8.3/include -I/usr/include -I../../../mkspecs/devices/linux-arm-hi3536-g++ -o evdev.o evdev.cpp
    In file included from evdev.cpp:34:0:
    /usr/include/linux/input.h:12:22: fatal error: sys/time.h: No such file or directory
    #include <sys/time.h>
    ^
    compilation terminated.
    Makefile:211: recipe for target 'evdev.o' failed
    make: *** [evdev.o] Error 1
    evdev disabled.
    tslib auto-detection... ()
    /opt/hisi-linux/x86-arm/arm-hisiv400-linux/bin/arm-hisiv400-linux-gnueabi-g++ -c -pipe -mfloat-abi=hard --sysroot=/home/aa/Hi3536_SDK_V2.0.4.0/package/osdrv_single/rootfs_glibc_single -O2 -Wall -W -fPIC -I. -I/opt/hisi-linux/x86-arm/arm-hisiv400-linux/lib/gcc/arm-hisiv400-linux-gnueabi/4.8.3/include -I/usr/include -I../../../mkspecs/devices/linux-arm-hi3536-g++ -o tslib.o tslib.cpp
    tslib.cpp:34:19: fatal error: tslib.h: No such file or directory
    #include <tslib.h>
    ^
    compilation terminated.
    Makefile:206: recipe for target 'tslib.o' failed
    make: *** [tslib.o] Error 1
    tslib disabled.
    xkbcommon auto-detection... ()
    /opt/hisi-linux/x86-arm/arm-hisiv400-linux/bin/arm-hisiv400-linux-gnueabi-g++ -c -pipe -mfloat-abi=hard --sysroot=/home/aa/Hi3536_SDK_V2.0.4.0/package/osdrv_single/rootfs_glibc_single -O2 -Wall -W -fPIC -I. -I/opt/hisi-linux/x86-arm/arm-hisiv400-linux/lib/gcc/arm-hisiv400-linux-gnueabi/4.8.3/include -I/usr/include -I../../../mkspecs/devices/linux-arm-hi3536-g++ -o xkbcommon.o xkbcommon.cpp
    xkbcommon.cpp:34:33: fatal error: xkbcommon/xkbcommon.h: No such file or directory
    #include <xkbcommon/xkbcommon.h>
    ^
    compilation terminated.
    Makefile:206: recipe for target 'xkbcommon.o' failed
    make: *** [xkbcommon.o] Error 1
    xkbcommon disabled.
    XLib auto-detection... ()
    /opt/hisi-linux/x86-arm/arm-hisiv400-linux/bin/arm-hisiv400-linux-gnueabi-g++ -c -pipe -mfloat-abi=hard --sysroot=/home/aa/Hi3536_SDK_V2.0.4.0/package/osdrv_single/rootfs_glibc_single -O2 -Wall -W -fPIC -I. -I/opt/hisi-linux/x86-arm/arm-hisiv400-linux/lib/gcc/arm-hisiv400-linux-gnueabi/4.8.3/include -I/usr/include -I../../../mkspecs/devices/linux-arm-hi3536-g++ -o xlib.o xlib.cpp
    In file included from xlib.cpp:34:0:
    /usr/include/X11/Xlib.h:38:23: fatal error: sys/types.h: No such file or directory
    #include <sys/types.h>
    ^
    compilation terminated.
    Makefile:227: recipe for target 'xlib.o' failed
    make: *** [xlib.o] Error 1
    XLib disabled.
    Xrender auto-detection... ()
    /opt/hisi-linux/x86-arm/arm-hisiv400-linux/bin/arm-hisiv400-linux-gnueabi-g++ -c -pipe -mfloat-abi=hard --sysroot=/home/aa/Hi3536_SDK_V2.0.4.0/package/osdrv_single/rootfs_glibc_single -O2 -Wall -W -fPIC -I. -I/opt/hisi-linux/x86-arm/arm-hisiv400-linux/lib/gcc/arm-hisiv400-linux-gnueabi/4.8.3/include -I/usr/include -I../../../mkspecs/devices/linux-arm-hi3536-g++ -o xrender.o xrender.cpp
    In file included from xrender.cpp:34:0:
    /usr/include/X11/Xlib.h:38:23: fatal error: sys/types.h: No such file or directory
    #include <sys/types.h>
    ^
    compilation terminated.
    Makefile:227: recipe for target 'xrender.o' failed
    make: *** [xrender.o] Error 1
    Xrender disabled.
    XInput2 auto-detection... ()
    /opt/hisi-linux/x86-arm/arm-hisiv400-linux/bin/arm-hisiv400-linux-gnueabi-g++ -c -pipe -mfloat-abi=hard --sysroot=/home/aa/Hi3536_SDK_V2.0.4.0/package/osdrv_single/rootfs_glibc_single -O2 -Wall -W -fPIC -I. -I/opt/hisi-linux/x86-arm/arm-hisiv400-linux/lib/gcc/arm-hisiv400-linux-gnueabi/4.8.3/include -I/usr/include -I../../../mkspecs/devices/linux-arm-hi3536-g++ -o xinput2.o xinput2.cpp
    In file included from xinput2.cpp:34:0:
    /usr/include/X11/Xlib.h:38:23: fatal error: sys/types.h: No such file or directory
    #include <sys/types.h>
    ^
    compilation terminated.
    Makefile:228: recipe for target 'xinput2.o' failed
    make: *** [xinput2.o] Error 1
    XInput2 disabled.
    LinuxFB auto-detection... ()
    /opt/hisi-linux/x86-arm/arm-hisiv400-linux/bin/arm-hisiv400-linux-gnueabi-g++ -c -pipe -mfloat-abi=hard --sysroot=/home/aa/Hi3536_SDK_V2.0.4.0/package/osdrv_single/rootfs_glibc_single -O2 -Wall -W -fPIC -I. -I/opt/hisi-linux/x86-arm/arm-hisiv400-linux/lib/gcc/arm-hisiv400-linux-gnueabi/4.8.3/include -I/usr/include -I../../../mkspecs/devices/linux-arm-hi3536-g++ -o linuxfb.o linuxfb.cpp
    In file included from /usr/include/linux/fb.h:4:0,
    from linuxfb.cpp:34:
    /usr/include/linux/types.h:4:23: fatal error: asm/types.h: No such file or directory
    #include <asm/types.h>
    ^
    compilation terminated.
    Makefile:210: recipe for target 'linuxfb.o' failed
    make: *** [linuxfb.o] Error 1
    LinuxFB disabled.
    EGL support was requested but OpenGL support is disabled.
    Either disable EGL support or enable OpenGL support.


  • Moderators

    collect2: fatal error: cannot find 'ld'

    Yes, looks like your toolchain is broken or at least you don't provide all necessary paths to ld and sources (cdefs.h).



  • I see, so most likely it could be my sysroot path is wrong? how about the parameters in configure and qmake.conf? do the parameters look sound?



  • @embdev Hi, have you solved the problem, I came across the same problem. Could you help me? Thanks in advance!



  • @small_bird I've not resolve the error yet, i'm falling back to Qt 5.7 again as I seem to have lesser errors. I suspect got to do with my paths that are incorrect as my toolchain is kind of confusing to me. I tried to find those missing headers in my host Ubuntu PC and from there try to locate the PATHs and append to qmake.conf accordingly



  • @embdev Ok, come on! Hope we can solve the problem soon !


Log in to reply
 

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