neuronalmotion / qtrpi

An easy-to-use environment to cross-compile Qt applications for Raspberry Pi from your desktop.
MIT License
104 stars 40 forks source link

Fatal error: features.h #83

Closed simeoncapy closed 6 years ago

simeoncapy commented 6 years ago

Hello, I recently installed QtRpi in order to build my program on my RPi3. Unfortunatly, I got an error during the make command :

simeon@simeon-lenovo-ubuntu:~/Documents/UR/test2Swipe/testAppliSwipe$  make
/opt/qtrpi/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf-g++ -c -march=armv8-a+crc -mtune=cortex-a53 -mfpu=crypto-neon-fp-armv8 -pipe -Os -mthumb -std=c++11 -mfloat-abi=hard --sysroot=/opt/qtrpi/raspbian/sysroot -O2 -std=gnu++11 -Wall -W -D_REENTRANT -fPIC -DQT_DEPRECATED_WARNINGS -DQT_NO_DEBUG -DQT_QUICKCONTROLS2_LIB -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -I/opt/qtrpi/raspbian/sysroot/opt/vc/include -I/opt/qtrpi/raspbian/sysroot/opt/vc/include/interface/vcos -I/opt/qtrpi/raspbian/sysroot/opt/vc/include/interface/vcos/pthreads -I/opt/qtrpi/raspbian/sysroot/opt/vc/include/interface/vmcs_host/linux -I/opt/qtrpi/raspi/qt5pi/include -I/opt/qtrpi/raspi/qt5pi/include/QtQuickControls2 -I/opt/qtrpi/raspi/qt5pi/include/QtQuick -I/opt/qtrpi/raspi/qt5pi/include/QtGui -I/opt/qtrpi/raspi/qt5pi/include/QtQml -I/opt/qtrpi/raspi/qt5pi/include/QtNetwork -I/opt/qtrpi/raspi/qt5pi/include/QtCore -I. -I=/opt/vc/include -I=/opt/vc/include/interface/vcos/pthreads -I=/opt/vc/include/interface/vmcs_host/linux -I/opt/qtrpi/raspi/qt5/mkspecs/devices/linux-rpi3-g++ -o main.o main.cpp
In file included from /opt/qtrpi/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/arm-linux-gnueabihf/include/c++/4.8.3/arm-linux-gnueabihf/bits/c++config.h:426:0,
                 from /opt/qtrpi/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/arm-linux-gnueabihf/include/c++/4.8.3/cstddef:41,
                 from /opt/qtrpi/raspi/qt5pi/include/QtCore/qglobal.h:45,
                 from /opt/qtrpi/raspi/qt5pi/include/QtCore/qcoreapplication.h:43,
                 from /opt/qtrpi/raspi/qt5pi/include/QtGui/qguiapplication.h:43,
                 from /opt/qtrpi/raspi/qt5pi/include/QtGui/QGuiApplication:1,
                 from main.cpp:1:
/opt/qtrpi/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/arm-linux-gnueabihf/include/c++/4.8.3/arm-linux-gnueabihf/bits/os_defines.h:39:22: fatal error: features.h : Aucun fichier ou dossier de ce type
 #include <features.h>
                      ^
compilation terminated.
make: *** [main.o] Erreur 1

Aucun fichier ou dossier de ce type means "No such files or directory".

I followed all the procedure on this page http://www.qtrpi.com/faq#howtoinstall to install QtRpi.

What can be wrong? Thanks in advance. Dark Patate.

GuillaumeLazar commented 6 years ago

Merci pour la traduction en français ;) Je reste en anglais afin que ça puisse servir à d'autres.

Some questions :

  1. What is your version of raspbian ?
  2. Have you check the youtube video? Any errors during the installation?
  3. The sysroot is well mounted on your computer? You need it in order to compile your application.