Re: Qt Creator produces "No such file or directory" error with existing file
Originally Posted by wysota
INCLUDEPATH is no magic. It merely passes its contents to the compiler with the "-I" parameter.
No, that is the work of DEPENDPATH. INCLUDEPATH is for includes only. But this has no influence on your current situation.
.pro.user file is not used for compilation. It merely contains QtCreator settings (of course including settings for running the compiler, but it only states which compiler to run (by passing options to qmake that parses the .pro file), not what directories it should search for include files). The .pro file controls compilation process.
Well, how do you explain then that once the .pro.user file got rewritten and I removed the INCLUDEPATH statement from the .pro file, and tried to build, I'm no longer getting the "No such file or directory" error?
Re: Qt Creator produces "No such file or directory" error with existing file
Originally Posted by Coolname007
Well, how do you explain then that once the .pro.user file got rewritten and I removed the INCLUDEPATH statement from the .pro file, and tried to build, I'm no longer getting the "No such file or directory" error?
I will not even try explaining that. I could if I had contents of both your projects so that I could compare them (especially the .pro files). I just know how both QtCreator and compilers work and I know the error such as you got is not caused by QtCreator.
Your biological and technological distinctiveness will be added to our own. Resistance is futile.
Please ask Qt related questions on the forum and not using private messages or visitor messages.
Bookmarks