Hi...
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...
Edit:
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
QMAKE_TARGET_COMPANY = company
QMAKE_TARGET_PRODUCT = product
QMAKE_TARGET_DESCRIPTION = description
QMAKE_TARGET_COPYRIGHT = copyright
Big :P
Bookmarks