Dependant doesn not exist.



  • Hello,

    I tried to change the location of my existing pictures in a sub-folder where are all the new pictures, and got this error:
    @
    Error: dependent 'new.png' does not exist.
    command failed with exit code 2@

    I updated all the paths in the qrc file, and checked every cpp file and again all the paths are corrected.

    Somehow, the compiler (builder) is looking for the pictures in their old location as well as the new one, if I copy the old images back where they were, everything compiles.

    Any ideas where the compiler stores the location of resources? I tried cleaning my project still the same problem.



  • I hate when this happens, just as I posted I checked the Makefile.Release and Makefile.Debug files, and saw that the paths weren't updated. I updated them by hand, now everything works, antway, shouldn't the paths have updated automatically?



  • Even i had the problem. Yes, it is supposed to change. And the "bug":https://bugreports.qt-project.org/browse/QTBUG-13334 looks closed.



  • Just had the same problem. After deleting the whole output folder (a little crude, but effective), the error was gone. (QT5.2.0).


  • Moderators

    [quote author="chatumao" date="1394902959"]Just had the same problem. After deleting the whole output folder (a little crude, but effective), the error was gone. (QT5.2.0).[/quote]To update your Makefile, run qmake.



  • Can I do that from within Creator?


  • Moderators

    [quote author="chatumao" date="1394932303"]Can I do that from within Creator?[/quote]Yes. "Build" -> "Run qmake"



  • [quote author="JKSH" date="1394932427"][quote author="chatumao" date="1394932303"]Can I do that from within Creator?[/quote]Yes. "Build" -> "Run qmake"
    [/quote]

    Thx


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.