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. Cross-compile Qt5.7, error: features.h: No such file or directory
Forum Updated to NodeBB v4.3 + New Features

Cross-compile Qt5.7, error: features.h: No such file or directory

Scheduled Pinned Locked Moved Unsolved QtonPi
2 Posts 2 Posters 4.5k Views 1 Watching
  • 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
    drewpol
    wrote on last edited by
    #1

    Hello everyone. It's my first post on this forum.

    First, I compiled Qt 5.4 for cross compile with RPi from THIS tutorial and everything works fine. I was able to cross-compile simple Qt app and run it of RPi3.

    Then I decided to upgrade Qt version for 5.7 and I followed THIS tutorial. Everything went fine.

    My problem is when I'm trying to compile simple app with Qt Creator. I set up IDE also with tutorial from second link. And when I'm trying to compile I get error:
    0_1503591934122_qt1.jpg

    Extended issues here:

    /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: 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,
    /opt/qtrpi/raspi/qt5pi/include/QtCore/qglobal.h:45: from /opt/qtrpi/raspi/qt5pi/include/QtCore/qglobal.h:45,
    /opt/qtrpi/raspi/qt5pi/include/QtCore/qcoreapplication.h:43: from /opt/qtrpi/raspi/qt5pi/include/QtCore/qcoreapplication.h:43,
    /opt/qtrpi/raspi/qt5pi/include/QtGui/qguiapplication.h:43: from /opt/qtrpi/raspi/qt5pi/include/QtGui/qguiapplication.h:43,
    /opt/qtrpi/raspi/qt5pi/include/QtGui/QGuiApplication:1: from /opt/qtrpi/raspi/qt5pi/include/QtGui/QGuiApplication:1,
    /home/damian/Documents/Qt Projects/Qmltest2/main.cpp:1: from ../Qmltest2/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: error: features.h: No such file or directory
     #include <features.h>
                          ^
    

    I also figured out that when I'm trying to compile Qt app with 5.4 version from first tutorial it works fine, but when I change to 5.7 version I get this error.

    That are my settings:

    1. Build&Run -> Compilers:
    • c++ compiler:
    /opt/qtrpi/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/arm-linux-gnueabihf/bin/g++
    
    • c compiler:
    /opt/qtrpi/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/arm-linux-gnueabihf/bin/gcc
    
    1. Qt versions tab:
    • Qt Rpi 5.4.2
    
    Name:
    Qt RPi 5.4.2
    ABI:
    arm-linux-generic-elf-32bit
    Source:
    /mnt/rasp-pi-rootfs/usr/local/qt5pi
    mkspec:
    devices/linux-rasp-pi-g++
    qmake:
    /usr/local/qt5pi/bin/qmake
    Version:
    5.4.2
    QMAKE_SPEC
    linux-g++
    QMAKE_VERSION
    3.0
    QMAKE_XSPEC
    devices/linux-rasp-pi-g++
    QT_HOST_BINS
    /usr/local/qt5pi/bin
    QT_HOST_DATA
    /usr/local/qt5pi
    QT_HOST_LIBS
    /usr/local/qt5pi/lib
    QT_HOST_PREFIX
    /usr/local/qt5pi
    QT_INSTALL_ARCHDATA
    /mnt/rasp-pi-rootfs/usr/local/qt5pi
    QT_INSTALL_BINS
    /mnt/rasp-pi-rootfs/usr/local/qt5pi/bin
    QT_INSTALL_CONFIGURATION
    /mnt/rasp-pi-rootfs/usr/local/qt5pi/etc/xdg
    QT_INSTALL_DATA
    /mnt/rasp-pi-rootfs/usr/local/qt5pi
    QT_INSTALL_DEMOS
    /mnt/rasp-pi-rootfs/usr/local/qt5pi/examples
    QT_INSTALL_DOCS
    /mnt/rasp-pi-rootfs/usr/local/qt5pi/doc
    QT_INSTALL_EXAMPLES
    /mnt/rasp-pi-rootfs/usr/local/qt5pi/examples
    QT_INSTALL_HEADERS
    /mnt/rasp-pi-rootfs/usr/local/qt5pi/include
    QT_INSTALL_IMPORTS
    /mnt/rasp-pi-rootfs/usr/local/qt5pi/imports
    QT_INSTALL_LIBEXECS
    /mnt/rasp-pi-rootfs/usr/local/qt5pi/libexec
    QT_INSTALL_LIBS
    /mnt/rasp-pi-rootfs/usr/local/qt5pi/lib
    QT_INSTALL_PLUGINS
    /mnt/rasp-pi-rootfs/usr/local/qt5pi/plugins
    QT_INSTALL_PREFIX
    /mnt/rasp-pi-rootfs/usr/local/qt5pi
    QT_INSTALL_QML
    /mnt/rasp-pi-rootfs/usr/local/qt5pi/qml
    QT_INSTALL_TESTS
    /mnt/rasp-pi-rootfs/usr/local/qt5pi/tests
    QT_INSTALL_TRANSLATIONS
    /mnt/rasp-pi-rootfs/usr/local/qt5pi/translations
    QT_SYSROOT
    /mnt/rasp-pi-rootfs
    QT_VERSION
    5.4.2
    
    • Qt Rpi 5.7
    
    Name:
    Qt RPi 5.7.0 
    ABI:
    arm-linux-generic-elf-32bit
    Source:
    /opt/qtrpi/raspi/qt5pi
    mkspec:
    devices/linux-rpi3-g++
    qmake:
    /opt/qtrpi/raspi/qt5/bin/qmake
    Version:
    5.7.0
    QMAKE_SPEC
    linux-g++
    QMAKE_VERSION
    3.0
    QMAKE_XSPEC
    devices/linux-rpi3-g++
    QT_HOST_BINS
    /opt/qtrpi/raspi/qt5/bin
    QT_HOST_DATA
    /opt/qtrpi/raspi/qt5
    QT_HOST_LIBS
    /opt/qtrpi/raspi/qt5/lib
    QT_HOST_PREFIX
    /opt/qtrpi/raspi/qt5
    QT_INSTALL_ARCHDATA
    /opt/qtrpi/raspi/qt5pi
    QT_INSTALL_BINS
    /opt/qtrpi/raspi/qt5pi/bin
    QT_INSTALL_CONFIGURATION
    /opt/qtrpi/raspi/qt5pi/etc/xdg
    QT_INSTALL_DATA
    /opt/qtrpi/raspi/qt5pi
    QT_INSTALL_DEMOS
    /opt/qtrpi/raspi/qt5pi/examples
    QT_INSTALL_DOCS
    /opt/qtrpi/raspi/qt5pi/doc
    QT_INSTALL_EXAMPLES
    /opt/qtrpi/raspi/qt5pi/examples
    QT_INSTALL_HEADERS
    /opt/qtrpi/raspi/qt5pi/include
    QT_INSTALL_IMPORTS
    /opt/qtrpi/raspi/qt5pi/imports
    QT_INSTALL_LIBEXECS
    /opt/qtrpi/raspi/qt5pi/libexec
    QT_INSTALL_LIBS
    /opt/qtrpi/raspi/qt5pi/lib
    QT_INSTALL_PLUGINS
    /opt/qtrpi/raspi/qt5pi/plugins
    QT_INSTALL_PREFIX
    /opt/qtrpi/raspi/qt5pi
    QT_INSTALL_QML
    /opt/qtrpi/raspi/qt5pi/qml
    QT_INSTALL_TESTS
    /opt/qtrpi/raspi/qt5pi/tests
    QT_INSTALL_TRANSLATIONS
    /opt/qtrpi/raspi/qt5pi/translations
    QT_SYSROOT
    /opt/qtrpi/raspbian/sysroot
    QT_VERSION
    5.7.0
    

    Then in kits when I set Qt Rpi 5.4.2 version I can compile app, but when I change to Qt Rpi 5.7 I get error shown above. I think there is something wrong with qmake settings or I path, but I really can't figure out what's wrong.
    I hope there are specialists which can help me with this issue.

    Thank you so much!

    1 Reply Last reply
    0
    • A Offline
      A Offline
      arsinte_andrei
      wrote on last edited by
      #2

      that's because you have to re sync everything with the new version of Qt on your raspberry pi. also you have to run the phyton script to fix the symbolic links again and then to do the rsync.. also if you are using the rpi.. then you have to take everything from them. the image the qt5pi folder and so on...
      Also please note that their files are based on this tutorial found on Qt website http://wiki.qt.io/RaspberryPi2EGLFS

      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