Qt-interest Archive, April 2007
Problems with rc-files
Message 1 in thread
Hi,
I'm having some strange problems with rc-files using Qt 4.2.3 for Windows and
I'm quite shure that the same configuration worked fine with Qt 4.2.2.
I have a directory (res) for all the images and other non-source files
included in my project. I also have the rc file for the program icon for
Windows (created following http://doc.trolltech.com/4.2/appicon.html) located
there. Now I get the following error message during compile:
R:\programme\demos\icon>make
mingw32-make -f Makefile.Release
mingw32-make[1]: Entering directory `R:/programme/demos/icon'
windres -i res\icon.rc -o release\icon_res.o --include-dir=res
Option -I is deprecated for setting the input format, please use -J instead.
windres: res\icon.rc: Not a valid WIN32 resource file
mingw32-make[1]: *** [release\icon_res.o] Error 1
mingw32-make[1]: Leaving directory `R:/programme/demos/icon'
mingw32-make: *** [release] Error 2
When I place the same file in the top directory of the project, it works fine.
It also works after changing the following lines in Makefile.Release:
release\icon_res.o: res\icon.rc
windres -i res\icon.rc -o release\icon_res.o --include-dir=res
to
release\icon_res.o: res\icon.rc
windres -i res\icon.rc -o release\icon_res.o --include-dir=.
I uploaded a small compilable example to
<http://home.arcor.de/mathe.spiele/upload/icon.tar.gz>. Is this an issue with
my system (Windows XP Pro in VMWare Server 1.0.2) or a general issue of Qt?
Kind Regards,
Ralf
--
[ signature omitted ]