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. QtCreator doesn't find standard headers
Forum Updated to NodeBB v4.3 + New Features

QtCreator doesn't find standard headers

Scheduled Pinned Locked Moved Solved Mobile and Embedded
3 Posts 2 Posters 373 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
    Devoo
    wrote on last edited by
    #1

    Hey,
    I am trying to build app for Android with QtCreator 4.11 (4.12 doesn't work for me...- different error) and Qt 5.13.1 using:
    CMake 3.16.2,
    NMake generator,
    VisualStudio 2017 Enterprise.

    Path 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x64' has been added to environment path(Path).

    For some reason standard headers cannot be found during building:

    M:\bu-android\src\common\Common_autogen/UP3E2ANKJK/moc_Application.cpp:9:10: fatal error: 'memory' file not found
    

    Any idea?

    jsulmJ 1 Reply Last reply
    0
    • D Devoo

      Hey,
      I am trying to build app for Android with QtCreator 4.11 (4.12 doesn't work for me...- different error) and Qt 5.13.1 using:
      CMake 3.16.2,
      NMake generator,
      VisualStudio 2017 Enterprise.

      Path 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x64' has been added to environment path(Path).

      For some reason standard headers cannot be found during building:

      M:\bu-android\src\common\Common_autogen/UP3E2ANKJK/moc_Application.cpp:9:10: fatal error: 'memory' file not found
      

      Any idea?

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Devoo said in QtCreator doesn't find standard headers:

      Path 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x64' has been added to environment path(Path).

      You don't need Visual Studio for Android.
      Did you install Qt for Android and did you install Android SDK/NDK?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • D Offline
        D Offline
        Devoo
        wrote on last edited by Devoo
        #3

        I found solution.
        My CmakeLists.txt contained:

        SET(CMAKE_CXX_FLAGS "<something>")
        

        QtCreator creates its own CMAKE_CXX_FLAGS, so we just need to change it to:

        SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS } <something>")
        
        1 Reply Last reply
        1

        • Login

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