mail-archives/gtk-sharp-list/2004-February/003546.html

534 строки
13 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Gtk-sharp-list] RE: [Mono-devel-list] HOWTO - Build mono, mcs, and gtk-sharp on windows
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:JGerdes%40quilogy.com">
<META NAME="robots" CONTENT="index,nofollow">
<LINK REL="Previous" HREF="003544.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Gtk-sharp-list] RE: [Mono-devel-list] HOWTO - Build mono, mcs, and gtk-sharp on windows
</H1>
<B>Josh Gerdes
</B>
<A HREF="mailto:JGerdes%40quilogy.com"
TITLE="[Gtk-sharp-list] RE: [Mono-devel-list] HOWTO - Build mono, mcs, and gtk-sharp on windows">JGerdes@quilogy.com
</A><BR>
<I>Sun, 29 Feb 2004 16:18:58 -0600</I>
<P><UL>
<LI> Previous message: <A HREF="003544.html">[Gtk-sharp-list] RE: [Mono-devel-list] HOWTO - Build mono, mcs, and gtk-sharp on windows
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#3546">[ date ]</a>
<a href="thread.html#3546">[ thread ]</a>
<a href="subject.html#3546">[ subject ]</a>
<a href="author.html#3546">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>I gave up on using mono-build-w32.sh because I kept running into issues =
and I was not able to drum up any help. I did however get mono, mcs, =
and gtk-sharp to build on windows. The instructions are attached to =
this thread and can be found on the mono wiki. I was able to get CVS =
and source tarballs to compile so at least that's a start. Also once =
you have the dependencies installed correctly then it's just a few =
commands to build everything. Not as nice as a single script of course =
but at least it works.=20
=20
Please let the dev list know of the any progress you make with the =
mono-build-w32.sh.
=20
Thanks and Good Luck.
=20
- Josh
________________________________
From: Daniel Morgan [mailto:<A HREF="mailto:danielmorgan@verizon.net">danielmorgan@verizon.net</A>]
Sent: Sun 2/29/2004 10:49 AM
To: <A HREF="mailto:mono-devel-list@lists.ximian.com">mono-devel-list@lists.ximian.com</A>; <A HREF="mailto:gtk-sharp-list@lists.ximian.com">gtk-sharp-list@lists.ximian.com</A>; =
Josh Gerdes; <A HREF="mailto:mono-devel-list@lists.ximian.com">mono-devel-list@lists.ximian.com</A>; Urs Muff
Cc: Atsushi Eno
Subject: RE: [Mono-devel-list] HOWTO - Build mono, mcs, and gtk-sharp on =
windows
mono-build-w32.sh only works for cvs; it does not work for release =
builds
from a tarball. Maybe someone could create a script based on the
mono-build-w32.sh script to work for tarball releases instead of cvs.
Ask Atsushi Eno, he was able to fix the Windows build for us at one =
time.
He maybe able to do it again.
I do care about the Windows build, but I haven't built Mono on Windows =
since
Mono 0.30 was released.
I do wish the Novell/Ximian Mono hackers cared more about the Windows =
build.
-----Original Message-----
From: Urs Muff [mailto:<A HREF="mailto:umuff@QUARK.com">umuff@QUARK.com</A>]
Sent: Sunday, February 29, 2004 1:09 AM
To: 'Daniel Morgan '; '<A HREF="mailto:mono-devel-list@lists.ximian.com">mono-devel-list@lists.ximian.com</A>'; 'Josh Gerdes
'; '<A HREF="mailto:gtk-sharp-list@lists.ximian.com">gtk-sharp-list@lists.ximian.com</A>'; '<A HREF="mailto:mono-devel-list@lists.ximian.com">mono-devel-list@lists.ximian.com</A>'
Subject: RE: [Mono-devel-list] HOWTO - Build mono, mcs, and gtk-sharp on
windows
what's the difference of that and mono/web/mono-build-w32.sh? shouldn't
that be the same?
but since last monday the window build has been broken anyway and nobody
seems to give a shit about it.
- Urs
-----Original Message-----
From: <A HREF="mailto:mono-devel-list-admin@lists.ximian.com">mono-devel-list-admin@lists.ximian.com</A>
To: Josh Gerdes; <A HREF="mailto:gtk-sharp-list-request@lists.ximian.com">gtk-sharp-list-request@lists.ximian.com</A>;
<A HREF="mailto:mono-devel-list@lists.ximian.com">mono-devel-list@lists.ximian.com</A>
Sent: 2/28/2004 10:19 AM
Subject: RE: [Mono-devel-list] HOWTO - Build mono, mcs, and gtk-sharp on
windows
Could someone add this as a web page on www.go-mono.com
&lt;<A HREF="http://www.go-mono.com">http://www.go-mono.com</A>&gt; somewhere please?
-----Original Message-----
From: <A HREF="mailto:mono-devel-list-admin@lists.ximian.com">mono-devel-list-admin@lists.ximian.com</A>
[mailto:<A HREF="mailto:mono-devel-list-admin@lists.ximian.com">mono-devel-list-admin@lists.ximian.com</A>]On Behalf Of Josh Gerdes
Sent: Friday, February 27, 2004 3:07 PM
To: <A HREF="mailto:gtk-sharp-list-request@lists.ximian.com">gtk-sharp-list-request@lists.ximian.com</A>;
<A HREF="mailto:mono-devel-list@lists.ximian.com">mono-devel-list@lists.ximian.com</A>
Subject: [Mono-devel-list] HOWTO - Build mono, mcs, and gtk-sharp on
windows
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D
Building mono, mcs, and gtk-sharp from CVS for windows
by Josh Gerdes
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D
I decided to write this guide to help those like myself who would like
to be able to build mono, mcs, and gtk-sharp on a windows platform. I
have gathered information from various sources and I would like to thank
the following for their posts and information:
Giovanni Zito
Bernie Solomon
Daniel Morgan
Setting up the Environment and Dependencies
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
1) Install the .NET SDK V1.1 from msdn.microsoft.com/downloads. I've put
this step here simply because previous instructions states to install
it. I'm don't know if and why this step is required. By the way, if you
have Microsoft Visual Studio .NET 2003 installed on your system then you
can skip this step.
2) Install the latest cygwin setup (about 30MB). Start choosing the
default installation if you are not sure what packages you need. You'll
can always get the other missing packages later, if mono configure
script will require them. Be sure to get libiconv (not just libiconv2!).
I installed everything just to be safe.
3) Download and install the gtk+ dependencies to /usr/local:
<A HREF="http://prdownloads.sourceforge.net/gtk-win/GTK-Runtime-Environment-2.2.4">http://prdownloads.sourceforge.net/gtk-win/GTK-Runtime-Environment-2.2.4</A>
.1.exe
<A HREF="http://prdownloads.sourceforge.net/gtk-win/GTK-Development-Environment-2">http://prdownloads.sourceforge.net/gtk-win/GTK-Development-Environment-2</A>
.2.4.1.exe
Note: The Runtime installer will delete the destination installation
directory before installing so it must be installed first. This is
optional if you do not want to compile gtk-sharp.
4) Download and install the following dependencies packages and extract
to /usr/local:
<A HREF="http://www.go-mono.com/archive/pkgconfig-0.11-20020310.zip">http://www.go-mono.com/archive/pkgconfig-0.11-20020310.zip</A>
<A HREF="http://www.go-mono.com/archive/glib-2.0.4-20020703.zip">http://www.go-mono.com/archive/glib-2.0.4-20020703.zip</A>
<A HREF="http://www.go-mono.com/archive/glib-dev-2.0.4-20020703.zip">http://www.go-mono.com/archive/glib-dev-2.0.4-20020703.zip</A>
<A HREF="http://www.go-mono.com/archive/libiconv-1.7.zip">http://www.go-mono.com/archive/libiconv-1.7.zip</A>
<A HREF="http://www.go-mono.com/archive/libiconv-dev-1.7-20020101.zip">http://www.go-mono.com/archive/libiconv-dev-1.7-20020101.zip</A>
<A HREF="http://www.go-mono.com/archive/libintl-0.10.40-20020101.zip">http://www.go-mono.com/archive/libintl-0.10.40-20020101.zip</A>
<A HREF="http://www.go-mono.com/archive/libgc-dev.zip">http://www.go-mono.com/archive/libgc-dev.zip</A>
<A HREF="http://www.go-mono.com/archive/icu-2.6.1-Win32_msvc7.zip">http://www.go-mono.com/archive/icu-2.6.1-Win32_msvc7.zip</A>
5) Open a cygwin prompt and edit your profile &quot;~/.bashrc&quot; by adding the
following:
#Environment Variables for Mono
export PATH=3D&quot;/usr/local/bin:/usr/local/lib:$PATH&quot;
export ACLOCAL_FLAGS=3D&quot;-I /usr/share/aclocal&quot;
export CPPFLAGS=3D&quot;$CPPFLAGS -I /usr/local/include&quot;
export LDFLAGS=3D&quot;$LDFLAGS -L /usr/local/lib&quot;
export CC=3D&quot;gcc -mno-cygwin&quot;
export PKG_CONFIG_PATH=3D&quot;/usr/local/lib/pkgconfig&quot;
export LD_LIBRARY_PATH=3D&quot;/usr/local/lib&quot;
export MONO_PATH=3D&quot;/usr/local/lib:$MONO_PATH&quot;
export MONO_CFG_PATH=3D&quot;/usr/local/etc:$MONO_CFG_PATH&quot;
#Environment variables for Mono CVS access
export CVSROOT=3D:pserver:<A HREF="mailto:anonymous@anoncvs.go-mono.com">anonymous@anoncvs.go-mono.com</A>:/mono
export CVS_RSH=3Dssh
#Environment variables for .NET if not already in your Windows PATH
export
PATH=3D&quot;$PATH:/cygdrive/c/WINDOWS/Microsoft.NET/Framework/v1.1.4322&quot;
export PATH=3D&quot;$PATH:/cygdrive/c/Program =
Files/Microsoft.NET/SDK/v1.1/Bin&quot;
6) Create the following script, name it icu-config and copy it to
/usr/local/bin.
#/bin/sh
ICU_ROOT=3D/usr/local/icu
case $1
in
--cppflags)
echo &quot;-I$ICU_ROOT/include&quot;
;;
--ldflags)
echo &quot;-L$ICU_ROOT/lib -licuuc -licuin&quot;
;;
--version)
grep '\&lt;U_ICU_VERSION\&gt;' $ICU_ROOT/include/unicode/uversion.h | sed
-e 's/.*&quot;\(.*\)&quot;.*/\1/'
;;
esac
7) Change the script permissions by running &quot;chmod u+x
/usr/local/bin/icu-config&quot;.
8) Restart your cygwin environment
Downloading latest CVS
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
1) Create a directory to store the source files in your home directory
(&quot;mkdir ~/src&quot;)
2) Go to the newly created directory (&quot;cd src&quot;)
3) Login to CVS by running &quot;cvs login&quot; you will be asked for a password
which can be left blank
4) Download the source
To get the source for the first time run the following:
cvs -z3 co mcs mono gtk-sharp
After that you can just update the source by running the
following:
cvs -z3 update -dP mcs mono gtk-sharp
Building mono
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
You are now ready to buld mono by running the following commands:
$ cd ~src/mono
$ ./configure --with-gc=3Dboehm CPPFLAGS=3D-I/usr/local/include
LDFLAGS=3D-L/usr/local/lib
$ make
$ make install
Note: at the time of creating these instructions the CVS had some issues
so I used mono 0.30.1 source instead
Building mcs
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
You are now ready to buld mcs by running the following commands:
$ cd ~/src/mcs
$ make
$ make install
Building gtk-sharp
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
1) Download and install the libglade lib package to /usr/local/:
<A HREF="http://prdownloads.sourceforge.net/gladewin32/libglade-2.0.1-lib.zip">http://prdownloads.sourceforge.net/gladewin32/libglade-2.0.1-lib.zip</A>
2) Download the libglade bin package and copy libglade-2.0-0.dll to
/usr/local/lib:
<A HREF="http://prdownloads.sourceforge.net/gladewin32/libglade-2.0.1-bin.zip">http://prdownloads.sourceforge.net/gladewin32/libglade-2.0.1-bin.zip</A>
3) Edit /usr/local/lib/pkgconfig/libglade-2.0.pc and set the prefix
(prefix=3D/usr/local)
4) Download and rename libxml2.dll to libxml-2.0.dll and copy to
/usr/local/lib:
<A HREF="http://prdownloads.sourceforge.net/gnuwin32/libxml2-2.4.12-bin.zip">http://prdownloads.sourceforge.net/gnuwin32/libxml2-2.4.12-bin.zip</A>
5) Create the following script, name it libxml-2.0.pc and copy it to
/usr/local/lib/pkgconfig.
prefix=3D/usr/local
exec_prefix=3D${prefix}
libdir=3D${exec_prefix}/lib
Name: Libxml2
Description: a XML parser
Version: 2.4.12
Libs: -L${libdir} -llibxml-2.0
6) Edit makefile.win32 located in your gtk-sharp (~/src/gtk-sharp) and
change the following path to point to the correct Microsoft .NET
Framework (I had v1.1 installed so it had the incorrect path initially).
CSC=3D$(ROOT)/microsoft.net/framework/v1.1.4322/csc.exe /d:WIN32
7) You are now ready to buld gtk-sharp by running the following
commands:
$ cd ~/src/gtk-sharp
$ make -f makefile.win32
8) Copy the newly created dlls to /usr/local/lib:
/atk/atk-sharp.dll
/gdk/gdk-sharp.dll
/glade/glade-sharp.dll
/glib/glib-sharp.dll
/glue/gtksharpglue.dll
/gtk/gtk-sharp.dll
/pango/pango-sharp.dll
Congratulations! You should now have compiled mono, mcs, and gtk-sharp
successfully and have a working version of all of them located in
/usr/local. Please note that these projects are constantly changing and
might not always build and these instructions most likely will need to
eventually be updated. At least there is a starting point now.
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI> Previous message: <A HREF="003544.html">[Gtk-sharp-list] RE: [Mono-devel-list] HOWTO - Build mono, mcs, and gtk-sharp on windows
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#3546">[ date ]</a>
<a href="thread.html#3546">[ thread ]</a>
<a href="subject.html#3546">[ subject ]</a>
<a href="author.html#3546">[ author ]</a>
</LI>
</UL>
</body></html>