Results 1 to 1 of 1

Thread: windres syntax error

  1. #1
    Join Date
    Feb 2010
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt5
    MacOS X Unix/X11 Windows

    Default windres syntax error


    My development environment is Linux. My application will run in Windows/Linux/Mac.

    After port my code from Qt 4.8 to 5.1.1 and solving some problems, I add some features to my application, etc.
    In Linux builds perfect. So, now I need to buil the project for Windows: I move code, headers, qrc and project files to a Windows fresh install (W7 64b, Virtual machine); install Qt 5.1.1 online installer (qt-windows-opensource-1.4.0-2-x86-online.exe).

    When open the project and try to build it give this error:

    windres -i Project_resource.rc -o debug\Project_resource_res.o --include-dir=. -DUNICODE -DQT_WEBKIT_LIB -DQT_WIDGETS_LIB -DQT_XML_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_NEEDS_QMAIN
    windres: Project_resource.rc:8: syntax error
    Makefile.Debug:207: recipe for target 'debug/Project_resource_res.o' failed
    mingw32-make[1]: *** [debug/Project_resource_res.o] Error 1

    How can I solve this?

    BTW... I create a new dummy project, add a resource file with some images.
    And it builds with no need of windres.

    So... why my project depends of windres to build?

    Thanks in advance...

    Well, I don't really know why qmake include a generation rule to generate the file Project_resource_res.o from Project_resource.rc. In some of my attempts to debug the problem, I found the Project_resource.rc generated... the content include information about company, version, etc. So, I include this to my pro file, and now the build give no erros.

    VERSION = 0.000

    Big :P
    Last edited by nomadscarecrow; 9th October 2013 at 23:35. Reason: Find a solution

  2. The following user says thank you to nomadscarecrow for this useful post:

    alizadeh91 (25th February 2014)

Similar Threads

  1. Replies: 2
    Last Post: 14th April 2015, 14:03
  2. syntax error : identifier 'QSqlRelationalDelegate'
    By sticcino in forum Qt Programming
    Replies: 6
    Last Post: 16th September 2011, 11:15
  3. Replies: 4
    Last Post: 15th February 2008, 18:27
  4. Replies: 2
    Last Post: 8th March 2007, 22:47
  5. #ifndef syntax error
    By cbeall1 in forum Qt Programming
    Replies: 6
    Last Post: 14th February 2006, 10:29

Tags for this Thread


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.