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

Kelly Leahy kellyleahy at swbell.net
Sun Dec 5 11:26:59 EST 2004


I've done a couple of different things to solve this
problem, you can do either.

1) edit the Makefile (after doing ./configure) so that
-Werror is not used as a command line option to GCC.

2) edit the gdip_win32.h file to #define __stdcall to
nothing rather than __attribute(__stdcall__).

I prefer #2.

Kelly

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

> Hi all,
> 
> I can't seem to build libgdiplus (any version) on my
> system.
> 
> When I try building the current version from SVN 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
> bitmap.lo -MD -MP -MF
> .deps/bitmap.Tpo -c bitmap.c  -fPIC -DPIC -o
> .libs/bitmap.o
> In file included from bitmap.c:29:
> gdip_win32.h:146: warning: `__stdcall__' attribute
> ignored
> gdip_win32.h:147: warning: `__stdcall__' attribute
> ignored
> gdip_win32.h:148: warning: `__stdcall__' attribute
> ignored
> gdip_win32.h:150: warning: `__stdcall__' attribute
> ignored
> gdip_win32.h:152: warning: `__stdcall__' attribute
> ignored
> gdip_win32.h:153: warning: `__stdcall__' attribute
> ignored
> gdip_win32.h:154: warning: `__stdcall__' attribute
> ignored
> gdip_win32.h:156: warning: `__stdcall__' attribute
> ignored
> gdip_win32.h:157: warning: `__stdcall__' attribute
> ignored
> gdip_win32.h:159: warning: `__stdcall__' attribute
> ignored
> gdip_win32.h:160: warning: `__stdcall__' attribute
> ignored
> gdip_win32.h:161: warning: `__stdcall__' attribute
> ignored
> gdip_win32.h:170: warning: `__stdcall__' attribute
> ignored
> make[2]: *** [bitmap.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
> 
> This has come up once before on the list, however
> there was no
> resolution posted to the list.
> 
> Can anyone point me in the right direction?
> 
> Cheers,
> 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