Results 1 to 13 of 13

Thread: Qt Creator produces "No such file or directory" error with existing file

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2011
    Posts
    22
    Thanks
    4
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Qt Creator produces "No such file or directory" error with existing file

    Quote Originally Posted by wysota View Post
    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?

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,360
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Qt Creator produces "No such file or directory" error with existing file

    Quote Originally Posted by Coolname007 View Post
    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.


Similar Threads

  1. Replies: 5
    Last Post: 15th August 2014, 03:04
  2. Replies: 4
    Last Post: 26th July 2010, 07:02
  3. Replies: 1
    Last Post: 23rd June 2010, 06:03
  4. Replies: 9
    Last Post: 20th May 2010, 09:55
  5. Replies: 3
    Last Post: 8th July 2008, 19:37

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.