Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QtCreator does not find projects include files
Forum Updated to NodeBB v4.3 + New Features

QtCreator does not find projects include files

Scheduled Pinned Locked Moved General and Desktop
6 Posts 4 Posters 5.9k 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.
  • G Offline
    G Offline
    G.o.D
    wrote on last edited by
    #1

    Hi,

    i was developing a project under linux with QtCreator and Qt 5.0.2. When i switch to windows with visual studio xpress 2012, it does not find the projects include files.

    for example, if i have:

    [code]

    #include <somedir/myinclude.h> // project internal include from project base dir
    class MyClass : public QObject {
    }
    [/code]

    i get 'cannot find header file: somdir/myinclude.h' - no such file or directory.

    Works fine on linux... any ideas?

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tobias.hunger
      wrote on last edited by
      #2

      Did you set up the INCLUDEPATH needed to use that library in your .pro-file?

      1 Reply Last reply
      0
      • G Offline
        G Offline
        G.o.D
        wrote on last edited by
        #3

        Yes i did, it is not a library, it's not finding include files that are part of the project

        1 Reply Last reply
        0
        • A Offline
          A Offline
          alizadeh91
          wrote on last edited by
          #4

          Is the shadow build is checked in projects tab?

          1 Reply Last reply
          0
          • G Offline
            G Offline
            G.o.D
            wrote on last edited by
            #5

            Yes it was, turning it off solved it, thank you very much!

            1 Reply Last reply
            0
            • K Offline
              K Offline
              koahnig
              wrote on last edited by
              #6

              [quote author="G.o.D" date="1370089039"]Yes i did, it is not a library, it's not finding include files that are part of the project[/quote]

              The "INCLUDEPATH":http://qt-project.org/doc/qt-4.8/qmake-variable-reference.html#includepath as noted by Tobias is for including header files. You have to make sure that the path with your header files in part of the INCLUDEPATH.

              Vote the answer(s) that helped you to solve your issue(s)

              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