Planned maintenance has been done but it did not solve the problem. So work will continue on this and a new time for trying updates will be announced asap.

Qt5.6.3 Build issue with ARM64



  • Hi,

    I'm trying to build qt with arm64 using linaro toolchain aarch64-linux-gnu-gcc (6.3.1) I have created a device in qt-everywhere-opensource-src-5.6.3

    Here is my qmake.conf
    include(../common/linux_device_pre.conf)

    modifications to g++-unix.conf

    QMAKE_CC = $${CROSS_COMPILE}gcc
    QMAKE_CXX = $${CROSS_COMPILE}g++

    BR_COMPILER_CFLAGS ="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os "
    BR_COMPILER_CXXFLAGS ="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os "

    modifications to gcc-base.conf

    QMAKE_CFLAGS += $${BR_COMPILER_CFLAGS}
    QMAKE_CXXFLAGS += $${BR_COMPILER_CXXFLAGS}
    QMAKE_CXXFLAGS_RELEASE += -O3
    CONFIG += nostrip

    QMAKE_LIBS += -lrt -lpthread -ldl
    QMAKE_CFLAGS_ISYSTEM =

    LIBS += -latomic

    QMAKE_INCDIR_EGL = /home/jagan/work/code/mali/qt/usr/include/EGL
    QMAKE_LIBDIR_EGL = /home/jagan/work/code/mali/qt/usr/lib
    QMAKE_INCDIR_OPENGL_ES2 = /home/jagan/work/code/mali/qt/usr/include/GLES2
    QMAKE_LIBDIR_OPENGL_ES2 = /home/jagan/work/code/mali/qt/usr/lib

    QMAKE_LIBS_EGL = -lEGL
    QMAKE_LIBS_OPENGL_ES2 = -lGLESv2 $${QMAKE_LIBS_EGL}

    include(../common/linux_device_post.conf)

    load(qt_config)

    But I'm observing many build issues as below, is there any prerequisite packages do I need to install I'm using ubuntu-18.04

    Build Log:
    ₹ ./configure -opengl es2 -device linux-bpi-m64-g++ -device-option CROSS_COMPILE=/home/jagan/work/tools/gcc-linaro-6.3.1-2017.02-i686_aarch64-linux-gnu/bin/aarch64-linux-gnu- -sysroot /home/jagan/work/code/mali/qt -opensource -confirm-license -optimized-qmake -release -make libs -prefix /home/jagan/work/code/mali/qtt -no-pch -nomake examples -nomake tests -no-xcb -eglfs -v

    • cd qtbase
    • /home/jagan/work/code/mali/qt-everywhere-opensource-src-5.6.3/qtbase/configure -top-level -opengl es2 -device linux-bpi-m64-g++ -device-option CROSS_COMPILE=/home/jagan/work/tools/gcc-linaro-6.3.1-2017.02-i686_aarch64-linux-gnu/bin/aarch64-linux-gnu- -sysroot /home/jagan/work/code/mali/qt -opensource -confirm-license -optimized-qmake -release -make libs -prefix /home/jagan/work/code/mali/qtt -no-pch -nomake examples -nomake tests -no-xcb -eglfs -v

    This is the Qt Open Source Edition.

    You are licensed to use this software under the terms of
    the GNU Lesser General Public License (LGPL) version 2.1.
    You are also licensed to use this software under the terms of
    the GNU Lesser General Public License (LGPL) version 3.

    You have already accepted the terms of the Open Source license.

    Running configuration tests (phase 1)...
    /home/jagan/work/tools/gcc-linaro-6.3.1-2017.02-i686_aarch64-linux-gnu/bin/aarch64-linux-gnu-g++ -c -fvisibility=hidden fvisibility.c
    Symbol visibility control enabled.
    /home/jagan/work/tools/gcc-linaro-6.3.1-2017.02-i686_aarch64-linux-gnu/bin/aarch64-linux-gnu-g++ --sysroot=/home/jagan/work/code/mali/qt -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="/usr/include
    /usr/local/include"
    DEFAULT_LIBDIRS="/lib
    /usr/lib"
    Done running configuration tests.
    Creating qmake...
    make: Nothing to be done for 'first'.
    Running configuration tests (phase 2)...
    Found pkg-config from $PATH: /usr/bin/pkg-config
    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.
    Note: PKG_CONFIG_SYSROOT_DIR automatically set to /home/jagan/work/code/mali/qt
    Determining architecture... ()
    /home/jagan/work/tools/gcc-linaro-6.3.1-2017.02-i686_aarch64-linux-gnu/bin/aarch64-linux-gnu-g++ -c -pipe -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os --sysroot=/home/jagan/work/code/mali/qt -g -Wall -W -fPIC -I. -I../../mkspecs/devices/linux-bpi-m64-g++ -o arch.o arch.cpp
    arch.cpp:37:19: fatal error: stdio.h: No such file or directory
    #include <stdio.h>
    ^
    compilation terminated.
    Makefile:190: 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'
    checking for C++11...
    /home/jagan/work/tools/gcc-linaro-6.3.1-2017.02-i686_aarch64-linux-gnu/bin/aarch64-linux-gnu-g++ -c -pipe -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os --sysroot=/home/jagan/work/code/mali/qt -O2 -O3 -std=gnu++0x -Wall -W -fPIC -I. -I../../../mkspecs/devices/linux-bpi-m64-g++ -o c++11.o c++11.cpp
    In file included from /home/jagan/work/tools/gcc-linaro-6.3.1-2017.02-i686_aarch64-linux-gnu/aarch64-linux-gnu/include/c++/6.3.1/aarch64-linux-gnu/bits/c++config.h:507:0,
    from /home/jagan/work/tools/gcc-linaro-6.3.1-2017.02-i686_aarch64-linux-gnu/aarch64-linux-gnu/include/c++/6.3.1/utility:68,
    from c++11.cpp:40:
    /home/jagan/work/tools/gcc-linaro-6.3.1-2017.02-i686_aarch64-linux-gnu/aarch64-linux-gnu/include/c++/6.3.1/aarch64-linux-gnu/bits/os_defines.h:39:22: fatal error: features.h: No such file or directory
    #include <features.h>
    ^
    compilation terminated.
    Makefile:189: recipe for target 'c++11.o' failed
    make: *** [c++11.o] Error 1
    C++11 disabled.
    checking for default C++ standard edition...
    /home/jagan/work/tools/gcc-linaro-6.3.1-2017.02-i686_aarch64-linux-gnu/bin/aarch64-linux-gnu-g++ -pipe -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os --sysroot=/home/jagan/work/code/mali/qt -O2 -O3 -Wall -W -fPIC -I. -I../../../mkspecs/devices/linux-bpi-m64-g++ -o c++default.ii -E c++default.cpp
    default C++ standard edition enabled.
    checking for 64-bit std::atomic...
    /home/jagan/work/tools/gcc-linaro-6.3.1-2017.02-i686_aarch64-linux-gnu/bin/aarch64-linux-gnu-g++ -c -pipe -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os --sysroot=/home/jagan/work/code/mali/qt -O2 -O3 -std=gnu++0x -Wall -W -fPIC -I. -I../../../mkspecs/devices/linux-bpi-m64-g++ -o atomic64.o atomic64.cpp
    In file included from /home/jagan/work/tools/gcc-linaro-6.3.1-2017.02-i686_aarch64-linux-gnu/aarch64-linux-gnu/include/c++/6.3.1/aarch64-linux-gnu/bits/c++config.h:507:0,
    from /home/jagan/work/tools/gcc-linaro-6.3.1-2017.02-i686_aarch64-linux-gnu/aarch64-linux-gnu/include/c++/6.3.1/bits/atomic_base.h:35,
    from /home/jagan/work/tools/gcc-linaro-6.3.1-2017.02-i686_aarch64-linux-gnu/aarch64-linux-gnu/include/c++/6.3.1/atomic:41,
    from atomic64.cpp:34:
    /home/jagan/work/tools/gcc-linaro-6.3.1-2017.02-i686_aarch64-linux-gnu/aarch64-linux-gnu/include/c++/6.3.1/aarch64-linux-gnu/bits/os_defines.h:39:22: fatal error: features.h: No such file or directory
    #include <features.h>
    ^
    compilation terminated.
    Makefile:189: recipe for target 'atomic64.o' failed
    make: *** [atomic64.o] Error 1
    64-bit std::atomic disabled.
    checking for 64-bit std::atomic in -latomic...
    /home/jagan/work/tools/gcc-linaro-6.3.1-2017.02-i686_aarch64-linux-gnu/bin/aarch64-linux-gnu-g++ -c -pipe -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os --sysroot=/home/jagan/work/code/mali/qt -O2 -O3 -std=gnu++0x -Wall -W -fPIC -I. -I../../../mkspecs/devices/linux-bpi-m64-g++ -o atomic64.o atomic64.cpp
    In file included from /home/jagan/work/tools/gcc-linaro-6.3.1-2017.02-i686_aarch64-linux-gnu/aarch64-linux-gnu/include/c++/6.3.1/aarch64-linux-gnu/bits/c++config.h:507:0,
    from /home/jagan/work/tools/gcc-linaro-6.3.1-2017.02-i686_aarch64-linux-gnu/aarch64-linux-gnu/include/c++/6.3.1/bits/atomic_base.h:35,
    from /home/jagan/work/tools/gcc-linaro-6.3.1-2017.02-i686_aarch64-linux-gnu/aarch64-linux-gnu/include/c++/6.3.1/atomic:41,
    from atomic64.cpp:34:
    /home/jagan/work/tools/gcc-linaro-6.3.1-2017.02-i686_aarch64-linux-gnu/aarch64-linux-gnu/include/c++/6.3.1/aarch64-linux-gnu/bits/os_defines.h:39:22: fatal error: features.h: No such file or directory
    #include <features.h>
    ^
    compilation terminated.
    Makefile:189: recipe for target 'atomic64.o' failed
    make: *** [atomic64.o] Error 1
    64-bit std::atomic in -latomic disabled.
    checking for sse2...
    /home/jagan/work/tools/gcc-linaro-6.3.1-2017.02-i686_aarch64-linux-gnu/bin/aarch64-linux-gnu-g++ -c -pipe -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os --sysroot=/home/jagan/work/code/mali/qt -msse2 -g -Wall -W -fPIC -I. -I../../../mkspecs/devices/linux-bpi-m64-g++ -o sse2.o sse2.cpp
    aarch64-linux-gnu-g++: error: unrecognized command line option ‘-msse2’
    Makefile:189: recipe for target 'sse2.o' failed
    make: *** [sse2.o] Error 1
    sse2 disabled.
    checking for ipc_sysv...
    /home/jagan/work/tools/gcc-linaro-6.3.1-2017.02-i686_aarch64-linux-gnu/bin/aarch64-linux-gnu-g++ -c -pipe -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os --sysroot=/home/jagan/work/code/mali/qt -O2 -O3 -Wall -W -fPIC -I. -I../../../mkspecs/devices/linux-bpi-m64-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:189: recipe for target 'ipc.o' failed
    make: *** [ipc.o] Error 1
    ipc_sysv disabled.
    checking for ipc_posix...
    /home/jagan/work/tools/gcc-linaro-6.3.1-2017.02-i686_aarch64-linux-gnu/bin/aarch64-linux-gnu-g++ -c -pipe -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os --sysroot=/home/jagan/work/code/mali/qt -O2 -O3 -Wall -W -fPIC -I. -I../../../mkspecs/devices/linux-bpi-m64-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:189: recipe for target 'ipc.o' failed
    make: *** [ipc.o] Error 1
    ipc_posix disabled.
    checking for zlib...
    /home/jagan/work/tools/gcc-linaro-6.3.1-2017.02-i686_aarch64-linux-gnu/bin/aarch64-linux-gnu-g++ -c -pipe -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os --sysroot=/home/jagan/work/code/mali/qt -O2 -O3 -Wall -W -fPIC -I. -I../../../mkspecs/devices/linux-bpi-m64-g++ -o zlib.o zlib.cpp
    zlib.cpp:34:18: fatal error: zlib.h: No such file or directory
    #include <zlib.h>
    ^
    compilation terminated.
    Makefile:189: recipe for target 'zlib.o' failed
    make: *** [zlib.o] Error 1
    zlib disabled.
    checking for mtdev...
    Project WARNING: pkg-config disabled, can't check package existence
    Project ERROR: mtdev development package not found
    mtdev disabled.
    checking for libjpeg...
    /home/jagan/work/tools/gcc-linaro-6.3.1-2017.02-i686_aarch64-linux-gnu/bin/aarch64-linux-gnu-g++ -c -pipe -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os --sysroot=/home/jagan/work/code/mali/qt -O2 -O3 -Wall -W -fPIC -I. -I../../../mkspecs/devices/linux-bpi-m64-g++ -o libjpeg.o libjpeg.cpp
    libjpeg.cpp:34:23: fatal error: sys/types.h: No such file or directory
    #include <sys/types.h>
    ^
    compilation terminated.
    Makefile:189: recipe for target 'libjpeg.o' failed
    make: *** [libjpeg.o] Error 1
    libjpeg disabled.
    checking for libpng...
    /home/jagan/work/tools/gcc-linaro-6.3.1-2017.02-i686_aarch64-linux-gnu/bin/aarch64-linux-gnu-g++ -c -pipe -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os --sysroot=/home/jagan/work/code/mali/qt -O2 -O3 -Wall -W -fPIC -I. -I../../../mkspecs/devices/linux-bpi-m64-g++ -o libpng.o libpng.cpp
    libpng.cpp:34:17: fatal error: png.h: No such file or directory
    #include <png.h>
    ^
    compilation terminated.
    Makefile:189: recipe for target 'libpng.o' failed
    make: *** [libpng.o] Error 1
    libpng disabled.
    checking for dlopen...
    /home/jagan/work/tools/gcc-linaro-6.3.1-2017.02-i686_aarch64-linux-gnu/bin/aarch64-linux-gnu-g++ -c -pipe -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os --sysroot=/home/jagan/work/code/mali/qt -O2 -O3 -Wall -W -fPIC -I. -I../../../mkspecs/devices/linux-bpi-m64-g++ -o dlopen.o dlopen.cpp
    dlopen.cpp:34:19: fatal error: dlfcn.h: No such file or directory
    #include <dlfcn.h>
    ^
    compilation terminated.
    Makefile:189: recipe for target 'dlopen.o' failed
    make: *** [dlopen.o] Error 1
    dlopen disabled.
    checking for libdl...
    /home/jagan/work/tools/gcc-linaro-6.3.1-2017.02-i686_aarch64-linux-gnu/bin/aarch64-linux-gnu-g++ -c -pipe -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os --sysroot=/home/jagan/work/code/mali/qt -O2 -O3 -Wall -W -fPIC -I. -I../../../mkspecs/devices/linux-bpi-m64-g++ -o dlopen.o ../dlopen/dlopen.cpp
    ../dlopen/dlopen.cpp:34:19: fatal error: dlfcn.h: No such file or directory
    #include <dlfcn.h>
    ^
    compilation terminated.
    Makefile:192: recipe for target 'dlopen.o' failed
    make: *** [dlopen.o] Error 1
    libdl disabled.
    checking for DB2...
    /home/jagan/work/tools/gcc-linaro-6.3.1-2017.02-i686_aarch64-linux-gnu/bin/aarch64-linux-gnu-g++ -c -pipe -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os --sysroot=/home/jagan/work/code/mali/qt -O2 -O3 -Wall -W -fPIC -I. -I../../../mkspecs/devices/linux-bpi-m64-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:189: recipe for target 'db2.o' failed
    make: *** [db2.o] Error 1
    DB2 disabled.
    checking for InterBase...
    /home/jagan/work/tools/gcc-linaro-6.3.1-2017.02-i686_aarch64-linux-gnu/bin/aarch64-linux-gnu-g++ -c -pipe -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os --sysroot=/home/jagan/work/code/mali/qt -O2 -O3 -Wall -W -fPIC -I. -I../../../mkspecs/devices/linux-bpi-m64-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:189: recipe for target 'ibase.o' failed
    make: *** [ibase.o] Error 1
    InterBase disabled.
    checking for MySQL (thread-safe)...
    /home/jagan/work/tools/gcc-linaro-6.3.1-2017.02-i686_aarch64-linux-gnu/bin/aarch64-linux-gnu-g++ -c -pipe -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os --sysroot=/home/jagan/work/code/mali/qt -O2 -O3 -Wall -W -fPIC -I. -I../../../mkspecs/devices/linux-bpi-m64-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:189: recipe for target 'mysql.o' failed
    make: *** [mysql.o] Error 1
    MySQL (thread-safe) disabled.
    checking for MySQL (thread-unsafe)...
    /home/jagan/work/tools/gcc-linaro-6.3.1-2017.02-i686_aarch64-linux-gnu/bin/aarch64-linux-gnu-g++ -c -pipe -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os --sysroot=/home/jagan/work/code/mali/qt -O2 -O3 -Wall -W -fPIC -I. -I../../../mkspecs/devices/linux-bpi-m64-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:189: recipe for target 'mysql.o' failed
    make: *** [mysql.o] Error 1
    MySQL (thread-unsafe) disabled.
    checking for OCI...
    /home/jagan/work/tools/gcc-linaro-6.3.1-2017.02-i686_aarch64-linux-gnu/bin/aarch64-linux-gnu-g++ -c -pipe -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os --sysroot=/home/jagan/work/code/mali/qt -O2 -O3 -Wall -W -fPIC -I. -I../../../mkspecs/devices/linux-bpi-m64-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:189: recipe for target 'oci.o' failed
    make: *** [oci.o] Error 1
    OCI disabled.
    checking for ODBC...
    /home/jagan/work/tools/gcc-linaro-6.3.1-2017.02-i686_aarch64-linux-gnu/bin/aarch64-linux-gnu-g++ -c -pipe -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os --sysroot=/home/jagan/work/code/mali/qt -O2 -O3 -Wall -W -fPIC -I. -I../../../mkspecs/devices/linux-bpi-m64-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:189: recipe for target 'odbc.o' failed
    make: *** [odbc.o] Error 1
    ODBC disabled.
    checking for iODBC...
    /home/jagan/work/tools/gcc-linaro-6.3.1-2017.02-i686_aarch64-linux-gnu/bin/aarch64-linux-gnu-g++ -c -pipe -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os --sysroot=/home/jagan/work/code/mali/qt -O2 -O3 -Wall -W -fPIC -I. -I../../../mkspecs/devices/linux-bpi-m64-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:189: recipe for target 'iodbc.o' failed
    make: *** [iodbc.o] Error 1
    iODBC disabled.
    checking for PostgreSQL...
    /home/jagan/work/tools/gcc-linaro-6.3.1-2017.02-i686_aarch64-linux-gnu/bin/aarch64-linux-gnu-g++ -c -pipe -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os --sysroot=/home/jagan/work/code/mali/qt -O2 -O3 -Wall -W -fPIC -I. -I../../../mkspecs/devices/linux-bpi-m64-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:189: recipe for target 'psql.o' failed
    make: *** [psql.o] Error 1
    PostgreSQL disabled.
    checking for SQLite2...
    /home/jagan/work/tools/gcc-linaro-6.3.1-2017.02-i686_aarch64-linux-gnu/bin/aarch64-linux-gnu-g++ -c -pipe -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os --sysroot=/home/jagan/work/code/mali/qt -O2 -O3 -Wall -W -fPIC -I. -I../../../mkspecs/devices/linux-bpi-m64-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:189: recipe for target 'sqlite2.o' failed
    make: *** [sqlite2.o] Error 1
    SQLite2 disabled.
    checking for TDS...
    /home/jagan/work/tools/gcc-linaro-6.3.1-2017.02-i686_aarch64-linux-gnu/bin/aarch64-linux-gnu-g++ -c -pipe -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os --sysroot=/home/jagan/work/code/mali/qt -O2 -O3 -Wall -W -fPIC -I. -I../../../mkspecs/devices/linux-bpi-m64-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:189: recipe for target 'tds.o' failed
    make: *** [tds.o] Error 1
    TDS disabled.
    checking for Cups...
    /home/jagan/work/tools/gcc-linaro-6.3.1-2017.02-i686_aarch64-linux-gnu/bin/aarch64-linux-gnu-g++ -c -pipe -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os --sysroot=/home/jagan/work/code/mali/qt -O2 -O3 -Wall -W -fPIC -I. -I../../../mkspecs/devices/linux-bpi-m64-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:189: recipe for target 'cups.o' failed
    make: *** [cups.o] Error 1
    Cups disabled.
    checking for POSIX iconv...
    /home/jagan/work/tools/gcc-linaro-6.3.1-2017.02-i686_aarch64-linux-gnu/bin/aarch64-linux-gnu-g++ -c -pipe -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os --sysroot=/home/jagan/work/code/mali/qt -O2 -O3 -Wall -W -fPIC -I. -I../../../mkspecs/devices/linux-bpi-m64-g++ -o iconv.o iconv.cpp
    iconv.cpp:37:19: fatal error: iconv.h: No such file or directory
    #include <iconv.h>
    ^
    compilation terminated.
    Makefile:189: recipe for target 'iconv.o' failed
    make: *** [iconv.o] Error 1
    POSIX iconv disabled.
    checking for SUN libiconv...
    /home/jagan/work/tools/gcc-linaro-6.3.1-2017.02-i686_aarch64-linux-gnu/bin/aarch64-linux-gnu-g++ -c -pipe -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os --sysroot=/home/jagan/work/code/mali/qt -O2 -O3 -Wall -W -fPIC -I. -I../../../mkspecs/devices/linux-bpi-m64-g++ -o gnu-libiconv.o ../gnu-libiconv/gnu-libiconv.cpp
    ../gnu-libiconv/gnu-libiconv.cpp:37:19: fatal error: iconv.h: No such file or directory
    #include <iconv.h>
    ^
    compilation terminated.
    Makefile:189: recipe for target 'gnu-libiconv.o' failed
    make: *** [gnu-libiconv.o] Error 1
    SUN libiconv disabled.
    checking for GNU libiconv...
    /home/jagan/work/tools/gcc-linaro-6.3.1-2017.02-i686_aarch64-linux-gnu/bin/aarch64-linux-gnu-g++ -c -pipe -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os --sysroot=/home/jagan/work/code/mali/qt -O2 -O3 -Wall -W -fPIC -I. -I../../../mkspecs/devices/linux-bpi-m64-g++ -o gnu-libiconv.o gnu-libiconv.cpp
    gnu-libiconv.cpp:37:19: fatal error: iconv.h: No such file or directory
    #include <iconv.h>
    ^
    compilation terminated.
    Makefile:189: recipe for target 'gnu-libiconv.o' failed
    make: *** [gnu-libiconv.o] Error 1
    GNU libiconv disabled.
    checking for D-Bus...
    /home/jagan/work/tools/gcc-linaro-6.3.1-2017.02-i686_aarch64-linux-gnu/bin/aarch64-linux-gnu-g++ -c -pipe -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os --sysroot=/home/jagan/work/code/mali/qt -O2 -O3 -Wall -W -fPIC -I. -I../../../mkspecs/devices/linux-bpi-m64-g++ -o dbus.o dbus.cpp
    dbus.cpp:35:23: fatal error: dbus/dbus.h: No such file or directory
    #include <dbus/dbus.h>
    ^
    compilation terminated.
    Makefile:189: recipe for target 'dbus.o' failed
    make: *** [dbus.o] Error 1
    D-Bus disabled.
    checking for libproxy...
    /home/jagan/work/tools/gcc-linaro-6.3.1-2017.02-i686_aarch64-linux-gnu/bin/aarch64-linux-gnu-g++ -c -pipe -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os --sysroot=/home/jagan/work/code/mali/qt -O2 -O3 -Wall -W -fPIC -I. -I../../../mkspecs/devices/linux-bpi-m64-g++ -o libproxy.o libproxy.cpp
    libproxy.cpp:34:19: fatal error: stdio.h: No such file or directory
    #include <stdio.h>
    ^
    compilation terminated.
    Makefile:189: recipe for target 'libproxy.o' failed
    make: *** [libproxy.o] Error 1
    libproxy disabled.
    checking for Glib...
    /home/jagan/work/tools/gcc-linaro-6.3.1-2017.02-i686_aarch64-linux-gnu/bin/aarch64-linux-gnu-g++ -c -pipe -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os --sysroot=/home/jagan/work/code/mali/qt -O2 -O3 -Wall -W -fPIC -I. -I../../../mkspecs/devices/linux-bpi-m64-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:189: recipe for target 'glib.o' failed
    make: *** [glib.o] Error 1
    Glib disabled.
    checking for ICU...
    /home/jagan/work/tools/gcc-linaro-6.3.1-2017.02-i686_aarch64-linux-gnu/bin/aarch64-linux-gnu-g++ -c -pipe -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os --sysroot=/home/jagan/work/code/mali/qt -O2 -O3 -Wall -W -fPIC -I. -I../../../mkspecs/devices/linux-bpi-m64-g++ -o icu.o icu.cpp
    icu.cpp:34:28: fatal error: unicode/utypes.h: No such file or directory
    #include <unicode/utypes.h>
    ^
    compilation terminated.
    Makefile:192: recipe for target 'icu.o' failed
    make: *** [icu.o] Error 1
    ICU disabled.
    checking for PulseAudio...
    /home/jagan/work/tools/gcc-linaro-6.3.1-2017.02-i686_aarch64-linux-gnu/bin/aarch64-linux-gnu-g++ -c -pipe -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os --sysroot=/home/jagan/work/code/mali/qt -O2 -O3 -Wall -W -fPIC -I. -I../../../mkspecs/devices/linux-bpi-m64-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:189: recipe for target 'pulseaudio.o' failed
    make: *** [pulseaudio.o] Error 1
    PulseAudio disabled.
    checking for OpenGL ES 2.0...
    /home/jagan/work/tools/gcc-linaro-6.3.1-2017.02-i686_aarch64-linux-gnu/bin/aarch64-linux-gnu-g++ -c -pipe -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os --sysroot=/home/jagan/work/code/mali/qt -O2 -O3 -Wall -W -fPIC -I. -I/home/jagan/work/code/mali/qt/usr/include/GLES2 -I../../../mkspecs/devices/linux-bpi-m64-g++ -o opengles2.o opengles2.cpp
    opengles2.cpp:38:25: fatal error: GLES2/gl2.h: No such file or directory
    #include <GLES2/gl2.h>
    ^
    compilation terminated.
    Makefile:189: recipe for target 'opengles2.o' failed
    make: *** [opengles2.o] Error 1
    OpenGL ES 2.0 disabled.
    The OpenGL ES 2.0 functionality test failed!
    Use of pkg-config is not enabled, maybe you want to pass -pkg-config?
    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/jagan/work/code/mali/qt-everywhere-opensource-src-5.6.3/qtbase/mkspecs/devices/linux-bpi-m64-g++.

    Request for help.



  • fyi: I have installed qt package
    apt-get install qtcreator


  • Lifetime Qt Champion

    Hi and welcome to devnet,

    Those are the tests used to determine which feature of Qt will be built. If any of those interests you, you have to get the arm64 version of it.



  • I'm just looking to build opengl helloworld test, can we build this specifically?


  • Lifetime Qt Champion

    You first have to build the qtbase module with OpenGL support enabled.

    Are you sure your sysroot provides all the dependencies required ?

    What is your target board ?



  • Yes, I'm using custom toolchain with glib enabled. I'm trying for BPI-M64 board. Look like toolchain has an issue, do you have any recommended toolchain for arm64 with this kind of qt build?


  • Lifetime Qt Champion

    AFAIK, the BPI is very close to the Raspberry Pi, you should take a look at this wiki entry.

    By the way, why are you trying to build an outdated version of Qt ? The current LTS is the 5.9 series with 5.12 around the corner.