fatal error: 'type_traits' file not found



  • When I try to build any Project with Android Kit, I receive the following error at the output:

    /opt/Qt/5.12.0/android_armv7/include/QtCore/qglobal.h:45:12: fatal error: 'type_traits' file not found
    

    This happens with every Android Kit.

    In Qt Creator, looking at Options -> Devices -> Android, Android Settings display two error messages:

    • X Android NDK directory structure is correct;
    • X Android NDK installed into a path without spaces;

    This is the content inside the NDK directory, /opt/android-studio/android-ndk-r18b:

    .
    ├── build
    ├── meta
    ├── prebuilt
    ├── python-packages
    ├── shader-tools
    ├── simpleperf
    ├── sysroot
    ├── toolchains
    └── wrap.sh
    

    I can build Desktop projects successfully.

    Info:

    • Ubuntu 18.04;
    • Qt 5.12.0;
    • Qt Creator 4.8;

  • Qt Champions 2018

    @Oshio said in fatal error: 'type_traits' file not found:

    In Qt Creator, looking at Options -> Devices -> Android, Android Settings display two error messages:

    X Android NDK directory structure is correct;
    X Android NDK installed into a path without spaces;

    That does not really look like error messages, I guess they have a green checkmark?!

    type_traits is a header for the C++ standard library.

    • Which compiler (and version) are you using for Android?
    • Do you have a type_traits header file for that compiler?


  • @aha_1980 said in fatal error: 'type_traits' file not found:

    That does not really look like error messages, I guess they have a green checkmark?!

    Unfortunately they have a red X at the side.

    I'm using clang 7.02.
    Looking at clang include directory I couldn't find any type_traits.h


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.