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

Qt5.4.2 Cross-Compilation on phyBOARD-WEGA-am335x



  • Hi,
    I'm trying to cross compile the last version of Qt but I don't really understand how to do it.
    I read the documentation about the cross compilation but I didn't manage to find the write command to cross compile Qt for my target.
    My target is a phyBOARD-WEGA-am335x based on TI AM335x (ARM Cortex-A8).

    For now, I created a new repository under ~/qt-everywhere-opensource-src-5.4.2/qtbase/mkspecs called "linux-wega". I put in this one two files : qmake.conf and qplatformdefs.h.

    qmake.conf

    #
    # qmake configuration for building with linux-wega
    #
    MAKEFILE_GENERATOR = UNIX
    CONFIG += incremental
    QMAKE_INCREMENTAL_STYLE = sublib

    include(../common/linux.conf)
    include(../common/gcc-base-unix.conf)
    include(../common/g++-unix.conf)

    # modifications to g++.conf
    QMAKE_CC = arm-cortexa8-linux-gnueabihf-gcc
    QMAKE_CXX = arm-cortexa8-linux-gnueabihf-g++
    QMAKE_LINK = arm-cortexa8-linux-gnueabihf-g++
    QMAKE_LINK_SHLIB = arm-cortexa8-linux-gnueabihf-g++

    # modifications to linux.conf
    QMAKE_AR = arm-cortexa8-linux-gnueabihf-ar cqs
    QMAKE_OBJCOPY = arm-cortexa8-linux-gnueabihf-objcopy
    QMAKE_NM = arm-cortexa8-linux-gnueabihf-nm -P
    QMAKE_STRIP = arm-cortexa8-linux-gnueabihf-strip

    load(qt_config)

    qplatformdefs.h

    #include "../../linux-g++/qplatformdefs.h"

    For the moment, my command is :
    ./configure
    -xplatform linux-wega
    -arch arm
    -device-option CROSS_COMPILE=/opt/OSELAS.Toolchain-2012.12.1/arm-cortexa8-linux-gnueabihf/gcc-4.7.3-glibc-2.16.0-binutils-2.22-kernel-3.6-sanitized/bin/arm-cortexa8-linux-gnueabihf-
    -opensource
    -confirm-license
    -release
    -prefix ~/qt
    -sysroot /opt/PHYTEC_BSPs/phyBOARD-WEGA-AM335x-PD14.1.0/platform-phyBOARD-WEGA-AM335x/build-host
    -v

    When I try to execute this command, I obtain as a result the following lines :

    arm-cortexa8-linux-gnueabihf-g++ -c -fvisibility=hidden fvisibility.c
    Symbol visibility control enabled.
    arm-cortexa8-linux-gnueabihf-g++.real: error: unrecognized command line option '-fuse-ld=gold'
    arm-cortexa8-linux-gnueabihf-g++ --sysroot=/opt/PHYTEC_BSPs/phyBOARD-WEGA-AM335x-PD14.1.0/platform-phyBOARD-WEGA-AM335x/build-host -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)."
    Symbolic function binding disabled.
    DEFAULT_INCDIRS="/opt/PHYTEC_BSPs/phyBOARD-WEGA-AM335x-PD13.1.0/platform-phyBOARD-WEGA-AM335x/sysroot-target/include
    /opt/PHYTEC_BSPs/phyBOARD-WEGA-AM335x-PD13.1.0/platform-phyBOARD-WEGA-AM335x/sysroot-target/usr/include
    /opt/OSELAS.Toolchain-2012.12.1/arm-cortexa8-linux-gnueabihf/gcc-4.7.3-glibc-2.16.0-binutils-2.22-kernel-3.6-sanitized/arm-cortexa8-linux-gnueabihf/include/c++/4.7.3
    /opt/OSELAS.Toolchain-2012.12.1/arm-cortexa8-linux-gnueabihf/gcc-4.7.3-glibc-2.16.0-binutils-2.22-kernel-3.6-sanitized/arm-cortexa8-linux-gnueabihf/include/c++/4.7.3/arm-cortexa8-linux-gnueabihf
    /opt/OSELAS.Toolchain-2012.12.1/arm-cortexa8-linux-gnueabihf/gcc-4.7.3-glibc-2.16.0-binutils-2.22-kernel-3.6-sanitized/arm-cortexa8-linux-gnueabihf/include/c++/4.7.3/backward
    /opt/OSELAS.Toolchain-2012.12.1/arm-cortexa8-linux-gnueabihf/gcc-4.7.3-glibc-2.16.0-binutils-2.22-kernel-3.6-sanitized/lib/gcc/arm-cortexa8-linux-gnueabihf/4.7.3/include
    /opt/OSELAS.Toolchain-2012.12.1/arm-cortexa8-linux-gnueabihf/gcc-4.7.3-glibc-2.16.0-binutils-2.22-kernel-3.6-sanitized/lib/gcc/arm-cortexa8-linux-gnueabihf/4.7.3/include-fixed
    /opt/OSELAS.Toolchain-2012.12.1/arm-cortexa8-linux-gnueabihf/gcc-4.7.3-glibc-2.16.0-binutils-2.22-kernel-3.6-sanitized/arm-cortexa8-linux-gnueabihf/include
    "
    DEFAULT_LIBDIRS="/opt/OSELAS.Toolchain-2012.12.1/arm-cortexa8-linux-gnueabihf/gcc-4.7.3-glibc-2.16.0-binutils-2.22-kernel-3.6-sanitized/lib/gcc/arm-cortexa8-linux-gnueabihf/4.7.3
    /opt/OSELAS.Toolchain-2012.12.1/arm-cortexa8-linux-gnueabihf/gcc-4.7.3-glibc-2.16.0-binutils-2.22-kernel-3.6-sanitized/arm-cortexa8-linux-gnueabihf/lib
    "
    Creating qmake...
    g++ -c -o qlibraryinfo.o -pipe -ffunction-sections -g  -I/home/antoine/Téléchargements/qt-everywhere-opensource-src-5.4.2/qtbase/qmake -I/home/antoine/Téléchargements/qt-everywhere-opensource-src-5.4.2/qtbase/qmake/library -I/home/antoine/Téléchargements/qt-everywhere-opensource-src-5.4.2/qtbase/qmake/generators -I/home/antoine/Téléchargements/qt-everywhere-opensource-src-5.4.2/qtbase/qmake/generators/unix -I/home/antoine/Téléchargements/qt-everywhere-opensource-src-5.4.2/qtbase/qmake/generators/win32 -I/home/antoine/Téléchargements/qt-everywhere-opensource-src-5.4.2/qtbase/qmake/generators/mac -I/home/antoine/Téléchargements/qt-everywhere-opensource-src-5.4.2/qtbase/qmake/generators/integrity -I/home/antoine/Téléchargements/qt-everywhere-opensource-src-5.4.2/qtbase/include -I/home/antoine/Téléchargements/qt-everywhere-opensource-src-5.4.2/qtbase/include/QtCore -I/home/antoine/Téléchargements/qt-everywhere-opensource-src-5.4.2/qtbase/include/QtCore/5.4.2 -I/home/antoine/Téléchargements/qt-everywhere-opensource-src-5.4.2/qtbase/include/QtCore/5.4.2/QtCore -I/home/antoine/Téléchargements/qt-everywhere-opensource-src-5.4.2/qtbase/src/corelib/global -DHAVE_QCONFIG_CPP -I/home/antoine/Téléchargements/qt-everywhere-opensource-src-5.4.2/qtbase/mkspecs/linux-g++ -I/home/antoine/Téléchargements/qt-everywhere-opensource-src-5.4.2/qtbase/tools/shared -DQT_BUILD_QMAKE -DQT_BOOTSTRAPPED -DPROEVALUATOR_FULL -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_NO_COMPONENT -DQT_NO_COMPRESS -DQT_NO_THREAD -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT -DQT_NO_DATASTREAM -DQT_CRYPTOGRAPHICHASH_ONLY_SHA1 -DQT_JSON_READONLY -DQT_NO_STANDARDPATHS /home/antoine/Téléchargements/qt-everywhere-opensource-src-5.4.2/qtbase/src/corelib/global/qlibraryinfo.cpp
    g++ -o "/home/antoine/Téléchargements/qt-everywhere-opensource-src-5.4.2/qtbase/bin/qmake" project.o option.o property.o main.o ioutils.o proitems.o qmakevfs.o qmakeglobals.o qmakeparser.o qmakeevaluator.o qmakebuiltins.o makefile.o unixmake2.o unixmake.o mingw_make.o winmakefile.o projectgenerator.o meta.o makefiledeps.o metamakefile.o xmloutput.o pbuilder_pbx.o msvc_vcproj.o msvc_vcxproj.o msvc_nmake.o msvc_objectmodel.o msbuild_objectmodel.o gbuild.o cesdkhandler.o qtextcodec.o qutfcodec.o qstring.o qstring_compat.o qstringbuilder.o qtextstream.o qiodevice.o qdebug.o qmalloc.o qglobal.o qarraydata.o qbytearray.o qbytearraymatcher.o qdatastream.o qbuffer.o qlist.o qfiledevice.o qfile.o qfilesystementry.o qfilesystemengine.o qfsfileengine.o qfsfileengine_iterator.o qregexp.o qvector.o qbitarray.o qdir.o qdiriterator.o quuid.o qhash.o qfileinfo.o qdatetime.o qstringlist.o qabstractfileengine.o qtemporaryfile.o qmap.o qmetatype.o qsettings.o qsystemerror.o qlibraryinfo.o qvariant.o qvsnprintf.o qlocale.o qlocale_tools.o qlinkedlist.o qnumeric.o qcryptographichash.o qxmlstream.o qxmlutils.o qlogging.o qjson.o qjsondocument.o qjsonparser.o qjsonarray.o qjsonobject.o qjsonvalue.o qfilesystemengine_unix.o qfilesystemiterator_unix.o qfsfileengine_unix.o qlocale_unix.o  -Wl,--gc-sections
    Running configuration tests...
    Note: PKG_CONFIG_SYSROOT_DIR automatically set to /opt/PHYTEC_BSPs/phyBOARD-WEGA-AM335x-PD14.1.0/platform-phyBOARD-WEGA-AM335x/build-host
    Determining architecture... ()
    arm-cortexa8-linux-gnueabihf-g++ -c -pipe --sysroot=/opt/PHYTEC_BSPs/phyBOARD-WEGA-AM335x-PD14.1.0/platform-phyBOARD-WEGA-AM335x/build-host -g -Wall -W -fPIC  -I. -I../../mkspecs/linux-wega -o arch.o arch.cpp
    arch.cpp:37:19: fatal error: stdio.h: No such file or directory
    compilation terminated.
    make: *** [arch.o] Erreur 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="i386"
    CFG_HOST_CPUFEATURES=""
    System architecture: 'unknown'
    Host architecture: 'i386'
    C++11 auto-detection... ()
    arm-cortexa8-linux-gnueabihf-g++ -c -pipe --sysroot=/opt/PHYTEC_BSPs/phyBOARD-WEGA-AM335x-PD14.1.0/platform-phyBOARD-WEGA-AM335x/build-host -O2 -std=c++0x -Wall -W -fPIC  -I. -I../../../mkspecs/linux-wega -o c++11.o c++11.cpp
    In file included from /opt/OSELAS.Toolchain-2012.12.1/arm-cortexa8-linux-gnueabihf/gcc-4.7.3-glibc-2.16.0-binutils-2.22-kernel-3.6-sanitized/lib/gcc/arm-cortexa8-linux-gnueabihf/4.7.3/../../../../arm-cortexa8-linux-gnueabihf/include/c++/4.7.3/arm-cortexa8-linux-gnueabihf/bits/c++config.h:414:0,
                     from /opt/OSELAS.Toolchain-2012.12.1/arm-cortexa8-linux-gnueabihf/gcc-4.7.3-glibc-2.16.0-binutils-2.22-kernel-3.6-sanitized/lib/gcc/arm-cortexa8-linux-gnueabihf/4.7.3/../../../../arm-cortexa8-linux-gnueabihf/include/c++/4.7.3/utility:70,
                     from c++11.cpp:40:
    /opt/OSELAS.Toolchain-2012.12.1/arm-cortexa8-linux-gnueabihf/gcc-4.7.3-glibc-2.16.0-binutils-2.22-kernel-3.6-sanitized/lib/gcc/arm-cortexa8-linux-gnueabihf/4.7.3/../../../../arm-cortexa8-linux-gnueabihf/include/c++/4.7.3/arm-cortexa8-linux-gnueabihf/bits/os_defines.h:40:22: fatal error: features.h: No such file or directory
    compilation terminated.
    make: *** [c++11.o] Erreur 1
    C++11 disabled.
    floatmath auto-detection... ()
    arm-cortexa8-linux-gnueabihf-g++ -c -pipe --sysroot=/opt/PHYTEC_BSPs/phyBOARD-WEGA-AM335x-PD14.1.0/platform-phyBOARD-WEGA-AM335x/build-host -O2 -Wall -W -fPIC  -I. -I../../../mkspecs/linux-wega -o floatmath.o floatmath.cpp
    floatmath.cpp:34:18: fatal error: math.h: No such file or directory
    compilation terminated.
    make: *** [floatmath.o] Erreur 1
    floatmath disabled.
    sse2 auto-detection... ()
    arm-cortexa8-linux-gnueabihf-g++ -c -pipe --sysroot=/opt/PHYTEC_BSPs/phyBOARD-WEGA-AM335x-PD14.1.0/platform-phyBOARD-WEGA-AM335x/build-host -msse2 -g -Wall -W -fPIC  -I. -I../../../mkspecs/linux-wega -o sse2.o sse2.cpp
    arm-cortexa8-linux-gnueabihf-g++.real: error: unrecognized command line option '-msse2'
    make: *** [sse2.o] Erreur 1
    sse2 disabled.
    zlib auto-detection... ()
    arm-cortexa8-linux-gnueabihf-g++ -c -pipe --sysroot=/opt/PHYTEC_BSPs/phyBOARD-WEGA-AM335x-PD14.1.0/platform-phyBOARD-WEGA-AM335x/build-host -O2 -Wall -W -fPIC  -I. -I../../../mkspecs/linux-wega -o zlib.o zlib.cpp
    In file included from /opt/OSELAS.Toolchain-2012.12.1/arm-cortexa8-linux-gnueabihf/gcc-4.7.3-glibc-2.16.0-binutils-2.22-kernel-3.6-sanitized/lib/gcc/arm-cortexa8-linux-gnueabihf/4.7.3/include-fixed/syslimits.h:7:0,
                     from /opt/OSELAS.Toolchain-2012.12.1/arm-cortexa8-linux-gnueabihf/gcc-4.7.3-glibc-2.16.0-binutils-2.22-kernel-3.6-sanitized/lib/gcc/arm-cortexa8-linux-gnueabihf/4.7.3/include-fixed/limits.h:34,
                     from /opt/PHYTEC_BSPs/phyBOARD-WEGA-AM335x-PD13.1.0/platform-phyBOARD-WEGA-AM335x/sysroot-target/usr/include/zconf.h:394,
                     from /opt/PHYTEC_BSPs/phyBOARD-WEGA-AM335x-PD13.1.0/platform-phyBOARD-WEGA-AM335x/sysroot-target/usr/include/zlib.h:34,
                     from zlib.cpp:34:
    /opt/OSELAS.Toolchain-2012.12.1/arm-cortexa8-linux-gnueabihf/gcc-4.7.3-glibc-2.16.0-binutils-2.22-kernel-3.6-sanitized/lib/gcc/arm-cortexa8-linux-gnueabihf/4.7.3/include-fixed/limits.h:169:61: fatal error: limits.h: No such file or directory
    compilation terminated.
    make: *** [zlib.o] Erreur 1
    zlib disabled.
    mtdev auto-detection... ()
    Project ERROR: mtdev development package not found
    mtdev disabled.
    libjpeg auto-detection... ()
    arm-cortexa8-linux-gnueabihf-g++ -c -pipe --sysroot=/opt/PHYTEC_BSPs/phyBOARD-WEGA-AM335x-PD14.1.0/platform-phyBOARD-WEGA-AM335x/build-host -O2 -Wall -W -fPIC  -I. -I../../../mkspecs/linux-wega -o libjpeg.o libjpeg.cpp
    libjpeg.cpp:34:23: fatal error: sys/types.h: No such file or directory
    compilation terminated.
    make: *** [libjpeg.o] Erreur 1
    libjpeg disabled.
    libpng auto-detection... ()
    arm-cortexa8-linux-gnueabihf-g++ -c -pipe --sysroot=/opt/PHYTEC_BSPs/phyBOARD-WEGA-AM335x-PD14.1.0/platform-phyBOARD-WEGA-AM335x/build-host -O2 -Wall -W -fPIC  -I. -I../../../mkspecs/linux-wega -o libpng.o libpng.cpp
    In file included from /opt/OSELAS.Toolchain-2012.12.1/arm-cortexa8-linux-gnueabihf/gcc-4.7.3-glibc-2.16.0-binutils-2.22-kernel-3.6-sanitized/lib/gcc/arm-cortexa8-linux-gnueabihf/4.7.3/include-fixed/syslimits.h:7:0,
                     from /opt/OSELAS.Toolchain-2012.12.1/arm-cortexa8-linux-gnueabihf/gcc-4.7.3-glibc-2.16.0-binutils-2.22-kernel-3.6-sanitized/lib/gcc/arm-cortexa8-linux-gnueabihf/4.7.3/include-fixed/limits.h:34,
                     from /opt/PHYTEC_BSPs/phyBOARD-WEGA-AM335x-PD13.1.0/platform-phyBOARD-WEGA-AM335x/sysroot-target/usr/include/zconf.h:394,
                     from /opt/PHYTEC_BSPs/phyBOARD-WEGA-AM335x-PD13.1.0/platform-phyBOARD-WEGA-AM335x/sysroot-target/usr/include/zlib.h:34,
                     from /opt/PHYTEC_BSPs/phyBOARD-WEGA-AM335x-PD13.1.0/platform-phyBOARD-WEGA-AM335x/sysroot-target/usr/include/png.h:536,
                     from libpng.cpp:34:
    /opt/OSELAS.Toolchain-2012.12.1/arm-cortexa8-linux-gnueabihf/gcc-4.7.3-glibc-2.16.0-binutils-2.22-kernel-3.6-sanitized/lib/gcc/arm-cortexa8-linux-gnueabihf/4.7.3/include-fixed/limits.h:169:61: fatal error: limits.h: No such file or directory
    compilation terminated.
    make: *** [libpng.o] Erreur 1
    libpng disabled.
    DB2 auto-detection... ()
    arm-cortexa8-linux-gnueabihf-g++ -c -pipe --sysroot=/opt/PHYTEC_BSPs/phyBOARD-WEGA-AM335x-PD14.1.0/platform-phyBOARD-WEGA-AM335x/build-host -O2 -Wall -W -fPIC  -I. -I../../../mkspecs/linux-wega -o db2.o db2.cpp
    db2.cpp:34:20: fatal error: sqlcli.h: No such file or directory
    compilation terminated.
    make: *** [db2.o] Erreur 1
    DB2 disabled.
    InterBase auto-detection... ()
    arm-cortexa8-linux-gnueabihf-g++ -c -pipe --sysroot=/opt/PHYTEC_BSPs/phyBOARD-WEGA-AM335x-PD14.1.0/platform-phyBOARD-WEGA-AM335x/build-host -O2 -Wall -W -fPIC  -I. -I../../../mkspecs/linux-wega -o ibase.o ibase.cpp
    ibase.cpp:34:19: fatal error: ibase.h: No such file or directory
    compilation terminated.
    make: *** [ibase.o] Erreur 1
    InterBase disabled.
    MySQL (thread-safe) auto-detection... ()
    arm-cortexa8-linux-gnueabihf-g++ -c -pipe --sysroot=/opt/PHYTEC_BSPs/phyBOARD-WEGA-AM335x-PD14.1.0/platform-phyBOARD-WEGA-AM335x/build-host -O2 -Wall -W -fPIC  -I. -I../../../mkspecs/linux-wega -o mysql.o ../mysql/mysql.cpp
    ../mysql/mysql.cpp:34:19: fatal error: mysql.h: No such file or directory
    compilation terminated.
    make: *** [mysql.o] Erreur 1
    MySQL (thread-safe) disabled.
    MySQL (thread-unsafe) auto-detection... ()
    arm-cortexa8-linux-gnueabihf-g++ -c -pipe --sysroot=/opt/PHYTEC_BSPs/phyBOARD-WEGA-AM335x-PD14.1.0/platform-phyBOARD-WEGA-AM335x/build-host -O2 -Wall -W -fPIC  -I. -I../../../mkspecs/linux-wega -o mysql.o mysql.cpp
    mysql.cpp:34:19: fatal error: mysql.h: No such file or directory
    compilation terminated.
    make: *** [mysql.o] Erreur 1
    MySQL (thread-unsafe) disabled.
    OCI auto-detection... ()
    arm-cortexa8-linux-gnueabihf-g++ -c -pipe --sysroot=/opt/PHYTEC_BSPs/phyBOARD-WEGA-AM335x-PD14.1.0/platform-phyBOARD-WEGA-AM335x/build-host -O2 -Wall -W -fPIC  -I. -I../../../mkspecs/linux-wega -o oci.o oci.cpp
    oci.cpp:34:17: fatal error: oci.h: No such file or directory
    compilation terminated.
    make: *** [oci.o] Erreur 1
    OCI disabled.
    ODBC auto-detection... ()
    arm-cortexa8-linux-gnueabihf-g++ -c -pipe --sysroot=/opt/PHYTEC_BSPs/phyBOARD-WEGA-AM335x-PD14.1.0/platform-phyBOARD-WEGA-AM335x/build-host -O2 -Wall -W -fPIC  -I. -I../../../mkspecs/linux-wega -o odbc.o odbc.cpp
    odbc.cpp:37:17: fatal error: sql.h: No such file or directory
    compilation terminated.
    make: *** [odbc.o] Erreur 1
    ODBC disabled.
    iODBC auto-detection... ()
    arm-cortexa8-linux-gnueabihf-g++ -c -pipe --sysroot=/opt/PHYTEC_BSPs/phyBOARD-WEGA-AM335x-PD14.1.0/platform-phyBOARD-WEGA-AM335x/build-host -O2 -Wall -W -fPIC  -I. -I../../../mkspecs/linux-wega -o iodbc.o iodbc.cpp
    iodbc.cpp:34:17: fatal error: sql.h: No such file or directory
    compilation terminated.
    make: *** [iodbc.o] Erreur 1
    iODBC disabled.
    PostgreSQL auto-detection... ()
    arm-cortexa8-linux-gnueabihf-g++ -c -pipe --sysroot=/opt/PHYTEC_BSPs/phyBOARD-WEGA-AM335x-PD14.1.0/platform-phyBOARD-WEGA-AM335x/build-host -O2 -Wall -W -fPIC  -I. -I../../../mkspecs/linux-wega -o psql.o psql.cpp
    psql.cpp:34:22: fatal error: libpq-fe.h: No such file or directory
    compilation terminated.
    make: *** [psql.o] Erreur 1
    PostgreSQL disabled.
    SQLite2 auto-detection... ()
    arm-cortexa8-linux-gnueabihf-g++ -c -pipe --sysroot=/opt/PHYTEC_BSPs/phyBOARD-WEGA-AM335x-PD14.1.0/platform-phyBOARD-WEGA-AM335x/build-host -O2 -Wall -W -fPIC  -I. -I../../../mkspecs/linux-wega -o sqlite2.o sqlite2.cpp
    sqlite2.cpp:34:20: fatal error: sqlite.h: No such file or directory
    compilation terminated.
    make: *** [sqlite2.o] Erreur 1
    SQLite2 disabled.
    TDS auto-detection... ()
    arm-cortexa8-linux-gnueabihf-g++ -c -pipe --sysroot=/opt/PHYTEC_BSPs/phyBOARD-WEGA-AM335x-PD14.1.0/platform-phyBOARD-WEGA-AM335x/build-host -O2 -Wall -W -fPIC  -I. -I../../../mkspecs/linux-wega -o tds.o tds.cpp
    tds.cpp:34:22: fatal error: sybfront.h: No such file or directory
    compilation terminated.
    make: *** [tds.o] Erreur 1
    TDS disabled.
    NIS auto-detection... ()
    arm-cortexa8-linux-gnueabihf-g++ -c -pipe --sysroot=/opt/PHYTEC_BSPs/phyBOARD-WEGA-AM335x-PD14.1.0/platform-phyBOARD-WEGA-AM335x/build-host -O2 -Wall -W -fPIC  -I. -I../../../mkspecs/linux-wega -o nis.o nis.cpp
    nis.cpp:34:23: fatal error: sys/types.h: No such file or directory
    compilation terminated.
    make: *** [nis.o] Erreur 1
    NIS disabled.
    Cups auto-detection... ()
    arm-cortexa8-linux-gnueabihf-g++ -c -pipe --sysroot=/opt/PHYTEC_BSPs/phyBOARD-WEGA-AM335x-PD14.1.0/platform-phyBOARD-WEGA-AM335x/build-host -O2 -Wall -W -fPIC  -I. -I../../../mkspecs/linux-wega -o cups.o cups.cpp
    cups.cpp:34:23: fatal error: cups/cups.h: No such file or directory
    compilation terminated.
    make: *** [cups.o] Erreur 1
    Cups disabled.
    POSIX iconv auto-detection... ()
    arm-cortexa8-linux-gnueabihf-g++ -c -pipe --sysroot=/opt/PHYTEC_BSPs/phyBOARD-WEGA-AM335x-PD14.1.0/platform-phyBOARD-WEGA-AM335x/build-host -O2 -Wall -W -fPIC  -I. -I../../../mkspecs/linux-wega -o iconv.o iconv.cpp
    iconv.cpp:37:19: fatal error: iconv.h: No such file or directory
    compilation terminated.
    make: *** [iconv.o] Erreur 1
    POSIX iconv disabled.
    SUN libiconv auto-detection... ()
    arm-cortexa8-linux-gnueabihf-g++ -c -pipe --sysroot=/opt/PHYTEC_BSPs/phyBOARD-WEGA-AM335x-PD14.1.0/platform-phyBOARD-WEGA-AM335x/build-host -O2 -Wall -W -fPIC  -I. -I../../../mkspecs/linux-wega -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
    compilation terminated.
    make: *** [gnu-libiconv.o] Erreur 1
    SUN libiconv disabled.
    GNU libiconv auto-detection... ()
    arm-cortexa8-linux-gnueabihf-g++ -c -pipe --sysroot=/opt/PHYTEC_BSPs/phyBOARD-WEGA-AM335x-PD14.1.0/platform-phyBOARD-WEGA-AM335x/build-host -O2 -Wall -W -fPIC  -I. -I../../../mkspecs/linux-wega -o gnu-libiconv.o gnu-libiconv.cpp
    gnu-libiconv.cpp:37:19: fatal error: iconv.h: No such file or directory
    compilation terminated.
    make: *** [gnu-libiconv.o] Erreur 1
    GNU libiconv disabled.
    Glib auto-detection... ()
    arm-cortexa8-linux-gnueabihf-g++ -c -pipe --sysroot=/opt/PHYTEC_BSPs/phyBOARD-WEGA-AM335x-PD14.1.0/platform-phyBOARD-WEGA-AM335x/build-host -O2 -Wall -W -fPIC  -I. -I../../../mkspecs/linux-wega -o glib.o glib.cpp
    glib.cpp:36:18: fatal error: glib.h: No such file or directory
    compilation terminated.
    make: *** [glib.o] Erreur 1
    Glib disabled.
    ICU auto-detection... ()
    arm-cortexa8-linux-gnueabihf-g++ -c -pipe --sysroot=/opt/PHYTEC_BSPs/phyBOARD-WEGA-AM335x-PD14.1.0/platform-phyBOARD-WEGA-AM335x/build-host -O2 -Wall -W -fPIC  -I. -I../../../mkspecs/linux-wega -o icu.o icu.cpp
    icu.cpp:34:28: fatal error: unicode/utypes.h: No such file or directory
    compilation terminated.
    make: *** [icu.o] Erreur 1
    ICU disabled.
    PulseAudio auto-detection... ()
    arm-cortexa8-linux-gnueabihf-g++ -c -pipe --sysroot=/opt/PHYTEC_BSPs/phyBOARD-WEGA-AM335x-PD14.1.0/platform-phyBOARD-WEGA-AM335x/build-host -O2 -Wall -W -fPIC  -I. -I../../../mkspecs/linux-wega -o pulseaudio.o pulseaudio.cpp
    pulseaudio.cpp:34:30: fatal error: pulse/pulseaudio.h: No such file or directory
    compilation terminated.
    make: *** [pulseaudio.o] Erreur 1
    PulseAudio disabled.
    OpenGL auto-detection... ()
    arm-cortexa8-linux-gnueabihf-g++ -c -pipe --sysroot=/opt/PHYTEC_BSPs/phyBOARD-WEGA-AM335x-PD14.1.0/platform-phyBOARD-WEGA-AM335x/build-host -O2 -Wall -W -fPIC  -I. -I../../../mkspecs/linux-wega -o opengldesktop.o opengldesktop.cpp
    opengldesktop.cpp:37:19: fatal error: GL/gl.h: No such file or directory
    compilation terminated.
    make: *** [opengldesktop.o] Erreur 1
    OpenGL disabled.
    OpenGL ES 2.0 auto-detection... ()
    arm-cortexa8-linux-gnueabihf-g++ -c -pipe --sysroot=/opt/PHYTEC_BSPs/phyBOARD-WEGA-AM335x-PD14.1.0/platform-phyBOARD-WEGA-AM335x/build-host -O2 -Wall -W -fPIC  -I. -I../../../mkspecs/linux-wega -o opengles2.o opengles2.cpp
    opengles2.cpp:37:25: fatal error: GLES2/gl2.h: No such file or directory
    compilation terminated.
    make: *** [opengles2.o] Erreur 1
    OpenGL ES 2.0 disabled.
    FontConfig auto-detection... ()
    arm-cortexa8-linux-gnueabihf-g++ -c -pipe --sysroot=/opt/PHYTEC_BSPs/phyBOARD-WEGA-AM335x-PD14.1.0/platform-phyBOARD-WEGA-AM335x/build-host -O2 -Wall -W -fPIC  -I. -I../../../mkspecs/linux-wega -o fontconfig.o fontconfig.cpp
    In file included from fontconfig.cpp:34:0:
    /opt/PHYTEC_BSPs/phyBOARD-WEGA-AM335x-PD13.1.0/platform-phyBOARD-WEGA-AM335x/sysroot-target/usr/include/ft2build.h:56:38: fatal error: freetype/config/ftheader.h: No such file or directory
    compilation terminated.
    make: *** [fontconfig.o] Erreur 1
    FontConfig disabled.
    libudev auto-detection... ()
    arm-cortexa8-linux-gnueabihf-g++ -c -pipe --sysroot=/opt/PHYTEC_BSPs/phyBOARD-WEGA-AM335x-PD14.1.0/platform-phyBOARD-WEGA-AM335x/build-host -O2 -Wall -W -fPIC  -I. -I../../../mkspecs/linux-wega -o libudev.o libudev.cpp
    In file included from libudev.cpp:34:0:
    /opt/PHYTEC_BSPs/phyBOARD-WEGA-AM335x-PD13.1.0/platform-phyBOARD-WEGA-AM335x/sysroot-target/include/libudev.h:16:23: fatal error: sys/types.h: No such file or directory
    compilation terminated.
    make: *** [libudev.o] Erreur 1
    libudev disabled.
    evdev auto-detection... ()
    arm-cortexa8-linux-gnueabihf-g++ -c -pipe --sysroot=/opt/PHYTEC_BSPs/phyBOARD-WEGA-AM335x-PD14.1.0/platform-phyBOARD-WEGA-AM335x/build-host -O2 -Wall -W -fPIC  -I. -I../../../mkspecs/linux-wega -o evdev.o evdev.cpp
    evdev.cpp:34:25: fatal error: linux/input.h: No such file or directory
    compilation terminated.
    make: *** [evdev.o] Erreur 1
    evdev disabled.
    XLib auto-detection... ()
    arm-cortexa8-linux-gnueabihf-g++ -c -pipe --sysroot=/opt/PHYTEC_BSPs/phyBOARD-WEGA-AM335x-PD14.1.0/platform-phyBOARD-WEGA-AM335x/build-host -O2 -Wall -W -fPIC  -I. -I../../../mkspecs/linux-wega -o xlib.o xlib.cpp
    xlib.cpp:34:22: fatal error: X11/Xlib.h: No such file or directory
    compilation terminated.
    make: *** [xlib.o] Erreur 1
    XLib disabled.
    Xrender auto-detection... ()
    arm-cortexa8-linux-gnueabihf-g++ -c -pipe --sysroot=/opt/PHYTEC_BSPs/phyBOARD-WEGA-AM335x-PD14.1.0/platform-phyBOARD-WEGA-AM335x/build-host -O2 -Wall -W -fPIC  -I. -I../../../mkspecs/linux-wega -o xrender.o xrender.cpp
    xrender.cpp:34:22: fatal error: X11/Xlib.h: No such file or directory
    compilation terminated.
    make: *** [xrender.o] Erreur 1
    Xrender disabled.
    XInput2 auto-detection... ()
    arm-cortexa8-linux-gnueabihf-g++ -c -pipe --sysroot=/opt/PHYTEC_BSPs/phyBOARD-WEGA-AM335x-PD14.1.0/platform-phyBOARD-WEGA-AM335x/build-host -O2 -Wall -W -fPIC  -I. -I../../../mkspecs/linux-wega -o xinput2.o xinput2.cpp
    xinput2.cpp:34:22: fatal error: X11/Xlib.h: No such file or directory
    compilation terminated.
    make: *** [xinput2.o] Erreur 1
    XInput2 disabled.
    xcb auto-detection... ()
    arm-cortexa8-linux-gnueabihf-g++ -c -pipe --sysroot=/opt/PHYTEC_BSPs/phyBOARD-WEGA-AM335x-PD14.1.0/platform-phyBOARD-WEGA-AM335x/build-host -O2 -Wall -W -fPIC  -I. -I../../../mkspecs/linux-wega -o xcb.o xcb.cpp
    xcb.cpp:34:21: fatal error: xcb/xcb.h: No such file or directory
    compilation terminated.
    make: *** [xcb.o] Erreur 1
    xcb disabled.
    LinuxFB auto-detection... ()
    arm-cortexa8-linux-gnueabihf-g++ -c -pipe --sysroot=/opt/PHYTEC_BSPs/phyBOARD-WEGA-AM335x-PD14.1.0/platform-phyBOARD-WEGA-AM335x/build-host -O2 -Wall -W -fPIC  -I. -I../../../mkspecs/linux-wega -o linuxfb.o linuxfb.cpp
    linuxfb.cpp:34:22: fatal error: linux/fb.h: No such file or directory
    compilation terminated.
    make: *** [linuxfb.o] Erreur 1
    LinuxFB disabled.
    KMS auto-detection... ()
    Project ERROR: egl development package not found
    KMS disabled.
    EGL auto-detection... ()
    arm-cortexa8-linux-gnueabihf-g++ -c -pipe --sysroot=/opt/PHYTEC_BSPs/phyBOARD-WEGA-AM335x-PD14.1.0/platform-phyBOARD-WEGA-AM335x/build-host -O2 -Wall -W -fPIC  -I. -I../../../mkspecs/linux-wega -o egl.o egl.cpp
    egl.cpp:34:21: fatal error: EGL/egl.h: No such file or directory
    compilation terminated.
    make: *** [egl.o] Erreur 1
    EGL disabled.
    No QPA platform plugin enabled!
     If you really want to build without a QPA platform plugin you must pass
     -no-qpa-platform-guard to configure. Doing this will
     produce a Qt that can not run GUI applications.
     The dependencies needed for xcb to build are listed in
     src/plugins/platforms/xcb/README
    

    I don't really know how to understand this result...
    For the information, Qt4.8.2 is up and running on the board for the moment.

    Does someone know how to help me with this ?

    Best regards,
    Antoine


  • Lifetime Qt Champion

    Hi and welcome to devnet,

    See this bug report for a possible workaround



  • Hi,

    Thanks for your help.
    I tried to modify the file src/3rdparty/webkit/Source/common.pri but I don't even have the repository "webkit" ...

    Now, I don't know if I chose the right source code. For information, I downloaded "qt-everywhere-opensource-src-5.4.2" and I tried to cross compile with the help of this page : http://doc.qt.io/qt-5/embedded-linux.html#configuring-for-a-specific-device

    What do you think ?


  • Lifetime Qt Champion

    I just rechecked and finally saw the bottom of your log. It seems you are missing some dev packages, there's no linuxfb/egl etc. plugin created.