I have started some discussion with the Mono developers on how to better share our 
work and they
have sent these directions for anyone that is interested in testing Mono with Winelib. 
There is
also a Mono build for Win32 if you want to test it under Wine/ReactOS. I will try and 
find some
free time in the next few weeks to see if I can help with documenting problems or 
areas our
projects can work together better.

Note: forwarded message attached.


__________________________________________________
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com
--- Begin Message ---
Great to hear there are more people to assist with the work! There is
plenty to go around.

My main priority has been getting WineLib to work from a Mono
application. In the C# code I have been working mainly with the
Application, Form, Control, and NativeWindow classes. I have been trying
to get the Form class to work since it is the base for everything in
Windows Forms.

In case you do not already know (it was surprise for me!) a WineLib
application is a Windows application that is compiled under Unix/Linux
as a shared library. This is then started as any other Windows
application under Wine using the wine command. You cannot simply link in
libwine (gcc myapp.c -lwine).

To get started I suggest installing Wine and Mono first if they are not
already installed. I am using the Wine snapshot from 08/04/2002
(Wine-20020804.tar.gz) built from source and installed under /usr/local.
Also be sure to build/use a version of Mono with garbage collection
disabled as there is a problem using WineLib with garbage collection
enabled (check the mono-list archives for this discussion). Then try
building the project under System.Windows.Forms/WINELib. 

In the makefile you may have set these to the appropriate files and/or
paths on your PC: 

X11R6_INCLUDE=/usr/X11R6/include
WINE_INCLUDE=/usr/local/include/wine
WINE_LIB=/usr/local/lib/wine
GLIB20_INCLUDE=/usr/include/glib-2.0
GLIB20_LIB_INCLUDE=/usr/lib/glib-2.0/include
LIBMONO=/usr/local/lib/libmono.a

If you type make from the mcs/class/System.Windows.Forms/WINELib
directory it will (hopefully) build: 

System.Windows.Forms.dll - 
The current (if largely incomplete) Windows Forms package. 

FormTest.exe, NativeWindowTest.exe, Test.exe - 
Test applications which link to and tests the System.Windows.Forms.dll 

monostub.exe.so - 
The WineLib application that starts the Mono/WineLib application. This
small WineLib application embeds the Mono JIT engine allowing any Mono
application running in it access to WineLib/Win32 function calls. 

Before starting any of the applications set the LD_LIBRARY_PATH to the
current directory so DllImport can find the monostub.exe.so library:
        export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:.

To start any of the applications you type (from the WINELib directory): 
        wine monostub.exe.so mono-winelibapp.exe 

Let me know if you encounter any problems. Sometimes the code I have in
CVS has problems with the very latest branch in CVS. As Mono gets better
the compiler has picked up my errors better.

Hopefully this is enough to get started. Let me know if you encounter
any problems or have any questions. After your environment is ready we
can decide how to break down some of the work. Is there anything you are
interested in working on?

John 

On Thu, 2002-08-29 at 21:59, Dennis Hayes wrote: 
> 
> Hi Guys!
> 
> John is doing some great work getting SWF (system.windows.forms) running
> using winelib.
> 
> There are also two people in Spain that did a few days of serious work ,
> then disappeared. I think they are on Holidays for the month of Aug. (Spain
> is one of the countries that does that), so they may be back in Sept.
> 
> One of these programmers was going to implement the *collection.cs in SWF.
> Mono has a verifier tool ( in the tools directory) that compares two dlls
> and list differences.
> The other Spanish programmer was going to fix differences between the mono
> SWF dll and the Microsoft SWF dll.
> 
> It will be at least Tuesday before I can get back to either of you on how to
> help.
> Checkout the CVS code and get a system setup for compiling, if you have not
> already done so.
> 
> John may be able to point you to some task for starters.
> 
> Welcome to SWF!
> 
> Copy me on any emails you pass.
> Thanks!
> Dennis
> 
--- End Message ---

Reply via email to