Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Hacking QTC to work with Cygwin's MinGW (paths problem)
Forum Updated to NodeBB v4.3 + New Features

Hacking QTC to work with Cygwin's MinGW (paths problem)

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
2 Posts 1 Posters 551 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.
  • _ Offline
    _ Offline
    _PIB
    wrote on last edited by _PIB
    #1

    For example: stdlib.h is included from sample project "puzzle". Project compiles well with all four kits which I have (x86/x64 MinGW/Cygwin) BUT this include line is underlined with yellow as unknown file in Qt Creator editor with only one kit selected - Cygwin's MinGW.

    I have found that qmake parses gcc output to learn the include paths and cygwin's GCC returned POSIX paths so I modified the mkspecs/features/toolchain.prf to fix it:
    http://pastebin.com/raw/Yv0buTUg (search for cygwin)

    I made diagnostic output which I see when I select different kit and I double checked the correctness of paths - they now have forward slashes and are similar to MinGW's detected paths.

    Yet QTC underlines system includes as incorrect. What am I missing? Is there a cached include path set somewhere?

    Example "General messages" output: http://pastebin.com/raw/RRqAVfYR

    1 Reply Last reply
    0
    • _ Offline
      _ Offline
      _PIB
      wrote on last edited by _PIB
      #2

      Adding all include directories reported by GCC to .pro file solved the issue for now but I would still like to know a persistent solution.

      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