PDA

View Full Version : Want to compile resource file with rcc and not windres



Boron
8th March 2007, 22:30
Hello,

I am working with WinXP, Dev-C++ and Qt-4.2.2.
Today I tried to compile a resource file (*.qrc).
I added the line RC_FILE += TinyTimeRecorder.qrc to the pro-file for qmake.

But when I try to run make (after a qmake of course) I get the following message:
windres -i TinyTimeRecorder.qrc -o obj\TinyTimeRecorder.qrc --include-dir=.
windres: TinyTimeRecorder.qrc:1: syntax error
make[1]: *** [obj\TinyTimeRecorder.qrc] Error 1
make[1]: Leaving directory `C:/Tiny/TinyTimeRecorder'
make: *** [release] Error 2Obviously make is trying to use the windres.exe, which is delivered with Dev-C++ (can be found in the bin directory) as resource coompiler.
I expected rcc (Trolltechs own resource compiler) to be used.

How can I tell qmake/make to use rcc instead of windres?

jacek
8th March 2007, 22:42
Try:
RESOURCES += TinyTimeRecorder.qrcRC_FILE is for windows' resource files.

Boron
8th March 2007, 22:47
Hell you are fast :cool:.
And you are right. This works. Thank you very much.