[Gtk-sharp-list] Build gtk-sharp 0.16 on windows

Josh Gerdes JGerdes@quilogy.com
Wed, 25 Feb 2004 12:36:24 -0600


Mike thanks for the reply.  I knew about the special make flag but I =
also thought I needed to run autogen.sh first.  I ran the following:
=20
=20
Even so, I still get an error when running make -f makefile.win32.  Here =
it is:
=20
$ make -f makefile.win32
for i in glue generator glib pango atk gdk gtk glade; do                =
\
        (cd $i; =
CSC=3D"/cygdrive/C/WINDOWS/microsoft.net/framework/v1.0.3705/csc.e
xe /d:WIN32" make -f makefile.win32) || exit 1;\
done;
make[1]: Entering directory `/home/Josh/src/gtk-sharp/glue'
gcc -mno-cygwin -mms-bitfields -c  `pkg-config --cflags gtk+-win32-2.0 =
libglade-
2.0` -o adjustment.o adjustment.c
Package libglade-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libglade-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libglade-2.0' found
adjustment.c:7:31: gtk/gtkadjustment.h: No such file or directory
adjustment.c:10: error: syntax error before '*' token
adjustment.c:17: error: syntax error before =
"gtksharp_gtk_adjustment_get_lower"
adjustment.c:17: error: syntax error before '*' token
adjustment.c:17: warning: data definition has no type or storage class
adjustment.c:19: error: syntax error before =
"gtksharp_gtk_adjustment_get_upper"
adjustment.c:19: error: syntax error before '*' token
adjustment.c:19: warning: data definition has no type or storage class
adjustment.c:21: error: syntax error before =
"gtksharp_gtk_adjustment_get_step_in
crement"
adjustment.c:21: error: syntax error before '*' token
adjustment.c:21: warning: data definition has no type or storage class
adjustment.c:23: error: syntax error before =
"gtksharp_gtk_adjustment_get_page_in
crement"
adjustment.c:23: error: syntax error before '*' token
adjustment.c:23: warning: data definition has no type or storage class
adjustment.c:25: error: syntax error before '*' token
adjustment.c:28: error: syntax error before =
"gtksharp_gtk_adjustment_get_page_si
ze"
adjustment.c:28: error: syntax error before '*' token
adjustment.c:28: warning: data definition has no type or storage class
adjustment.c:30: error: syntax error before '*' token
adjustment.c:34: error: syntax error before '*' token
adjustment.c: In function `gtksharp_gtk_adjustment_set_bounds':
adjustment.c:39: error: `adj' undeclared (first use in this function)
adjustment.c:39: error: (Each undeclared identifier is reported only =
once
adjustment.c:39: error: for each function it appears in.)
adjustment.c:39: error: `lower' undeclared (first use in this function)
adjustment.c:40: error: `upper' undeclared (first use in this function)
adjustment.c:41: error: `step_increment' undeclared (first use in this =
function)
adjustment.c:42: error: `page_increment' undeclared (first use in this =
function)
adjustment.c:43: error: `page_size' undeclared (first use in this =
function)
adjustment.c: At top level:
adjustment.c:49: error: syntax error before =
"gtksharp_gtk_adjustment_get_lower"
adjustment.c:49: error: syntax error before '*' token
adjustment.c: In function `gtksharp_gtk_adjustment_get_lower':
adjustment.c:51: error: `adj' undeclared (first use in this function)
adjustment.c: At top level:
adjustment.c:55: error: syntax error before =
"gtksharp_gtk_adjustment_get_upper"
adjustment.c:55: error: syntax error before '*' token
adjustment.c: In function `gtksharp_gtk_adjustment_get_upper':
adjustment.c:57: error: `adj' undeclared (first use in this function)
adjustment.c: At top level:
adjustment.c:61: error: syntax error before =
"gtksharp_gtk_adjustment_get_step_in
crement"
adjustment.c:61: error: syntax error before '*' token
adjustment.c: In function `gtksharp_gtk_adjustment_get_step_increment':
adjustment.c:63: error: `adj' undeclared (first use in this function)
adjustment.c: At top level:
adjustment.c:67: error: syntax error before =
"gtksharp_gtk_adjustment_get_page_in
crement"
adjustment.c:67: error: syntax error before '*' token
adjustment.c: In function `gtksharp_gtk_adjustment_get_page_increment':
adjustment.c:69: error: `adj' undeclared (first use in this function)
adjustment.c: At top level:
adjustment.c:73: error: syntax error before '*' token
adjustment.c: In function `gtksharp_gtk_adjustment_set_page_increment':
adjustment.c:75: error: `adj' undeclared (first use in this function)
adjustment.c:75: error: `page_increment' undeclared (first use in this =
function)
adjustment.c: At top level:
adjustment.c:81: error: syntax error before =
"gtksharp_gtk_adjustment_get_page_si
ze"
adjustment.c:81: error: syntax error before '*' token
adjustment.c: In function `gtksharp_gtk_adjustment_get_page_size':
adjustment.c:83: error: `adj' undeclared (first use in this function)
adjustment.c: At top level:
adjustment.c:87: error: syntax error before '*' token
adjustment.c: In function `gtksharp_gtk_adjustment_set_page_size':
adjustment.c:89: error: `adj' undeclared (first use in this function)
adjustment.c:89: error: `page_size' undeclared (first use in this =
function)
make[1]: *** [adjustment.o] Error 1
make[1]: Leaving directory `/home/Josh/src/gtk-sharp/glue'
make: *** [windows] Error 1

I see from this error that I'm missing libglade-2.0.pc but I'm not sure =
why or what needs to be in that file.  That is the main reason for =
question #1 below.  Would it be possible for you to send me a list of =
things you have installed so I may cross-reference?  Or at least what's =
related to libglade. =20
=20
Thanks,
=20
Josh
=20

________________________________

From: Mike Kestner [mailto:mkestner@ximian.com]
Sent: Wed 2/25/2004 11:18 AM
To: Josh Gerdes
Cc: gtk-sharp-list@lists.ximian.com
Subject: Re: [Gtk-sharp-list] Build gtk-sharp 0.16 on windows



On Tue, 2004-02-24 at 22:22, Josh Gerdes wrote:
> I have finally gotten mono and mcs to compile on windows and I am now =
trying to get gtk-sharp to compile.  I have a few questions about =
gtk-sharp.  so here they are:
>=20
>
> 1.    Must I install libglade-2.0-0.dll and libxml.dll before I will =
be able to compile gtk-sharp?  Why are these not integrated in the =
source and compiled by default?
> 2.    when I run autogen.sh at the end it says that some extras like =
glade-sharp.dll, gnome-sharp.dll, etc. were not included.  What =
parameters do I need to set to include them?
> 3.    When compiling gtk-sharp do I need both =
GTK-Development-Environment-2.2.4.1 and GTK-Runtime-Environment-2.2.4.1 =
installed? Or just Dev?

There are special makefiles for the windows build.  It does not use the
autogen/configure approach like on linux.  Instead, just type:

make -f makefile.win32

in the toplevel directory.=20
--
Mike Kestner <mkestner@ximian.com>