After reading about the winamp3 source code release I've been interested in working with winelib. I've been trying to get the winemine2 example to work from the winelib documentation http://winehq.com/site/docs/winelib-user/ winelib-getting-started#WINEMAKER-TEST
After doing the winemaker and configure step I run make and get:
~/wine/programs/winemine2$ make sed -e 's,@bindir@,/usr/local/bin,g' -e 's,@winelibdir@,.,g' ./ wineapploader.in >wineapploader || rm -f wineapploader LD_LIBRARY_PATH="/home/cmorgan/wine/libs:$LD_LIBRARY_PATH" /home/cmorgan/wine/ tools/winebuild/winebuild -o winemine2.exe.dbg.c --debug -C. dialog.c main.c gcc -c -I. -I/home/cmorgan/wine/include -g -O2 -fPIC -D_REENTRANT -o winemine2.exe.dbg.o winemine2.exe.dbg.c LD_LIBRARY_PATH="/home/cmorgan/wine/libs:$LD_LIBRARY_PATH" /home/cmorgan/wine/ tools/wrc/wrc -I. -I/home/cmorgan/wine/include -o En.res En.rc En.rc:23:22: Error: syntax error make: *** [En.res] Error 1 ~/wine/programs/winemine2$
I'm not sure what the issue is with En.rc, I've compared it against other resource files and it looks quite similar.
I edited the Makefile to just use rsrc.rc as winemine2_exe_RC_SRCS and this let me get further and build the standalone app but when I remove the binary resource files like winemine.ico and the *.bmp files these aren't rebuilt. Extracting them manually from rsrc.rc with wrc works however.
Are the docs out of date on this? Bug in winemaker?
Chris
--- Chris Morgan cmorgan@alum.wpi.edu wrote:
I'm not sure what the issue is with En.rc, I've compared it against other resource files and it looks quite similar.
There are a few bugs in the resource handling of wrc. If you check wine-patches from about a week ago I sent in a few patches for comdlg32 and winmm to be compatible with windres and RC from MSVC. It is possible the problems you are seeing are related.
Thanks Steven
__________________________________ Do you Yahoo!? New Yahoo! Photos - easier uploading and sharing. http://photos.yahoo.com/
Le mar 23/12/2003 à 08:34, Steven Edwards a écrit :
--- Chris Morgan cmorgan@alum.wpi.edu wrote:
I'm not sure what the issue is with En.rc, I've compared it against other resource files and it looks quite similar.
There are a few bugs in the resource handling of wrc. If you check wine-patches from about a week ago I sent in a few patches for comdlg32 and winmm to be compatible with windres and RC from MSVC. It is possible the problems you are seeing are related.
Not really. The problem in that case is that winemaker thinks every resource file needs to be compiled independantly, when there's really only one to compile in that case (as it includes the other ones).
Vincent
On December 23, 2003 09:03 am, Vincent Béron wrote:
Not really. The problem in that case is that winemaker thinks every resource file needs to be compiled independantly, when there's really only one to compile in that case (as it includes the other ones).
Fundamental problem is that winemaker just can't be so smart to guess a perfect Makefile. I suggest you just write one manually, and use winegcc to build, this way your Makefile is portable between Wine and MinGW.
--- "Dimitrie O. Paun" dpaun@rogers.com wrote:
On December 23, 2003 09:03 am, Vincent B�ron wrote:
Not really. The problem in that case is that winemaker thinks every resource file needs to be compiled independantly, when there's
really
only one to compile in that case (as it includes the other ones).
Fundamental problem is that winemaker just can't be so smart to guess a perfect Makefile. I suggest you just write one manually, and use winegcc to build, this way your Makefile is portable between Wine and MinGW.
If you want to adapt Winamp3 to Winelib it might be better to do like Dimi suggests and use Mingw first. Jose Francesca (I butcher'd his name) wrote a script called dsw2mak.awk that will create Mingw makefiles from MS_VC projects. If you can get Winamp to build under Mingw then converting the makefile to Winelib should be a short process.
Thanks Steven
__________________________________ Do you Yahoo!? New Yahoo! Photos - easier uploading and sharing. http://photos.yahoo.com/
Should we modify the winelib documentation? The docs make it sound like its an easy two step process.
Also, is there a way to get wrc to extract all of the objects in an rc file? That would make the rc processing step easier and probably a couple line makefile edit would make the example work.
Chris
On Tuesday 23 December 2003 10:37 am, Steven Edwards wrote:
--- "Dimitrie O. Paun" dpaun@rogers.com wrote:
On December 23, 2003 09:03 am, Vincent Béron wrote:
Not really. The problem in that case is that winemaker thinks every resource file needs to be compiled independantly, when there's
really
only one to compile in that case (as it includes the other ones).
Fundamental problem is that winemaker just can't be so smart to guess a perfect Makefile. I suggest you just write one manually, and use winegcc to build, this way your Makefile is portable between Wine and MinGW.
If you want to adapt Winamp3 to Winelib it might be better to do like Dimi suggests and use Mingw first. Jose Francesca (I butcher'd his name) wrote a script called dsw2mak.awk that will create Mingw makefiles from MS_VC projects. If you can get Winamp to build under Mingw then converting the makefile to Winelib should be a short process.
Thanks Steven
Do you Yahoo!? New Yahoo! Photos - easier uploading and sharing. http://photos.yahoo.com/