Results 1 to 3 of 3

Thread: Want to compile resource file with rcc and not windres

  1. #1
    Join Date
    Mar 2007
    Location
    Germany
    Posts
    229
    Thanks
    2
    Thanked 29 Times in 28 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Want to compile resource file with rcc and not windres

    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:
    Qt Code:
    1. windres -i TinyTimeRecorder.qrc -o obj\TinyTimeRecorder.qrc --include-dir=.
    2. windres: TinyTimeRecorder.qrc:1: syntax error
    3. make[1]: *** [obj\TinyTimeRecorder.qrc] Error 1
    4. make[1]: Leaving directory `C:/Tiny/TinyTimeRecorder'
    5. make: *** [release] Error 2
    To copy to clipboard, switch view to plain text mode 
    Obviously 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?

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Want to compile resource file with rcc and not windres

    Try:
    Qt Code:
    1. RESOURCES += TinyTimeRecorder.qrc
    To copy to clipboard, switch view to plain text mode 
    RC_FILE is for windows' resource files.

  3. #3
    Join Date
    Mar 2007
    Location
    Germany
    Posts
    229
    Thanks
    2
    Thanked 29 Times in 28 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Want to compile resource file with rcc and not windres

    Hell you are fast .
    And you are right. This works. Thank you very much.

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.