Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Custom kit (self-compiled Qt 5.9) : features.h not found

Custom kit (self-compiled Qt 5.9) : features.h not found

Scheduled Pinned Locked Moved Solved Installation and Deployment
5 Posts 1 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.
  • M Offline
    M Offline
    maxzor
    wrote on 19 Jan 2019, 10:48 last edited by maxzor
    #1

    Hello,
    I am on Ubuntu Xenial.
    I need to step in qt sources to debug an application (github.com/pgmodeler/pgmodeler), so I compiled a debug version of Qt 5.9, and registered qtversion and the kit accordingly.

    When debugging with pre-compiled Qt, there is no source parsing issue and the call stack :
    qglobal.h -> type_traits -> c++config.h -> os_defines.h -> features.h is correctly found.

    However with the above custom kit, the source parser does not find features.h.
    It is in /usr/include/. in my system, this GNU c header comes from libc6-dev package.
    I browsed the web for ansers, tried to add "INCLUDEPATH+=/usr/include" in my .pro file, in the qtcreator projects tab, even in each subfolder makefiles, nothing did it.

    Any clue?
    Best regards, Maxime

    M 1 Reply Last reply 19 Jan 2019, 13:16
    0
    • M Offline
      M Offline
      maxzor
      wrote on 20 Jan 2019, 23:37 last edited by
      #5

      This was really dumb...
      Setting, as per : https://forum.qt.io/topic/95523/qt-creator-clang-code-model-doesn-t-find-types-even-though-code-compiles/8 , in Tools->Options->Kits :

      • CMAKE_SYSROOT:STRING=/ in CMake Configuration,
      • System root : /

      Solved it.
      BR, Maxime
      0_1548027430360_qtc_kit_setting.png

      1 Reply Last reply
      0
      • M maxzor
        19 Jan 2019, 10:48

        Hello,
        I am on Ubuntu Xenial.
        I need to step in qt sources to debug an application (github.com/pgmodeler/pgmodeler), so I compiled a debug version of Qt 5.9, and registered qtversion and the kit accordingly.

        When debugging with pre-compiled Qt, there is no source parsing issue and the call stack :
        qglobal.h -> type_traits -> c++config.h -> os_defines.h -> features.h is correctly found.

        However with the above custom kit, the source parser does not find features.h.
        It is in /usr/include/. in my system, this GNU c header comes from libc6-dev package.
        I browsed the web for ansers, tried to add "INCLUDEPATH+=/usr/include" in my .pro file, in the qtcreator projects tab, even in each subfolder makefiles, nothing did it.

        Any clue?
        Best regards, Maxime

        M Offline
        M Offline
        maxzor
        wrote on 19 Jan 2019, 13:16 last edited by maxzor
        #2

        @maxzor I forgot to mention that other subfolders in /usr/include are well taken account of, like libxml2 and postgresql. they have the -isystem option.
        I tried both -isystem (issue with order, does not compile) and -I (compiles fine but the parsing issue is still here).

        1 Reply Last reply
        0
        • M Offline
          M Offline
          maxzor
          wrote on 19 Jan 2019, 15:52 last edited by maxzor
          #3

          This really is an issue with the source parser : compilation is no problem with either kit.
          Switching project in the "projects" tab make the parsing error come and go, as you can see :
          https://youtu.be/gFIWa-Bmsp0

          Is it a problem that must be solved before compiling, related to qbs, or after, related to Clang code model?

          1 Reply Last reply
          1
          • M Offline
            M Offline
            maxzor
            wrote on 19 Jan 2019, 23:54 last edited by
            #4

            https://bugreports.qt.io/browse/QTCREATORBUG-21859

            1 Reply Last reply
            1
            • M Offline
              M Offline
              maxzor
              wrote on 20 Jan 2019, 23:37 last edited by
              #5

              This was really dumb...
              Setting, as per : https://forum.qt.io/topic/95523/qt-creator-clang-code-model-doesn-t-find-types-even-though-code-compiles/8 , in Tools->Options->Kits :

              • CMAKE_SYSROOT:STRING=/ in CMake Configuration,
              • System root : /

              Solved it.
              BR, Maxime
              0_1548027430360_qtc_kit_setting.png

              1 Reply Last reply
              0

              3/5

              19 Jan 2019, 15:52

              • Login

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