[Mono-winforms-list] Can't get libgdiplus to build from svn.

jba jba-mono@optusnet.com.au
Fri, 29 Apr 2005 16:42:14 +1000


Hi guys,

I think I found the solution.

The autogen.sh for libgdiplus was detecting that I had gif support
installed (because I had libgif3g and libgif3g-dev) installed but it
actually needed libungif4g and libungif4g-dev.

All is well again.

JBA

On Fri, 2005-04-29 at 15:18 +1000, jba wrote:
> Hi guys,
> 
> Just trying to get a little mwf hacking done with what little spare time
> I have at the moment.
> 
> I just svn up'ed mono, mcs and libgdiplus. I did a make, make install
> from mono and then tried to run a standard winforms demo.
> 
> When I run a winforms demo I get this error:
> mono swf-buttons.exe
> Mono System.Windows.Forms Assembly [Revision: 41731; built: 2005/2/15
> 5:56:12]
> 
> Unhandled Exception: System.TypeInitializationException: An exception
> was thrown by the type initializer for System.Windows.Forms.XplatUI --->
> System.Reflection.TargetInvocationException: Exception has been thrown
> by the target of an invocation. ---> System.NotSupportedException:
> Either image format is unknown or you don't have the required libraries
> for this format.
> in <0x0014a> System.Drawing.GDIPlus:CheckStatus (Status status)
> in <0x000ca> System.Drawing.Image:InitFromStream (System.IO.Stream
> stream)
> in (wrapper remoting-invoke-with-check)
> System.Drawing.Image:InitFromStream (System.IO.Stream)
> ...
> 
> I figured it must be a libgdiplus/winforms sync issue. So I updated
> libgdiplus and did a make clean, make distclean and then reautogened and
> did a make.
> 
> When I did make in libgdiplus I got this error:
> 
>  gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../libpixman/src -I../libpixman/src
> -I../cairo/src -I../cairo/src -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 gifcodec.lo -MD -MP
> -MF .deps/gifcodec.Tpo -c gifcodec.c  -fPIC -DPIC -o .libs/gifcodec.o
> gifcodec.c:42: error: syntax error before "OutputFunc"
> gifcodec.c: In function `gdip_gif_fileinputfunc':
> gifcodec.c:87: error: structure has no member named `UserData'
> gifcodec.c: In function `gdip_gif_inputfunc':
> gifcodec.c:94: error: structure has no member named `UserData'
> gifcodec.c: In function `gdip_load_gif_image':
> ...
> 
> Any help here would be much appreciated. Maybe I've been away too long
> and the way things are built has changed ?
> 
> JBA
> 
> _______________________________________________
> Mono-winforms-list maillist  -  Mono-winforms-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-winforms-list