[Gtk-sharp-list] win32 build of gtk-sharp-0.x

Dave Joyner d4ljoyn@yahoo.com
Mon, 16 Jun 2003 10:26:19 -0700 (PDT)


This also was a problem for me with 0.9 and is
probably something stupid on my part.  

I get this error

make[1]: Entering directory
`/devel/gtk-sharp-0.9/glue'
gcc -b i686-pc-mingw32 -c  `pkg-config --cflags
gtk+-win32-2.0` -o adjustment.o
adjustment.c
gcc: cannot specify -o with -c or -S and multiple
compilations

So I guess it thinks that 'pkg-config ...' is a
compilation unit.

I run:

$ pkg-config --cflags gtk+-win32-2.0 

I get:

$ -I/cygdrive/c/mono/include/gtk-2.0
-I/cygdrive/c/mono/lib/gtk-2.0/include -I/c
ygdrive/c/mono/include/atk-1.0
-I/cygdrive/c/mono/include/pango-1.0 -I/cygdrive/
c/mono/include/glib-2.0
-I/cygdrive/c/mono/lib/glib-2.0/include


Which looks right.  So I cut this out and change the
makefile.win32 in glue

GTK_CFLAGS=-I/cygdrive/c/mono/include/gtk-2.0
-I/cygdrive/c/mono/lib/gtk-2.0/include
-I/cygdrive/c/mono/include/atk-1.0
-I/cygdrive/c/mono/include/pango-1.0
-I/cygdrive/c/mono/include/glib-2.0
-I/cygdrive/c/mono/lib/glib-2.0/include

and it now loves me. The gcc version:

gcc (GCC) 3.2 20020927 (prerelease)
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying
conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR
A PARTICULAR PURPOSE.

Does anybody else have this problem ?

I get this whether in the cygwin bash shell or at the
windows prompt.

If I modify my .pc files to have a windows path a la 
d:/mono/include/pango-1.0 pkg-config does not work
from the shell.

I need to build glue because I've been using libglade
on my win32 installation.

Thank you for listening
Dave Joyner



__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com