Fatal error: gnu/stubs.h: No such file or directory
-
Hi,
I managed it to build Qt for my RasPi and to set up Qt-Creator for cross-compiling, but when i try to compile a hello world program i get the following output:@13:50:29: Running steps for project helloworld...
13:50:29: Configuration unchanged, skipping qmake step.
13:50:29: Starting: "/usr/bin/make"
/usr/local/qt5pi/bin/qmake -spec devices/linux-rasp-pi-g++ CONFIG+=debug CONFIG+=declarative_debug CONFIG+=qml_debug -o Makefile ../qt5-raspberrypi-example/helloworld.pro
/home/linux/opt/gcc-4.7-linaro-rpi-gnueabihf/bin/arm-linux-gnueabihf-g++ -c -pipe -marm -mfpu=vfp -mtune=arm1176jzf-s -march=armv6zk -mabi=aapcs-linux -mfloat-abi=hard --sysroot=/home/linux/opt/rasp-pi-rootfs -g -Wall -W -D_REENTRANT -fPIE -DQT_QML_DEBUG -DQT_DECLARATIVE_DEBUG -DQT_QUICK_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/local/qt5pi/mkspecs/devices/linux-rasp-pi-g++ -I../qt5-raspberrypi-example -I../qt5-raspberrypi-example -I/mnt/rasp-pi-rootfs/usr/local/qt5pi/include/ -I../opt/rasp-pi-rootfs/usr/local/qt5pi/include -I/home/linux/opt/rasp-pi-rootfs/usr/local/qt5pi/include/QtQuick -I/home/linux/opt/rasp-pi-rootfs/usr/local/qt5pi/include/QtQml -I../opt/rasp-pi-rootfs/usr/local/qt5pi/include/QtNetwork -I../opt/rasp-pi-rootfs/usr/local/qt5pi/include/QtGui -I../opt/rasp-pi-rootfs/usr/local/qt5pi/include/QtCore -I. -I../opt/rasp-pi-rootfs/opt/vc/include -I../opt/rasp-pi-rootfs/opt/vc/include/interface/vcos/pthreads -I../opt/rasp-pi-rootfs/opt/vc/include/interface/vmcs_host/linux -I. -o main.o ../qt5-raspberrypi-example/main.cpp
In file included from /home/linux/opt/gcc-4.7-linaro-rpi-gnueabihf/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:0,
from /home/linux/opt/gcc-4.7-linaro-rpi-gnueabihf/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,
from /home/linux/opt/gcc-4.7-linaro-rpi-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/4.7.2/../../../../arm-linux-gnueabihf/include/c++/4.7.2/utility:70,
from /home/linux/opt/gcc-4.7-linaro-rpi-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/4.7.2/../../../../arm-linux-gnueabihf/include/c++/4.7.2/algorithm:61,
from ../opt/rasp-pi-rootfs/usr/local/qt5pi/include/QtCore/qglobal.h:80,
from ../opt/rasp-pi-rootfs/usr/local/qt5pi/include/QtCore/qnamespace.h:45,
from ../opt/rasp-pi-rootfs/usr/local/qt5pi/include/QtCore/qobjectdefs.h:45,
from ../opt/rasp-pi-rootfs/usr/local/qt5pi/include/QtCore/qobject.h:48,
from ../opt/rasp-pi-rootfs/usr/local/qt5pi/include/QtCore/qabstractanimation.h:45,
from ../opt/rasp-pi-rootfs/usr/local/qt5pi/include/QtCore/QtCore:4,
from ../opt/rasp-pi-rootfs/usr/local/qt5pi/include/QtGui/QtGuiDepends:2,
from ../opt/rasp-pi-rootfs/usr/local/qt5pi/include/QtGui/QtGui:3,
from ../qt5-raspberrypi-example/main.cpp:1:
/home/linux/opt/rasp-pi-rootfs/usr/include/features.h:388:23: fatal error: gnu/stubs.h: No such file or directory
compilation terminated.
make: *** [main.o] Error 1
13:50:29: The process "/usr/bin/make" exited with code 2.
Error while building/deploying project helloworld (kit: Raspberry Pi)
When executing step 'Make'
13:50:29: Elapsed time: 00:00.@I did some google researches and found, that i have to install "libc6-dev".
But it is already installed in the newest version.Does anyone has an idea how I can fix that error?