Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-21859

/usr/include not in code-model built-in header paths

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Done
    • Affects Version/s: Qt Creator 4.8.1
    • Fix Version/s: None
    • Component/s: C/C++/Obj-C++ Support
    • Labels:
      None
    • Environment:
      Desktop x86-64
    • Platform/s:
      Linux/X11

      Description

      Clang-code-model issue presumed.

      Hello, I want to debug digging in qt sources for the pgmodeler app.
      I installed qt 5.9.7 on ubuntu xenial from the installer and with pre-compiled qt first.
      Code model works fine there.

      I then compiled debug-qt locally with gcc, registering qt version and the new kit.
      With this latter custom kit, /usr/include is not in built-in headers anymore : the parser complains about missing (/usr/include/)features.h . Compilation is fine though.

      If it is not a bug in gcctoolchain::gccHeaderPaths(), then what can this problem be related to?

      On top of what I mentioned there https://forum.qt.io/topic/98704/custom-kit-self-compiled-qt-5-9-features-h-not-found ;

      I did try to set CMAKE SYSROOT as suggested here QTCREATORBUG-16155 and there https://forum.qt.io/topic/95523/qt-creator-clang-code-model-doesn-t-find-types-even-though-code-compiles/8.

      Attached CMake settings from qtcreator and the code model widget.

      Best regards, Maxime

      Edit : SOLVED, see https://forum.qt.io/topic/98704/custom-kit-self-compiled-qt-5-9-features-h-not-found 

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            kosjar Nikolai Kosjar
            Reporter:
            maxzor Maxime Chambonnet
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes