PDA

View Full Version : error with "RESOURCES = application.qrc" in application.pro file



navid
25th January 2010, 12:26
hello,

with introducing "RESOURCES = application.qrc" in application.pro file
I receive "/usr/bin/sh: C:/Qt/2009.05/qt/binrcc.exe: No such file or directory" error with compile output

regards
navid

wagmare
25th January 2010, 12:27
edit it with
RESOURCES += application.qrc

use qmake -project and generate a new .pro file . this will automatically include the .qrc file.

navid
25th January 2010, 12:32
till error exist

wagmare
25th January 2010, 12:36
did u added the Q_INIT_RESOURCE() in main.cpp .. but this is not the cause ...

navid
25th January 2010, 12:46
yes


compiling main.cpp
...
rcc application.qrc
mingw32-make[1]: Leaving directory `G:/qt/'
mingw32-make: Leaving directory `G:/qt/'
/usr/bin/sh: C:/Qt/2009.05/qt/binrcc.exe: No such file or directory
mingw32-make[1]: *** [debug/qrc_application.cpp] Error 127
mingw32-make: *** [debug] Error 2
Exited with code 2.

navid
25th January 2010, 12:52
"C:/Qt/2009.05/qt/binrcc.exe" should be as "C:/Qt/2009.05/qt/bin/rcc.exe"
where can i fix it ?

vishwajeet.dusane
25th January 2010, 12:58
Are you able to compile "hello world" application in ur Qt ?
Could u please check your PATH enviornment variable for Qt bin folder path ?

navid
25th January 2010, 13:02
with removing "RESOURCES = application.qrc" from application.pro file, I can compile it successfully.

Lucky_spirit
5th November 2012, 09:43
I know, that this thread is so old, but when I search such information, Google linked me here. So, I want to write my way of solving this problem.

In my case, I have static linked application with Qt libs. That's why rcc.exe, which was at C:\QtSDK\QtSources\4.8.3\bin\ (in Windows 7) processed not right my files *.qrc. What have I done? I run terminal (command line) and go to folder, where my *.qrc file was place. Then I run so command:

C:\QtSDK\QtSources\4.8.3\bin\rcc.exe -name evgResources evgResources.qrc -o release\qrc_evgResources.cpp

Then I got qrc_evgResources.cpp file and in Qt Creator press Run. My Application runs without errors. I think, my Path not configured right, but this method allows me to build apllication static. This is I need.:)