QtCreator does not find projects include files
-
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?
-
Did you set up the INCLUDEPATH needed to use that library in your .pro-file?
-
Yes i did, it is not a library, it's not finding include files that are part of the project
-
Is the shadow build is checked in projects tab?
-
Yes it was, turning it off solved it, thank you very much!
-
[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.