Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. fatal error: 'features.h' file not found QT5.12, Android NDK 23, Intel Mac
Forum Updated to NodeBB v4.3 + New Features

fatal error: 'features.h' file not found QT5.12, Android NDK 23, Intel Mac

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
3 Posts 2 Posters 1.2k 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.
  • A Offline
    A Offline
    ArgBat
    wrote on last edited by
    #1

    Hey all,

    I am trying to compile a legacy Android project and I got stuck on the following compile error:

     fatal error: 'features.h' file not found
    

    Any help will be appreciated.

    Intel Mac
    OS Monterrey 12.4
    QT Creator is 5.0.2
    QT 5.12.12

    Here is my Kits, Qt Versions and Android setting on QT Creator.
    Screen Shot 2022-11-01 at 21.21.26.png

    Screen Shot 2022-11-01 at 21.21.32.png

    Screen Shot 2022-11-01 at 21.22.18.png

    Screen Shot 2022-11-01 at 21.22.37.png

    Screen Shot 2022-11-01 at 21.22.33.png

    Here is a partial compile output:

    19:52:19: Running steps for project softphone4hospital...
    19:52:19: Configuration unchanged, skipping qmake step.
    19:52:19: Starting: "/Users/demian/Library/Android/sdk/ndk/23.1.7779620/prebuilt/darwin-x86_64/bin/make" -j12
    /Users/demian/Library/Android/sdk/ndk/23.1.7779620/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ -c -D__ANDROID_API__=16 -target armv7-none-linux-androideabi -gcc-toolchain /Users/demian/Library/Android/sdk/ndk/23.1.7779620/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64 -fno-limit-debug-info -DANDROID_HAS_WSTRING --sysroot=/Users/demian/Library/Android/sdk/ndk/23.1.7779620/sysroot -isystem /Users/demian/Library/Android/sdk/ndk/23.1.7779620/sysroot/usr/include/arm-linux-androideabi -isystem /Users/demian/Library/Android/sdk/ndk/23.1.7779620/sources/cxx-stl/llvm-libc++/include -isystem /Users/demian/Library/Android/sdk/ndk/23.1.7779620/sources/android/support/include -isystem /Users/demian/Library/Android/sdk/ndk/23.1.7779620/sources/cxx-stl/llvm-libc++abi/include -fstack-protector-strong -DANDROID -march=armv7-a -mfloat-abi=softfp -mfpu=vfp -fno-builtin-memmove -g -g -marm -O0 -std=gnu++11 -Wall -W -D_REENTRANT -fPIC -DQT_DEPRECATED_WARNINGS -DQT_QML_DEBUG -DQT_QUICK_LIB -DQT_SVG_LIB -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_REMOTEOBJECTS_LIB -DQT_NETWORK_LIB -DQT_ANDROIDEXTRAS_LIB -DQT_CORE_LIB -I../../nyu-andriod-softphone -I. -I../build-android/include -I../build-android/include -I../build-android/include -I../build-android/include -I../build-android/include -I../build-android/include -I../build-android/include -I../build-android/include -I../build-android/include -I../build-android/include -I../build-android/include -I../build-android/include -I../build-android/include -I../build-android/include -I../build-android/include -I../build-android/include -I../build-android/include -I../build-android/include -I../build-android/include -I../build-android/include -I../../Qt5.12.12/5.12.12/android_armv7/include -I../../Qt5.12.12/5.12.12/android_armv7/include/QtQuick -I../../Qt5.12.12/5.12.12/android_armv7/include/QtSvg -I../../Qt5.12.12/5.12.12/android_armv7/include/QtWidgets -I../../Qt5.12.12/5.12.12/android_armv7/include/QtMultimedia -I../../Qt5.12.12/5.12.12/android_armv7/include/QtGui -I../../Qt5.12.12/5.12.12/android_armv7/include/QtQml -I../../Qt5.12.12/5.12.12/android_armv7/include/QtRemoteObjects -I../../Qt5.12.12/5.12.12/android_armv7/include/QtNetwork -I../../Qt5.12.12/5.12.12/android_armv7/include/QtAndroidExtras -I../../Qt5.12.12/5.12.12/android_armv7/include/QtCore -I. -I../android -I../../Qt5.12.12/5.12.12/android_armv7/mkspecs/android-clang -o main.o ../src/main.cpp
    
    ...
    
    In file included from ../src/logger.cpp:1:
    In file included from ../src/logger.h:3:
    In file included from ../../Qt5.12.12/5.12.12/android_armv7/include/QtCore/QTextStream:1:
    In file included from ../../Qt5.12.12/5.12.12/android_armv7/include/QtCore/qtextstream.h:43:
    In file included from ../../Qt5.12.12/5.12.12/android_armv7/include/QtCore/qiodevice.h:43:
    In file included from ../../Qt5.12.12/5.12.12/android_armv7/include/QtCore/qglobal.h:45:
    In file included from /Users/demian/Library/Android/sdk/ndk/23.1.7779620/sources/cxx-stl/llvm-libc++/include/type_traits:416:
    /Users/demian/Library/Android/sdk/ndk/23.1.7779620/sources/cxx-stl/llvm-libc++/include/__config:218:12: fatal error: 'features.h' file not found
    
    M 1 Reply Last reply
    0
    • A ArgBat

      Hey all,

      I am trying to compile a legacy Android project and I got stuck on the following compile error:

       fatal error: 'features.h' file not found
      

      Any help will be appreciated.

      Intel Mac
      OS Monterrey 12.4
      QT Creator is 5.0.2
      QT 5.12.12

      Here is my Kits, Qt Versions and Android setting on QT Creator.
      Screen Shot 2022-11-01 at 21.21.26.png

      Screen Shot 2022-11-01 at 21.21.32.png

      Screen Shot 2022-11-01 at 21.22.18.png

      Screen Shot 2022-11-01 at 21.22.37.png

      Screen Shot 2022-11-01 at 21.22.33.png

      Here is a partial compile output:

      19:52:19: Running steps for project softphone4hospital...
      19:52:19: Configuration unchanged, skipping qmake step.
      19:52:19: Starting: "/Users/demian/Library/Android/sdk/ndk/23.1.7779620/prebuilt/darwin-x86_64/bin/make" -j12
      /Users/demian/Library/Android/sdk/ndk/23.1.7779620/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ -c -D__ANDROID_API__=16 -target armv7-none-linux-androideabi -gcc-toolchain /Users/demian/Library/Android/sdk/ndk/23.1.7779620/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64 -fno-limit-debug-info -DANDROID_HAS_WSTRING --sysroot=/Users/demian/Library/Android/sdk/ndk/23.1.7779620/sysroot -isystem /Users/demian/Library/Android/sdk/ndk/23.1.7779620/sysroot/usr/include/arm-linux-androideabi -isystem /Users/demian/Library/Android/sdk/ndk/23.1.7779620/sources/cxx-stl/llvm-libc++/include -isystem /Users/demian/Library/Android/sdk/ndk/23.1.7779620/sources/android/support/include -isystem /Users/demian/Library/Android/sdk/ndk/23.1.7779620/sources/cxx-stl/llvm-libc++abi/include -fstack-protector-strong -DANDROID -march=armv7-a -mfloat-abi=softfp -mfpu=vfp -fno-builtin-memmove -g -g -marm -O0 -std=gnu++11 -Wall -W -D_REENTRANT -fPIC -DQT_DEPRECATED_WARNINGS -DQT_QML_DEBUG -DQT_QUICK_LIB -DQT_SVG_LIB -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_REMOTEOBJECTS_LIB -DQT_NETWORK_LIB -DQT_ANDROIDEXTRAS_LIB -DQT_CORE_LIB -I../../nyu-andriod-softphone -I. -I../build-android/include -I../build-android/include -I../build-android/include -I../build-android/include -I../build-android/include -I../build-android/include -I../build-android/include -I../build-android/include -I../build-android/include -I../build-android/include -I../build-android/include -I../build-android/include -I../build-android/include -I../build-android/include -I../build-android/include -I../build-android/include -I../build-android/include -I../build-android/include -I../build-android/include -I../build-android/include -I../../Qt5.12.12/5.12.12/android_armv7/include -I../../Qt5.12.12/5.12.12/android_armv7/include/QtQuick -I../../Qt5.12.12/5.12.12/android_armv7/include/QtSvg -I../../Qt5.12.12/5.12.12/android_armv7/include/QtWidgets -I../../Qt5.12.12/5.12.12/android_armv7/include/QtMultimedia -I../../Qt5.12.12/5.12.12/android_armv7/include/QtGui -I../../Qt5.12.12/5.12.12/android_armv7/include/QtQml -I../../Qt5.12.12/5.12.12/android_armv7/include/QtRemoteObjects -I../../Qt5.12.12/5.12.12/android_armv7/include/QtNetwork -I../../Qt5.12.12/5.12.12/android_armv7/include/QtAndroidExtras -I../../Qt5.12.12/5.12.12/android_armv7/include/QtCore -I. -I../android -I../../Qt5.12.12/5.12.12/android_armv7/mkspecs/android-clang -o main.o ../src/main.cpp
      
      ...
      
      In file included from ../src/logger.cpp:1:
      In file included from ../src/logger.h:3:
      In file included from ../../Qt5.12.12/5.12.12/android_armv7/include/QtCore/QTextStream:1:
      In file included from ../../Qt5.12.12/5.12.12/android_armv7/include/QtCore/qtextstream.h:43:
      In file included from ../../Qt5.12.12/5.12.12/android_armv7/include/QtCore/qiodevice.h:43:
      In file included from ../../Qt5.12.12/5.12.12/android_armv7/include/QtCore/qglobal.h:45:
      In file included from /Users/demian/Library/Android/sdk/ndk/23.1.7779620/sources/cxx-stl/llvm-libc++/include/type_traits:416:
      /Users/demian/Library/Android/sdk/ndk/23.1.7779620/sources/cxx-stl/llvm-libc++/include/__config:218:12: fatal error: 'features.h' file not found
      
      M Offline
      M Offline
      mvuori
      wrote on last edited by
      #2

      You may need to use an older NDK, see
      https://forum.qt.io/topic/100051/correct-android-sdk-and-ndk-to-be-used-with-qt-5-12-1/15

      1 Reply Last reply
      0
      • A Offline
        A Offline
        ArgBat
        wrote on last edited by
        #3

        Thx for the tip. But I had no luck.

        If I remove the NDK 23 and use NDK 2o or 21 QT Creator insist on downloading NDK 23 when I re enter the settings panel ... "Android installation is missing necessary packages ... Do you wan to install?" and clicking on yes it download NDK 23 .

        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