How To Solve this Resources error?



  • I have created a media player. But, when I'm going to run it, Qt gives me this error - [debug/qrc_resources.cpp] Error 1

    How can I Fix this ??

    When I click show output, it gives me this.

    19:44:48: Running steps for project QTPlayer...
    19:44:48: Configuration unchanged, skipping qmake step.
    19:44:48: Starting: "D:\QT\Tools\mingw530_32\bin\mingw32-make.exe" 
    D:/QT/Tools/mingw530_32/bin/mingw32-make -f Makefile.Debug
    mingw32-make[1]: Entering directory 'D:/Projects & Tests/C++/Projects/build-QTPlayer-Desktop_Qt_5_7_1_MinGW_32bit-Debug'
    D:\QT\5.7\mingw53_32\bin\rcc.exe -name resources "..\QTPlayer Senith\resources.qrc" -o debug\qrc_resources.cpp
    RCC: Error in '..\QTPlayer Senith\resources.qrc': Cannot find file 'icons/folder.png'
    
    Makefile.Debug:100: recipe for target 'debug/qrc_resources.cpp' failed
    mingw32-make[1]: Leaving directory 'D:/Projects & Tests/C++/Projects/build-QTPlayer-Desktop_Qt_5_7_1_MinGW_32bit-Debug'
    mingw32-make[1]: *** [debug/qrc_resources.cpp] Error 1
    Makefile:34: recipe for target 'debug' failed
    mingw32-make: *** [debug] Error 2
    19:44:49: The process "D:\QT\Tools\mingw530_32\bin\mingw32-make.exe" exited with code 2.
    Error while building/deploying project QTPlayer (kit: Desktop Qt 5.7.1 MinGW 32bit)
    When executing step "Make"
    19:44:49: Elapsed time: 00:01.
    


  • @Kistlak said in How To Solve this Resources error in Qt ??:

    Cannot find file 'icons/folder.png'

    What about that?


  • Lifetime Qt Champion

    Hi
    error 1 means file not really found.
    You might have reference to a file no longer there.
    Right click the qres file in project view and select
    alt text


Log in to reply
 

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