[Mono-devel-list] can't build libgdiplus

Kelly Leahy kellyleahy at swbell.net
Sun Dec 5 12:24:12 EST 2004


Seems like option 1 may have been better.

I think I ended up using both, which is why I didn't
run into these problems as well.

I tend to really dislike warnings in my code, so you
may want to figure out some way to remove these
warnings on your build without adversely affecting
others.  If you can do this, I would recommend that
you submit a patch with those changes (as well as the
STDCALL changes from before) so that these problems
won't happen with other users using the ./configure
default makefile.

Kelly

--- James Fitzsimons <james.fitzsimons at gmail.com>
wrote:

> Hi Kelly,
> 
> On Sun, 2004-12-05 at 16:26, Kelly Leahy wrote:
> > 2) edit the gdip_win32.h file to #define __stdcall
> to
> > nothing rather than __attribute(__stdcall__). 
> 
> Thanks! That worked a treat.
> 
> Problem now is I get the following error:
> 
>  gcc -DHAVE_CONFIG_H -I. -I. -I..
> -I/usr/include/freetype2
> -I/usr/X11R6/include -I/usr/include/libpng12
> -I/usr/include/glib-2.0
> -I/usr/lib/glib-2.0/include -I/usr/include/freetype2
> -Wall -Werror
> -Wno-unused -Wno-format -g -O2 -pthread -MT
> graphics.lo -MD -MP -MF
> .deps/graphics.Tpo -c graphics.c  -fPIC -DPIC -o
> .libs/graphics.o
> graphics.c: In function `GdipCreateFromHDC':
> graphics.c:292: warning: cast to pointer from
> integer of different size
> graphics.c: In function `GdipCreateFromHWND':
> graphics.c:318: warning: cast from pointer to
> integer of different size
> graphics.c:327: warning: cast from pointer to
> integer of different size
> graphics.c: In function `GdipGetDC':
> graphics.c:382: warning: cast from pointer to
> integer of different size
> graphics.c: In function `GdipReleaseDC':
> graphics.c:391: warning: cast to pointer from
> integer of different size
> graphics.c:396: warning: cast to pointer from
> integer of different size
> make[2]: *** [graphics.lo] Error 1
> make[2]: Leaving directory
>
`/home/james/development/MonoProjects/libgdiplus/src'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory
> `/home/james/development/MonoProjects/libgdiplus'
> make: *** [all] Error 2
> james at athos libgdiplus $
> 
> Any ideas?
> 
> Thanks very much,
> James Fitzsimons
> 
> -- 
> It's 5.50 a.m.... Do you know where your stack
> pointer is ?
> 
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
>
http://lists.ximian.com/mailman/listinfo/mono-devel-list
> 




More information about the Mono-devel-list mailing list