You probably need a proper INCLUDEPATH as well. Or even that and also DEPENDPATH.
You probably need a proper INCLUDEPATH as well. Or even that and also DEPENDPATH.
Yes, those are there but still not recognizing them:
INCLUDEPATH += $$PWD
DEPENDPATH += $$PWD
Edit: Odd. I've removed the files and even added (existing) files, so that the .pri file does its auto stuff, it still doesn't recognize only that file (I have other files that are recognized fine).
Last edited by Plissken; 18th July 2012 at 07:04.
#include "internal_lib/widgets/sheet_wp.h"
How about this:
qmake Code:
INCLUDEPATH += internal_lib/widgetsTo copy to clipboard, switch view to plain text mode
and then:
Does it change anything?
No, it doesn't. Same error message. This project folder I had cloned from a git repository. I wonder if that has anything to do with it? When I open the .pro file for the first time, it asked whether I wanted to load the .user setting files (but it recommends that I don't) so I just clicked no.
The weird thing is that the code compiles fine on the computer that this project was originally created on.
Last edited by Plissken; 19th July 2012 at 00:23.
error: C1083: Cannot open include file: 'internal_lib/widgets/sheet_wp.h': No such file or directory
compiler command, not error
If you have a problem, CUT and PASTE your code. Do not retype or simplify it. Give a COMPLETE and COMPILABLE example of your problem. Otherwise we are all guessing the problem from a fabrication where relevant details are often missing.
I got this working. I don't know the exactly why it got it working, but I was reading the definition of PWD in the Qt Docs and a word that caught my eye in the definition was shadow build. I realized in the original project which did compile correctly was using shadow building, but the same project I loaded on a different computer was not using shadow building. Once I enabled shadow building (and this must be done when the pro file is loaded for the first time, not later on) it started compiling without errors. Thanks wysotta for your help.
Last edited by Plissken; 20th July 2012 at 07:05. Reason: updated contents
Bookmarks