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

Cross-compiling Qt for ARM target not working - Need help



  • Hey everyone!

    First a little background on what I'm trying to accomplish: I have an old eBook reader, a Tolino Shine to be exact, which I intend to use as a little status monitor, clock, calendar, etc. It's powered by a Freescale i.MX 5 processor and i've already managed to get Debian 8.11 running on it. I have to use such an old version because I'm stuck on kernel 2.6.35 and Debian 8 is the last version that will work with such an old kernel. Now I'd like to use Qt to build the software that's going to run on it and use the LinuxFB plugin to save some ressources by not having to run a X server in the background.

    Now, I can't seem to figure out how to compile a Qt installation so I can build an application on my pc which I can then move to my target and run there.

    I have already set up a fresh Ubuntu 18.04 VM with only build-essential, perl, python and g++-arm-linux-gnueabihf installed. On my target I have run "apt-get build-dep qt5-default" and installed the latest g++ available, which is 4.9. I then copied the whole filesystem of my target to a folder to use as sysroot. Am I doing this right?

    I used this command to configure Qt:

    ./configure -device linux-tolino-g++ -device-option CROSS_COMPILE=arm-linux-gnueabihf- -no-opengl -no-pch -no-xcb -linuxfb -sysroot ~/Desktop/sysroot -static -opensource -confirm-license
    

    This is my qmake.conf for linux-tolino-g++:

    include(../common/linux_device_pre.conf)
    
    QMAKE_INCDIR += \
        $$[QT_SYSROOT]/usr/include
    
    QMAKE_LIBDIR += \
        $$[QT_SYSROOT]/usr/lib \
        $$[QT_SYSROOT]/lib/arm-linux-gnueabihf \
        $$[QT_SYSROOT]/usr/lib/arm-linux-gnueabihf
    
    QMAKE_LFLAGS += \
        -Wl,-rpath-link,$$[QT_SYSROOT]/usr/lib \
        -Wl,-rpath-link,$$[QT_SYSROOT]/usr/lib/arm-linux-gnueabihf \
        -Wl,-rpath-link,$$[QT_SYSROOT]/lib/arm-linux-gnueabihf \
        -no-pie
    
    IMX5_CFLAGS             = -march=armv7-a -mtune=cortex-a8 -mfpu=neon -DLINUX=1 -Wno-psabi -no-pie
    QMAKE_CFLAGS           += $$IMX5_CFLAGS
    QMAKE_CXXFLAGS         += $$IMX5_CFLAGS
    
    DISTRO_OPTS             = hard-float
    
    include(../common/linux_arm_device_post.conf)
    
    load(qt_config)
    

    But I got a whole bunch of errors (log shorted):

    vmuser@ubuntu:~/Desktop/qt_5.14.2$ ./configure -device linux-tolino-g++ -device-option CROSS_COMPILE=arm-linux-gnueabihf- -no-opengl -no-pch -no-xcb -linuxfb -sysroot ~/Desktop/sysroot -static -opensource -confirm-license -v
    + cd qtbase
    + /home/vmuser/Desktop/qt_5.14.2/qtbase/configure -top-level -device linux-tolino-g++ -device-option CROSS_COMPILE=arm-linux-gnueabihf- -no-opengl -no-pch -no-xcb -linuxfb -sysroot /home/vmuser/Desktop/sysroot -static -opensource -confirm-license -v
    Creating qmake...
    make: Nothing to be done for 'first'.
    Command line: -device linux-tolino-g++ -device-option CROSS_COMPILE=arm-linux-gnueabihf- -no-opengl -no-pch -no-xcb -linuxfb -sysroot /home/vmuser/Desktop/sysroot -static -opensource -confirm-license -v
    
    This is the Qt Open Source Edition.
    
    You have already accepted the terms of the Open Source license.
    
    Running configuration tests...
    
    + arm-linux-gnueabihf-g++ -dumpmachine
    > arm-linux-gnueabihf
    
    + cd /home/vmuser/Desktop/qt_5.14.2/config.tests/verifyspec && /home/vmuser/Desktop/qt_5.14.2/qtbase/bin/qmake "CONFIG -= qt debug_and_release app_bundle lib_bundle" "CONFIG += static warn_off console single_arch" "QMAKE_CFLAGS += --sysroot=/home/vmuser/Desktop/sysroot" "QMAKE_CXXFLAGS += --sysroot=/home/vmuser/Desktop/sysroot" "QMAKE_LFLAGS += --sysroot=/home/vmuser/Desktop/sysroot" -early "CONFIG += cross_compile" /home/vmuser/Desktop/qt_5.14.2/qtbase/config.tests/verifyspec
    + cd /home/vmuser/Desktop/qt_5.14.2/config.tests/verifyspec && MAKEFLAGS= /usr/bin/make
    > arm-linux-gnueabihf-g++ -c -pipe -march=armv7-a -mtune=cortex-a8 -mfpu=neon -DLINUX=1 -Wno-psabi -no-pie -mfloat-abi=hard --sysroot=/home/vmuser/Desktop/sysroot -O2 -w -fPIC  -I/home/vmuser/Desktop/qt_5.14.2/qtbase/config.tests/verifyspec -I. -isystem /home/vmuser/Desktop/sysroot/usr/include -I/home/vmuser/Desktop/qt_5.14.2/qtbase/mkspecs/devices/linux-tolino-g++ -o verifyspec.o /home/vmuser/Desktop/qt_5.14.2/qtbase/config.tests/verifyspec/verifyspec.cpp
    > arm-linux-gnueabihf-g++ -Wl,-rpath-link,/home/vmuser/Desktop/sysroot/usr/lib -Wl,-rpath-link,/home/vmuser/Desktop/sysroot/usr/lib/arm-linux-gnueabihf -Wl,-rpath-link,/home/vmuser/Desktop/sysroot/lib/arm-linux-gnueabihf -no-pie -mfloat-abi=hard --sysroot=/home/vmuser/Desktop/sysroot -Wl,-O1 -o verifyspec verifyspec.o   -L/home/vmuser/Desktop/sysroot/usr/lib -L/home/vmuser/Desktop/sysroot/lib/arm-linux-gnueabihf -L/home/vmuser/Desktop/sysroot/usr/lib/arm-linux-gnueabihf   
    Checking for target architecture... 
    + cd /home/vmuser/Desktop/qt_5.14.2/config.tests/arch && /home/vmuser/Desktop/qt_5.14.2/qtbase/bin/qmake "CONFIG -= qt debug_and_release app_bundle lib_bundle" "CONFIG += static warn_off console single_arch" "QMAKE_CFLAGS += --sysroot=/home/vmuser/Desktop/sysroot" "QMAKE_CXXFLAGS += --sysroot=/home/vmuser/Desktop/sysroot" "QMAKE_LFLAGS += --sysroot=/home/vmuser/Desktop/sysroot" -early "CONFIG += cross_compile" /home/vmuser/Desktop/qt_5.14.2/qtbase/config.tests/arch
    + cd /home/vmuser/Desktop/qt_5.14.2/config.tests/arch && MAKEFLAGS= /usr/bin/make clean && MAKEFLAGS= /usr/bin/make
    > rm -f arch.o
    > rm -f *~ core *.core
    > arm-linux-gnueabihf-g++ -c -pipe -march=armv7-a -mtune=cortex-a8 -mfpu=neon -DLINUX=1 -Wno-psabi -no-pie -mfloat-abi=hard --sysroot=/home/vmuser/Desktop/sysroot -O2 -w -fPIC  -I/home/vmuser/Desktop/qt_5.14.2/qtbase/config.tests/arch -I. -isystem /home/vmuser/Desktop/sysroot/usr/include -I/home/vmuser/Desktop/qt_5.14.2/qtbase/mkspecs/devices/linux-tolino-g++ -o arch.o /home/vmuser/Desktop/qt_5.14.2/qtbase/config.tests/arch/arch.cpp
    > In file included from /home/vmuser/Desktop/sysroot/usr/include/features.h:374:0,
    >                  from /home/vmuser/Desktop/sysroot/usr/include/stdio.h:27,
    >                  from /home/vmuser/Desktop/qt_5.14.2/qtbase/config.tests/arch/arch.cpp:43:
    > /usr/arm-linux-gnueabihf/include/sys/cdefs.h:467:49: error: missing binary operator before token "("
    >  #if __GNUC_PREREQ (4,8) || __glibc_clang_prereq (3,5)
    >                                                  ^
    > In file included from /home/vmuser/Desktop/sysroot/usr/include/stdio.h:937:0,
    >                  from /home/vmuser/Desktop/qt_5.14.2/qtbase/config.tests/arch/arch.cpp:43:
    > /usr/arm-linux-gnueabihf/include/bits/stdio2.h:225:17: error: missing binary operator before token "("
    >  #if __GLIBC_USE (DEPRECATED_GETS)
    >                  ^
    > In file included from /home/vmuser/Desktop/qt_5.14.2/qtbase/config.tests/arch/arch.cpp:43:0:
    > /home/vmuser/Desktop/sysroot/usr/include/stdio.h:46:1: error: ‘__BEGIN_NAMESPACE_STD’ does not name a type; did you mean ‘__BEGIN_DECLS’?
    >  __BEGIN_NAMESPACE_STD
    >  ^~~~~~~~~~~~~~~~~~~~~
    >  __BEGIN_DECLS
    > /home/vmuser/Desktop/sysroot/usr/include/stdio.h:49:1: error: ‘__END_NAMESPACE_STD’ does not name a type
    >  __END_NAMESPACE_STD
    >  ^~~~~~~~~~~~~~~~~~~
    > In file included from /home/vmuser/Desktop/qt_5.14.2/qtbase/config.tests/arch/arch.cpp:43:0:
    > /home/vmuser/Desktop/sysroot/usr/include/stdio.h:108:1: error: ‘__BEGIN_NAMESPACE_STD’ does not name a type; did you mean ‘__BEGIN_DECLS’?
    >  __BEGIN_NAMESPACE_STD
    >  ^~~~~~~~~~~~~~~~~~~~~
    >  __BEGIN_DECLS
    > /home/vmuser/Desktop/sysroot/usr/include/stdio.h:114:1: error: ‘__END_NAMESPACE_STD’ does not name a type
    >  __END_NAMESPACE_STD
    >  ^~~~~~~~~~~~~~~~~~~
    > In file included from /home/vmuser/Desktop/qt_5.14.2/qtbase/config.tests/arch/arch.cpp:43:0:
    > /home/vmuser/Desktop/sysroot/usr/include/stdio.h:176:1: error: ‘__BEGIN_NAMESPACE_STD’ does not name a type; did you mean ‘__BEGIN_DECLS’?
    >  __BEGIN_NAMESPACE_STD
    >  ^~~~~~~~~~~~~~~~~~~~~
    >  __BEGIN_DECLS
    > /home/vmuser/Desktop/sysroot/usr/include/stdio.h:181:1: error: ‘__END_NAMESPACE_STD’ does not name a type
    >  __END_NAMESPACE_STD
    >  ^~~~~~~~~~~~~~~~~~~
    > /home/vmuser/Desktop/sysroot/usr/include/stdio.h:189:1: error: ‘__BEGIN_NAMESPACE_STD’ does not name a type; did you mean ‘__BEGIN_DECLS’?
    >  __BEGIN_NAMESPACE_STD
    >  ^~~~~~~~~~~~~~~~~~~~~
    >  __BEGIN_DECLS
    > /home/vmuser/Desktop/sysroot/usr/include/stdio.h:205:8: error: ‘FILE’ does not name a type
    >  extern FILE *tmpfile64 (void) __wur;
    >         ^~~~
    > /home/vmuser/Desktop/sysroot/usr/include/stdio.h:210:1: error: ‘__END_NAMESPACE_STD’ does not name a type
    >  __END_NAMESPACE_STD
    >  ^~~~~~~~~~~~~~~~~~~
    > /home/vmuser/Desktop/sysroot/usr/include/stdio.h:232:1: error: ‘__BEGIN_NAMESPACE_STD’ does not name a type; did you mean ‘__BEGIN_DECLS’?
    >  __BEGIN_NAMESPACE_STD
    >  ^~~~~~~~~~~~~~~~~~~~~
    >  __BEGIN_DECLS
    > /home/vmuser/Desktop/sysroot/usr/include/stdio.h:242:20: error: ‘FILE’ was not declared in this scope
    >  extern int fflush (FILE *__stream);
    >                     ^~~~
    > /home/vmuser/Desktop/sysroot/usr/include/stdio.h:242:26: error: ‘__stream’ was not declared in this scope
    >  extern int fflush (FILE *__stream);
    >                           ^~~~~~~~
    > /home/vmuser/Desktop/sysroot/usr/include/stdio.h:242:26: note: suggested alternative: ‘__ptr_t’
    >  extern int fflush (FILE *__stream);
    >                           ^~~~~~~~
    >                           __ptr_t
    > /home/vmuser/Desktop/sysroot/usr/include/stdio.h:243:1: error: ‘__END_NAMESPACE_STD’ does not name a type
    >  __END_NAMESPACE_STD
    >  ^~~~~~~~~~~~~~~~~~~
    > /home/vmuser/Desktop/sysroot/usr/include/stdio.h:266:1: error: ‘__BEGIN_NAMESPACE_STD’ does not name a type; did you mean ‘__BEGIN_DECLS’?
    >  __BEGIN_NAMESPACE_STD
    >  ^~~~~~~~~~~~~~~~~~~~~
    >  __BEGIN_DECLS
    > /home/vmuser/Desktop/sysroot/usr/include/stdio.h:278:8: error: ‘FILE’ does not name a type
    >  extern FILE *freopen (const char *__restrict __filename,
    >         ^~~~
    > /home/vmuser/Desktop/sysroot/usr/include/stdio.h:295:1: error: ‘__END_NAMESPACE_STD’ does not name a type
    >  __END_NAMESPACE_STD
    >  ^~~~~~~~~~~~~~~~~~~
    > /home/vmuser/Desktop/sysroot/usr/include/stdio.h:299:8: error: ‘FILE’ does not name a type
    >  extern FILE *freopen64 (const char *__restrict __filename,
    >         ^~~~
    > /home/vmuser/Desktop/sysroot/usr/include/stdio.h:306:8: error: ‘FILE’ does not name a type
    >  extern FILE *fdopen (int __fd, const char *__modes) __THROW __wur;
    >         ^~~~
    > /home/vmuser/Desktop/sysroot/usr/include/stdio.h:312:8: error: ‘FILE’ does not name a type
    >  extern FILE *fopencookie (void *__restrict __magic_cookie,
    >         ^~~~
    > /home/vmuser/Desktop/sysroot/usr/include/stdio.h:319:8: error: ‘FILE’ does not name a type
    >  extern FILE *fmemopen (void *__s, size_t __len, const char *__modes)
    >         ^~~~
    > /home/vmuser/Desktop/sysroot/usr/include/stdio.h:325:8: error: ‘FILE’ does not name a type
    >  extern FILE *open_memstream (char **__bufloc, size_t *__sizeloc) __THROW __wur;
    >         ^~~~
    > /home/vmuser/Desktop/sysroot/usr/include/stdio.h:329:1: error: ‘__BEGIN_NAMESPACE_STD’ does not name a type; did you mean ‘__BEGIN_DECLS’?
    >  __BEGIN_NAMESPACE_STD
    >  ^~~~~~~~~~~~~~~~~~~~~
    >  __BEGIN_DECLS
    > /home/vmuser/Desktop/sysroot/usr/include/stdio.h:336:21: error: ‘FILE’ was not declared in this scope
    >  extern int setvbuf (FILE *__restrict __stream, char *__restrict __buf,
    >                      ^~~~
    > /home/vmuser/Desktop/sysroot/usr/include/stdio.h:336:27: error: expected primary-expression before ‘__restrict’
    >  extern int setvbuf (FILE *__restrict __stream, char *__restrict __buf,
    >                            ^~~~~~~~~~
    > /home/vmuser/Desktop/sysroot/usr/include/stdio.h:336:48: error: expected primary-expression before ‘char’
    >  extern int setvbuf (FILE *__restrict __stream, char *__restrict __buf,
    >                                                 ^~~~
    > /home/vmuser/Desktop/sysroot/usr/include/stdio.h:337:7: error: expected primary-expression before ‘int’
    >        int __modes, size_t __n) __THROW;
    >        ^~~
    > /home/vmuser/Desktop/sysroot/usr/include/stdio.h:337:27: error: expected primary-expression before ‘__n’
    >        int __modes, size_t __n) __THROW;
    >                            ^~~
    > /home/vmuser/Desktop/sysroot/usr/include/stdio.h:337:30: error: expression list treated as compound expression in initializer [-fpermissive]
    >        int __modes, size_t __n) __THROW;
    >                               ^
    > /home/vmuser/Desktop/sysroot/usr/include/stdio.h:338:1: error: ‘__END_NAMESPACE_STD’ does not name a type
    >  __END_NAMESPACE_STD
    >  ^~~~~~~~~~~~~~~~~~~
    > /home/vmuser/Desktop/sysroot/usr/include/stdio.h:347:25: error: variable or field ‘setlinebuf’ declared void
    >  extern void setlinebuf (FILE *__stream) __THROW;
    >                          ^~~~
    > /home/vmuser/Desktop/sysroot/usr/include/stdio.h:347:25: error: ‘FILE’ was not declared in this scope
    > /home/vmuser/Desktop/sysroot/usr/include/stdio.h:347:31: error: ‘__stream’ was not declared in this scope
    >  extern void setlinebuf (FILE *__stream) __THROW;
    >                                ^~~~~~~~
    > /home/vmuser/Desktop/sysroot/usr/include/stdio.h:347:31: note: suggested alternative: ‘__ptr_t’
    >  extern void setlinebuf (FILE *__stream) __THROW;
    >                                ^~~~~~~~
    >                                __ptr_t
    > /home/vmuser/Desktop/sysroot/usr/include/stdio.h:351:1: error: ‘__BEGIN_NAMESPACE_STD’ does not name a type; did you mean ‘__BEGIN_DECLS’?
    >  __BEGIN_NAMESPACE_STD
    >  ^~~~~~~~~~~~~~~~~~~~~
    >  __BEGIN_DECLS
    > /home/vmuser/Desktop/sysroot/usr/include/stdio.h:371:22: error: ‘FILE’ was not declared in this scope
    >  extern int vfprintf (FILE *__restrict __s, const char *__restrict __format,
    >                       ^~~~
    >
    > In file included from /home/vmuser/Desktop/sysroot/usr/include/features.h:374:0,
    >                  from /home/vmuser/Desktop/sysroot/usr/include/stdio.h:27,
    >                  from /home/vmuser/Desktop/qt_5.14.2/qtbase/config.tests/arch/arch.cpp:43:
    > /usr/arm-linux-gnueabihf/include/bits/stdio2.h:268:15: error: ‘FILE’ has not been declared
    >  extern size_t __REDIRECT (__fread_alias,
    >                ^
    > /usr/arm-linux-gnueabihf/include/bits/stdio2.h:272:15: error: ‘FILE’ has not been declared
    >  extern size_t __REDIRECT (__fread_chk_warn,
    >                ^
    > In file included from /home/vmuser/Desktop/sysroot/usr/include/stdio.h:937:0,
    >                  from /home/vmuser/Desktop/qt_5.14.2/qtbase/config.tests/arch/arch.cpp:43:
    > /usr/arm-linux-gnueabihf/include/bits/stdio2.h:282:8: error: ‘FILE’ has not been declared
    >         FILE *__restrict __stream)
    >         ^~~~
    > /usr/arm-linux-gnueabihf/include/bits/stdio2.h:299:17: error: ‘FILE’ has not been declared
    >         int __n, FILE *__restrict __stream) __wur;
    >                  ^~~~
    > In file included from /home/vmuser/Desktop/sysroot/usr/include/features.h:374:0,
    >                  from /home/vmuser/Desktop/sysroot/usr/include/stdio.h:27,
    >                  from /home/vmuser/Desktop/qt_5.14.2/qtbase/config.tests/arch/arch.cpp:43:
    > /usr/arm-linux-gnueabihf/include/bits/stdio2.h:300:14: error: ‘FILE’ has not been declared
    >  extern char *__REDIRECT (__fgets_unlocked_alias,
    >               ^
    > /usr/arm-linux-gnueabihf/include/bits/stdio2.h:303:14: error: ‘FILE’ has not been declared
    >  extern char *__REDIRECT (__fgets_unlocked_chk_warn,
    >               ^
    > In file included from /home/vmuser/Desktop/sysroot/usr/include/stdio.h:937:0,
    >                  from /home/vmuser/Desktop/qt_5.14.2/qtbase/config.tests/arch/arch.cpp:43:
    > /usr/arm-linux-gnueabihf/include/bits/stdio2.h:310:48: error: ‘FILE’ has not been declared
    >  fgets_unlocked (char *__restrict __s, int __n, FILE *__restrict __stream)
    >                                                 ^~~~
    > /usr/arm-linux-gnueabihf/include/bits/stdio2.h:328:9: error: ‘FILE’ has not been declared
    >          FILE *__restrict __stream) __wur;
    >          ^~~~
    > In file included from /home/vmuser/Desktop/sysroot/usr/include/features.h:374:0,
    >                  from /home/vmuser/Desktop/sysroot/usr/include/stdio.h:27,
    >                  from /home/vmuser/Desktop/qt_5.14.2/qtbase/config.tests/arch/arch.cpp:43:
    > /usr/arm-linux-gnueabihf/include/bits/stdio2.h:329:15: error: ‘FILE’ has not been declared
    >  extern size_t __REDIRECT (__fread_unlocked_alias,
    >                ^
    > /usr/arm-linux-gnueabihf/include/bits/stdio2.h:333:15: error: ‘FILE’ has not been declared
    >  extern size_t __REDIRECT (__fread_unlocked_chk_warn,
    >                ^
    > In file included from /home/vmuser/Desktop/sysroot/usr/include/stdio.h:937:0,
    >                  from /home/vmuser/Desktop/qt_5.14.2/qtbase/config.tests/arch/arch.cpp:43:
    > /usr/arm-linux-gnueabihf/include/bits/stdio2.h:343:3: error: ‘FILE’ has not been declared
    >    FILE *__restrict __stream)
    >    ^~~~
    > In file included from /home/vmuser/Desktop/sysroot/usr/include/stdio.h:74:0,
    >                  from /home/vmuser/Desktop/qt_5.14.2/qtbase/config.tests/arch/arch.cpp:43:
    > /usr/arm-linux-gnueabihf/include/bits/stdio2.h: In function ‘size_t fread_unlocked(void*, size_t, size_t, int*)’:
    > /usr/arm-linux-gnueabihf/include/bits/stdio2.h:371:14: error: request for member ‘_IO_read_ptr’ in ‘* __stream’, which is of non-class type ‘int’
    >     int __c = _IO_getc_unlocked (__stream);
    >               ^
    > /usr/arm-linux-gnueabihf/include/bits/stdio2.h:371:14: error: request for member ‘_IO_read_end’ in ‘* __stream’, which is of non-class type ‘int’
    >     int __c = _IO_getc_unlocked (__stream);
    >               ^
    > /usr/arm-linux-gnueabihf/include/bits/stdio2.h:371:14: error: cannot convert ‘int* __restrict__’ to ‘_IO_FILE*’ for argument ‘1’ to ‘int __uflow(_IO_FILE*)’
    >     int __c = _IO_getc_unlocked (__stream);
    >               ^
    > /usr/arm-linux-gnueabihf/include/bits/stdio2.h:371:14: error: request for member ‘_IO_read_ptr’ in ‘* __stream’, which is of non-class type ‘int’
    >     int __c = _IO_getc_unlocked (__stream);
    >               ^
    > Makefile:184: recipe for target 'arch.o' failed
    > make: *** [arch.o] Error 1
    Project ERROR: Could not determine target architecture. See config.log for details.
    

  • Lifetime Qt Champion

    Hi,

    Are you sure that this cross-compiler is also 4.9 ?



  • Hi,
    The cross-compiler I used was the newest one from the 18.04 sources, I think 7.4.
    I have now downgraded to 4.9 but I still get the same error. I'm sorry if I'm missing something really simple here but I'm a total newbie when it comes to stuff like this.

    This is the version on my target:

    root@tolino:~# g++ -v
    Using built-in specs.
    COLLECT_GCC=g++
    COLLECT_LTO_WRAPPER=/usr/lib/gcc/arm-linux-gnueabihf/4.9/lto-wrapper
    Target: arm-linux-gnueabihf
    Configured with: ../src/configure -v --with-pkgversion='Debian 4.9.2-10+deb8u2' --with-bugurl=file:///usr/share/doc/gcc-4.9/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.9 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.9 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-libitm --disable-libquadmath --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.9-armhf/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.9-armhf --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.9-armhf --with-arch-directory=arm --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-sjlj-exceptions --with-arch=armv7-a --with-fpu=vfpv3-d16 --with-float=hard --with-mode=thumb --enable-checking=release --build=arm-linux-gnueabihf --host=arm-linux-gnueabihf --target=arm-linux-gnueabihf
    Thread model: posix
    gcc version 4.9.2 (Debian 4.9.2-10+deb8u2)
    

    And this is the version of my cross compiler:

    vmuser@ubuntu:~/Desktop/qt_5.14.2$ arm-linux-gnueabihf-g++ -v
    Using built-in specs.
    COLLECT_GCC=arm-linux-gnueabihf-g++
    COLLECT_LTO_WRAPPER=/usr/lib/gcc-cross/arm-linux-gnueabihf/4.9/lto-wrapper
    Target: arm-linux-gnueabihf
    Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.9.3-13ubuntu2' --with-bugurl=file:///usr/share/doc/gcc-4.9/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.9 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/arm-linux-gnueabihf/include/c++/4.9.3 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-libitm --disable-libquadmath --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.9-armhf-cross/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.9-armhf-cross --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.9-armhf-cross --with-arch-directory=arm --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libgcj --enable-objc-gc --enable-multiarch --enable-multilib --disable-sjlj-exceptions --with-arch=armv7-a --with-fpu=vfpv3-d16 --with-float=hard --with-mode=thumb --disable-werror --enable-multilib --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=arm-linux-gnueabihf --program-prefix=arm-linux-gnueabihf- --includedir=/usr/arm-linux-gnueabihf/include
    Thread model: posix
    gcc version 4.9.3 (Ubuntu/Linaro 4.9.3-13ubuntu2) 
    

Log in to reply