Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Special Interest Groups
  3. QtonPi
  4. QtRpi - Fatal error: features.h
Forum Updated to NodeBB v4.3 + New Features

QtRpi - Fatal error: features.h

Scheduled Pinned Locked Moved Unsolved QtonPi
4 Posts 4 Posters 2.2k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    DarkPatate
    wrote on 1 May 2018, 21:21 last edited by
    #1

    Hello,
    I followed the tutorial on this page in order to compile my app for my RPi3: http://www.qtrpi.com/faq#howtoinstall

    Unfortunatly, when I use make command, I got this error:

    /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 follow all the tuto without errors, so I do not understand what is wrong.

    Could you help me?
    Thanks in advance!

    P 1 Reply Last reply 5 May 2018, 18:53
    0
    • D DarkPatate
      1 May 2018, 21:21

      Hello,
      I followed the tutorial on this page in order to compile my app for my RPi3: http://www.qtrpi.com/faq#howtoinstall

      Unfortunatly, when I use make command, I got this error:

      /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 follow all the tuto without errors, so I do not understand what is wrong.

      Could you help me?
      Thanks in advance!

      P Offline
      P Offline
      pirates21
      wrote on 5 May 2018, 18:53 last edited by
      #2
      This post is deleted!
      1 Reply Last reply
      0
      • V Offline
        V Offline
        Vivx701
        wrote on 25 May 2018, 12:22 last edited by
        #3

        Check your sysroot path .

        1 Reply Last reply
        0
        • A Offline
          A Offline
          alluLinger
          wrote on 10 Dec 2020, 09:58 last edited by
          #4

          I use qmake to check sysroot, looks like right

           > qmake  -query "QT_SYSROOT"
           > /home/xxxx/crossbuild
          

          Have you fixed this?

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved