[Mono-winforms-list] libX11 missing

Paul paul@all-the-johnsons.co.uk
Fri, 18 Mar 2005 12:04:05 +0000


--=-768i9piox7XURUfmwlZQ
Content-Type: text/plain; charset=iso-8859-13
Content-Transfer-Encoding: quoted-printable

Hi,

> The console application test ran fine but Windows.Forms applications
> didn=FFt. I allways run into a problem with libX11. Mono displays the
> folowing message (MonoTest3 application is a Visual Basic Windows
> Application in VS.NET, which should just pop up a message box):

> karnhoffer@linux:~/Documents/mono_test/03> mono MonoTest3.exe

> Unhandled Exception: System.TypeInitializationException: An exception
> was thrown by the type initializer for System.Windows.Forms.XplatUI
> ---> System.DllNotFoundException: libX11

What happens if you compile up the source under mono?

mcs MonoTest3.cs -r:System.Windows.Forms -r:System.Drawing

Can you compile up the following small source (it should effectively do
the same - it produces a popup messagebox)

using System;
using System.Windows.Forms;

namespace WelcomeGUI
{
   class Welcome
   {
      static void Main( string[] args )
      {
         MessageBox.Show( "Welcome\nto\nC#\nprogramming!" );
      }
   }
}

Not sure if it's needed, but have you got the X11-devel package
installed (pop over to YaST to check)?

TTFN

Paul
--=20
"It is often said that something cannot be libel if it is the truth.
This has had to be amended to 'something cannot be libel if it is the
truth or if the bank balance says otherwise'" - US Today

--=-768i9piox7XURUfmwlZQ
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQBCOsO1usSVe5EZv3wRAub5AKCPTp4EIQysgSqUL6atwK5RclAewACfT0tI
OLqAkRX1NW+dfCXb1qFGZX0=
=E+t6
-----END PGP SIGNATURE-----

--=-768i9piox7XURUfmwlZQ--