Hi all, I’m Matteo from Italy, I’m finding some problem crosscompiling Qt5 for my Colibri T20 device (Nvidia Tegra 2).
I’ve the toolchain from the vendor (Toradex) and also the rootfs.
I’ve downloaded the stable version of Qt5 from git and now I’m compiling with the following command:
./configure -opengl es2 -device tegra2 -device-option CROSS_COMPILE=~/QT5/compiler/gcc-linaro-arm-linux-gnueabihf-2012.09-20120921_linux/bin/arm-linux-gnueabihf- -sysroot ~/QT5/rootfs/ -opensource -confirm-license -optimized-qmake -release -make libs -prefix /usr/local/qt5pi -v
But my code stops with the folowing error:
Note: PKG_CONFIG_SYSROOT_DIR automatically set to /home/matteo/QT5/rootfs/
Determining architecture... ()
/home/matteo/QT5/compiler/gcc-linaro-arm-linux-gnueabihf-2012.09-20120921_linux/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/matteo/QT5/rootfs/ -g -Wall -W -fPIE -I../../mkspecs/devices/linux-tegra2-g++ -I. -I/home/matteo/QT5/rootfs/usr/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 -g -Wall -W -fPIE -I../../mkspecs/linux-g++ -I. -o arch.o arch.cpp
g++ -o arch arch.o
{ test -n "" && DESTDIR="" || DESTDIR=.; } && test $(gdb --version | sed -e 's,[^0-9]\+\([0-9]\)\.\([0-9]\).*,\1\2,;q') -gt 72 && gdb --nx --batch --quiet -ex 'set confirm off' -ex "save gdb-index $DESTDIR" -ex quit 'arch' && test -f arch.gdb-index && objcopy --add-section '.gdb_index=arch.gdb-index' --set-section-flags '.gdb_index=readonly' 'arch' 'arch' && rm -f arch.gdb-index || true
Found architecture in binary
CFG_HOST_ARCH="i386"
CFG_HOST_CPUFEATURES=""
System architecture: 'unknown'
Host architecture: 'i386'
C++11 auto-detection... ()
...
It seems that my system don’t found stdio.h, but I’ve all the relative packet for compiling installed and if I launch a locate stdio.h in the result I’ve also:
/usr/include/stdio.h
/usr/include/bits/stdio.h
/usr/include/c++/4.6/tr1/stdio.h
/usr/include/i386-linux-gnu/bits/stdio.h
/usr/lib/perl/5.14.2/CORE/nostdio.h
/usr/lib/syslinux/com32/include/stdio.h
Do you have some hints? I’ve searched a lot but it seems that everyone could compile for tegra2 but me :(.
I’ve also an openembedded env on my machine, so if you have some recipes for qt5 I can use it.
Thanks.
↧