August 13, 2013

PsAePr PsAePr
Lab Rat
1 posts

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:

  1. 13:50:29: Running steps for project helloworld...
  2. 13:50:29: Configuration unchanged, skipping qmake step.
  3. 13:50:29: Starting: "/usr/bin/make"
  4. /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
  5. /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
  6. 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,
  7.                  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,
  8.                  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,
  9.                  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,
  10.                  from ../opt/rasp-pi-rootfs/usr/local/qt5pi/include/QtCore/qglobal.h:80,
  11.                  from ../opt/rasp-pi-rootfs/usr/local/qt5pi/include/QtCore/qnamespace.h:45,
  12.                  from ../opt/rasp-pi-rootfs/usr/local/qt5pi/include/QtCore/qobjectdefs.h:45,
  13.                  from ../opt/rasp-pi-rootfs/usr/local/qt5pi/include/QtCore/qobject.h:48,
  14.                  from ../opt/rasp-pi-rootfs/usr/local/qt5pi/include/QtCore/qabstractanimation.h:45,
  15.                  from ../opt/rasp-pi-rootfs/usr/local/qt5pi/include/QtCore/QtCore:4,
  16.                  from ../opt/rasp-pi-rootfs/usr/local/qt5pi/include/QtGui/QtGuiDepends:2,
  17.                  from ../opt/rasp-pi-rootfs/usr/local/qt5pi/include/QtGui/QtGui:3,
  18.                  from ../qt5-raspberrypi-example/main.cpp:1:
  19. /home/linux/opt/rasp-pi-rootfs/usr/include/features.h:388:23: fatal error: gnu/stubs.h: No such file or directory
  20. compilation terminated.
  21. make: *** [main.o] Error 1
  22. 13:50:29: The process "/usr/bin/make" exited with code 2.
  23. Error while building/deploying project helloworld (kit: Raspberry Pi)
  24. When executing step 'Make'
  25. 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?

0 replies

 
  ‹‹ QT Creator 5.1 and MYSQL Windows7      mingw32-make keep calling qmake and build never ends. ››

You must log in to post a reply. Not a member yet? Register here!