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. non-qt project cxxflags include path declaration on windows
Qt 6.11 is out! See what's new in the release blog

non-qt project cxxflags include path declaration on windows

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

    Hi All,

    I imported a non-qt project in qt creator on windows and I cannot figure out why certain includes (outside the project directory) aren't found. I added a line to the project.cxxflags file to specify the external include path the project needs like:

    -I../path/to/relative/include/directory

    which does not work so I tried changing the forward slashes to backward ones but that does not work either. Can anyone give me a hint what am I doing wrong?

    Thanks,
    r0ller

    jsulmJ 1 Reply Last reply
    0
    • R r0ller

      Hi All,

      I imported a non-qt project in qt creator on windows and I cannot figure out why certain includes (outside the project directory) aren't found. I added a line to the project.cxxflags file to specify the external include path the project needs like:

      -I../path/to/relative/include/directory

      which does not work so I tried changing the forward slashes to backward ones but that does not work either. Can anyone give me a hint what am I doing wrong?

      Thanks,
      r0ller

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

      @r0ller said in non-qt project cxxflags include path declaration on windows:

      Can anyone give me a hint what am I doing wrong?

      Please show your project file (pro or CMakeLists.txt).

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

      R 1 Reply Last reply
      0
      • jsulmJ jsulm

        @r0ller said in non-qt project cxxflags include path declaration on windows:

        Can anyone give me a hint what am I doing wrong?

        Please show your project file (pro or CMakeLists.txt).

        R Offline
        R Offline
        r0ller
        wrote on last edited by
        #3

        @jsulm As this is a generic, non-qt project (https://doc.qt.io/qtcreator/creator-project-generic.html) there's no project file but a bunch of others (like <projectname>.cflags, <projectname>.cxxflags, <projectname>.config, <projectname>.files, <projectname>.includes, etc.). But now as of writing this, it seems I found the solution on the page I linked although not by using the -I flag: if I add any relative/absolute path to the <projectname>.includes file, qt creator finds the relevant files. However, I remember having successfully using the -I flag earlier in the <projectname>.cxxflags as well. Concerning the windows specifics: I used forward slashes in the includes file.

        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