Cross compile Qt 5.0 for NVIDIA Tegra3



  • Hi,
    Im trying to cross compile Qt5.0 for NVIDIA Tegra3 (arm architecture) below is the configure line i'm using
    @
    kishore@kishore-Msat:~/KISHORE/KISH_NEw/qt-everywhere-opensource-src-5.0.0$ ./configure -v -confirm-license -device tegra3 -device-option CROSS_COMPILE=/home/kishore/KISHORE/KISH_NEw/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf- -arch arm -opensource -make libs -no-pkg-config -no-sse -no-sse2 -no-sse3 -no-icu -no-avx -no-avx2 -no-sql-db2 -no-sql-ibase -no-sql-mysql -no-sql-oci -no-sql-odbc -no-sql-psql -no-sql-sqlite -no-sql-sqlite2 -no-sql-tds -no-accessibility -no-audio-backend -no-gif -no-libpng -no-libjpeg -no-openssl -no-cups -no-nis -no-openvg -no-xinerama -no-sm -dbus -fontconfig -glib -no-iconv -no-nis -javascript-jit -largefile -no-opengl -xrandr -rpath -release -system-proxies -no-xcb -no-pch -no-widgets -no-qpa-platform-guard -sysroot /home/kishore/KISHORE/KISH_NEw/Quadmo747-X-T30_FS_ubuntu-desktop-12.04_v1.0/usr/lib -prefix /home/kishore/KISHORE/KISH_NEw/Quadmo747-X-T30_FS_ubuntu-desktop-12.04_v1.0/usr/local/Qt5
    @



  • Output of the configure: My configuration for Qt5.0 end up with below error messages
    @
    /home/kishore/KISHORE/KISH_NEw/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf-g++ -c -fvisibility=hidden fvisibility.c
    Symbol visibility control enabled.
    /home/kishore/KISHORE/KISH_NEw/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf-g++ --sysroot=/home/kishore/KISHORE/KISH_NEw/Quadmo747-X-T30_FS_ubuntu-desktop-12.04_v1.0/usr/lib -o libtest.so -shared -Wl,-Bsymbolic-functions -fPIC bsymbolic_functions.c
    /home/kishore/KISHORE/KISH_NEw/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/../lib/gcc/arm-linux-gnueabihf/4.7.2/../../../../arm-linux-gnueabihf/bin/ld: cannot find crti.o: No such file or directory
    /home/kishore/KISHORE/KISH_NEw/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/../lib/gcc/arm-linux-gnueabihf/4.7.2/../../../../arm-linux-gnueabihf/bin/ld: cannot find -lm
    collect2: error: ld returned 1 exit status

    Symbolic function binding disabled.

    This is the Qt Open Source Edition.

    You are licensed to use this software under the terms of
    the Lesser GNU General Public License (LGPL) versions 2.1.
    You have already accepted the terms of the license.

    <srcbase> = /home/kishore/KISHORE/KISH_NEw/qt-everywhere-opensource-src-5.0.0/qtbase
    <outbase> = /home/kishore/KISHORE/KISH_NEw/qt-everywhere-opensource-src-5.0.0/qtbase
    Creating qmake. Please wait...
    make: Nothing to be done for `first'.
    Determining architecture... ()
    /home/kishore/KISHORE/KISH_NEw/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf-g++ -c -pipe -mtune=cortex-a9 -march=armv7-a -mhard-float -mfloat-abi=softfp -mfpu=vfpv3-d16 -mfloat-abi=softfp --sysroot=/home/kishore/KISHORE/KISH_NEw/Quadmo747-X-T30_FS_ubuntu-desktop-12.04_v1.0 --sysroot=/home/kishore/KISHORE/KISH_NEw/Quadmo747-X-T30_FS_ubuntu-desktop-12.04_v1.0/usr/lib -g -Wall -W -fPIE -I../../mkspecs/devices/linux-tegra3-g++ -I. -I/home/kishore/KISHORE/KISH_NEw/Quadmo747-X-T30_FS_ubuntu-desktop-12.04_v1.0../include -o arch.o arch.cpp
    arch.cpp:45:19: fatal error: stdio.h: No such file or directory
    compilation terminated.
    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 --sysroot=/home/kishore/KISHORE/KISH_NEw/Quadmo747-X-T30_FS_ubuntu-desktop-12.04_v1.0 -g -Wall -W -fPIE -I../../mkspecs/linux-g++ -I. -o arch.o arch.cpp
    In file included from /home/kishore/KISHORE/KISH_NEw/Quadmo747-X-T30_FS_ubuntu-desktop-12.04_v1.0/usr/include/stdio.h:27:0,
    from arch.cpp:45:
    /home/kishore/KISHORE/KISH_NEw/Quadmo747-X-T30_FS_ubuntu-desktop-12.04_v1.0/usr/include/features.h:330:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
    In file included from /home/kishore/KISHORE/KISH_NEw/Quadmo747-X-T30_FS_ubuntu-desktop-12.04_v1.0/usr/include/features.h:399:0,
    from /home/kishore/KISHORE/KISH_NEw/Quadmo747-X-T30_FS_ubuntu-desktop-12.04_v1.0/usr/include/stdio.h:27,
    from arch.cpp:45:
    /home/kishore/KISHORE/KISH_NEw/Quadmo747-X-T30_FS_ubuntu-desktop-12.04_v1.0/usr/include/gnu/stubs.h:7:29: fatal error: gnu/stubs-soft.h: No such file or directory
    compilation terminated.
    make: *** [arch.o] Error 1
    Unable to determine architecture!
    Could not determine the host architecture!
    Turn on verbose messaging (-v) to see the final report.
    System architecture: 'unknown'
    Host architecture: 'unknown'
    C++11 auto-detection... ()
    @



  • @home/kishore/KISHORE/KISH_NEw/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf-g++ -c -pipe -mtune=cortex-a9 -march=armv7-a -mhard-float -mfloat-abi=softfp -mfpu=vfpv3-d16 -mfloat-abi=softfp --sysroot=/home/kishore/KISHORE/KISH_NEw/Quadmo747-X-T30_FS_ubuntu-desktop-12.04_v1.0 --sysroot=/home/kishore/KISHORE/KISH_NEw/Quadmo747-X-T30_FS_ubuntu-desktop-12.04_v1.0/usr/lib -O2 -std=c++0x -Wall -W -fPIE -I../../../mkspecs/devices/linux-tegra3-g++ -I. -I/home/kishore/KISHORE/KISH_NEw/Quadmo747-X-T30_FS_ubuntu-desktop-12.04_v1.0../include -o c++11.o c++11.cpp
    In file included from /home/kishore/KISHORE/KISH_NEw/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/../lib/gcc/arm-linux-gnueabihf/4.7.2/../../../../arm-linux-gnueabihf/include/c++/4.7.2/arm-linux-gnueabihf/./bits/c++config.h:414:0,
    from /home/kishore/KISHORE/KISH_NEw/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/../lib/gcc/arm-linux-gnueabihf/4.7.2/../../../../arm-linux-gnueabihf/include/c++/4.7.2/utility:70,
    from c++11.cpp:48:
    /home/kishore/KISHORE/KISH_NEw/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/../lib/gcc/arm-linux-gnueabihf/4.7.2/../../../../arm-linux-gnueabihf/include/c++/4.7.2/arm-linux-gnueabihf/./bits/os_defines.h:40:22: fatal error: features.h: No such file or directory
    compilation terminated.
    make: *** [c++11.o] Error 1
    C++11 disabled.
    .......................... it continues
    D-Bus disabled.

    The QtDBus module cannot be enabled because libdbus-1 version 0.93 was not found.
    Turn on verbose messaging (-v) to /home/kishore/KISHORE/KISH_NEw/qt-everywhere-opensource-src-5.0.0/qtbase/configure to see the final report.
    If you believe this message is in error you may use the continue
    switch (-continue) to /home/kishore/KISHORE/KISH_NEw/qt-everywhere-opensource-src-5.0.0/qtbase/configure to continue.
    *** qtbase/configure exited with non-zero status.

    From the first error
    /home/kishore/KISHORE/KISH_NEw/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/../lib/gcc/arm-linux-gnueabihf/4.7.2/../../../../arm-linux-gnueabihf/bin/ld: cannot find crti.o: No such file or directory
    @
    I understood the their is some issure with linker (im not sure). Im using cross compile tool chain and target file system provided with
    I need to build Qt 5.0 (with qt3D) with openglES 2,neon and DBus support, webkit is not required. Please help me in cross compiling Qt5.0 for NVIDIA Tegra3 board.

    Thanks
    Br
    K.K



  • Im using cross compile tool chain and target file system provided by the supplier


Log in to reply
 

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