[Mono-list] Problem with preview, I'd say Ubuntu 6.06.1

Carlos Adriano Portes xcap2000 at gmail.com
Thu May 3 22:00:22 EDT 2007


Hi people I need help with compiling mono preview (the latest) on
ubuntu 6.06.1, it compiles with no problem, the problem is when
executing binaries it shows the following message:

Unhandled Exception: System.TypeInitializationException: An exception
was thrown by the type initializer for System.Windows.Forms.XplatUI
---> System.TypeInitializationException: An exception was thrown by
the type initializer for System.Drawing.GDIPlus --->
System.DllNotFoundException: gdiplus.dll
  at (wrapper managed-to-native) System.Drawing.GDIPlus:GdiplusStartup
(ulong&,System.Drawing.GdiplusStartupInput&,System.Drawing.GdiplusStartupOutput&)
  at System.Drawing.GDIPlus..cctor () [0x00000] --- End of inner
exception stack trace ---

  at <0x00000> <unknown method>
  at System.Drawing.Graphics.FromHdcInternal (IntPtr hdc) [0x00000]
  at System.Windows.Forms.XplatUIX11.SetDisplay (IntPtr
display_handle) [0x00000]
  at System.Windows.Forms.XplatUIX11..ctor () [0x00000]
  at System.Windows.Forms.XplatUIX11.GetInstance () [0x00000]
  at System.Windows.Forms.XplatUI..cctor () [0x00000] --- End of inner
exception stack trace ---

  at <0x00000> <unknown method>
  at System.Windows.Forms.Application.EnableVisualStyles () [0x00000]
  at Teste12.Program.Main () [0x00000]
adriano at adriano-desktop:~$ ldconfig -p | grep libgdiplus
        libgdiplus.so.0 (libc6) => /usr/lib/libgdiplus.so.0
        libgdiplus.so (libc6) => /usr/lib/libgdiplus.so
adriano at adriano-desktop:~$ sudo ldconfig -p | grep libgdiplus
Password:
        libgdiplus.so.0 (libc6) => /usr/lib/libgdiplus.so.0
        libgdiplus.so (libc6) => /usr/lib/libgdiplus.so

But when compiling there is no error and bellow the messages of
./configure --prefix=/usr

        mcs source:  $(top_srcdir)/mcs
        GC:          included
        TLS:         __thread
        SIGALTSTACK: no
        Engine:      Building and using the JIT
        2.0 Alpha:   yes
        JNI support: IKVM Native
        libgdiplus:  assumed to be installed
        zlib:        system zlib

Is there something wrong?


More information about the Mono-list mailing list