Hi there! I am trying to get up to speed on developing applications using wine. The winelib-user documentation recommends getting started by taking a look at the winemine (wine-xxxxxx/programs/winemine) code packaged with the library.
I seem to be having different outcomes when I compile the code with the original Makefile and when I do so with the Makefile generated with winemaker.
The original winemine makefile compiles the code without a problem and the program runs, however when I run the makefile generated by winemaker I get the following error:
LD_LIBRARY_PATH=":$LD_LIBRARY_PATH" /usr/bin/wrc -I. -I/usr/local/include/wine/windows -o En.res En.rc En.rc:23:22: Error: parse error
The wine-lib documentation mentions editing the Makefile.in file, I have looked at it and compared it with the original winmine Makefile. The winemaker makefile includes the files En.rc and Pt.rc in it RC_SRCS which is absent from the original Makefile. I removed the two entries with the result that the code compiles, but however fails to run. I do not get any error messages. Apart from those RC_SRCS entries I haven't noticed anything semantically that would result in the different behaviors that I am getting, granted, I may be missing some things.
What parameters do I need to pass to winemaker to get this program to run, or are there certain changes I need to make to the Makefile that I a missing?
Thanks for any help or advice.
Deji.
P.S. Any recommendations on winelib primers would also be much appreciated.
On September 9, 2003 05:10 pm, Deji Akinyemi wrote:
I seem to be having different outcomes when I compile the code with the original Makefile and when I do so with the Makefile generated with winemaker.
There were recent problems with winemaker, you may need to tweak it a bit.
The original winemine makefile compiles the code without a problem and the program runs, however when I run the makefile generated by winemaker I get the following error:
LD_LIBRARY_PATH=":$LD_LIBRARY_PATH" /usr/bin/wrc -I. -I/usr/local/include/wine/windows -o En.res En.rc En.rc:23:22: Error: parse error
This is because En.rc is missing important includes: #include <windows.h> #include "resource.h"
The wine-lib documentation mentions editing the Makefile.in file, I have looked at it and compared it with the original winmine Makefile. The winemaker makefile includes the files En.rc and Pt.rc in it RC_SRCS which is absent from the original Makefile. I removed the two entries with the result that the code compiles, but however fails to run. I do not get any error messages.
You will need to debug this a bit maybe using winegdb. A --debugmsg +relay would be good.
Apart from those RC_SRCS entries I haven't noticed anything semantically that would result in the different behaviors that I am getting, granted, I may be missing some things.
Another way is to start from the example that works, and start applying _little_ changes until it breaks.
P.S. Any recommendations on winelib primers would also be much appreciated.
Unfortunately, the documentation is a bit out of date. I suggest you look at winegcc for compiling winelib apps. It makes thinks simpler, and if your app is already buildable with MinGW, it should build out of the box with winegcc.
Thanks! Adding the
<windows.h> and "resource.h"
entries to En.rc and Pt.rc, was apparently all that was needed.
I would also look into winegcc and MinGW as you reccommended .
Deji.
dpaun@rogers.com wrote:
On September 9, 2003 05:10 pm, Deji Akinyemi wrote:
I seem to be having different outcomes when I compile the code with the original Makefile and when I do so with the Makefile generated with winemaker.
There were recent problems with winemaker, you may need to tweak it a bit.
The original winemine makefile compiles the code without a problem and the program runs, however when I run the makefile generated by winemaker I get the following error:
LD_LIBRARY_PATH=":$LD_LIBRARY_PATH" /usr/bin/wrc -I. -I/usr/local/include/wine/windows -o En.res En.rc En.rc:23:22: Error: parse error
This is because En.rc is missing important includes: #include <windows.h> #include "resource.h"
The wine-lib documentation mentions editing the Makefile.in file, I have looked at it and compared it with the original winmine Makefile. The winemaker makefile includes the files En.rc and Pt.rc in it RC_SRCS which is absent from the original Makefile. I removed the two entries with the result that the code compiles, but however fails to run. I do not get any error messages.
You will need to debug this a bit maybe using winegdb. A --debugmsg +relay would be good.
Apart from those RC_SRCS entries I haven't noticed anything semantically that would result in the different behaviors that I am getting, granted, I may be missing some things.
Another way is to start from the example that works, and start applying _little_ changes until it breaks.
P.S. Any recommendations on winelib primers would also be much appreciated.
Unfortunately, the documentation is a bit out of date. I suggest you look at winegcc for compiling winelib apps. It makes thinks simpler, and if your app is already buildable with MinGW, it should build out of the box with winegcc.
Le mer 10/09/2003 à 16:10, Deji Akinyemi a écrit :
Thanks! Adding the
<windows.h> and "resource.h"
entries to En.rc and Pt.rc, was apparently all that was needed.
I would also look into winegcc and MinGW as you reccommended .
I believe the proper way was to feed rsrc.rc rather than En.rc and Pt.rc to wrc. It already includes windows.h and resource.h, and all the languages .rc presently supported by winemine.
Vincent