|
Hi! I started to test mono on a SuSE 9.2 system. I installed Mono 1.1.4 from RPMs found on mono-project.com. I wrote some test applications under MS VisualStudio .NET and tried to launch them on the Linux machine with Mono. The console application test ran fine but Windows.Forms applications didn’t. 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):
[EMAIL PROTECTED]:~/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.DllNotFoun dException: libX11 in <0x0004a> (wrapper managed-to-native) System.Windows.Forms.XplatUIX11:XOpenDi splay (intptr) in <0x00092> System.Windows.Forms.XplatUIX11:.ctor () in <0x00044> System.Windows.Forms.XplatUIX11:GetInstance () in <0x0004e> System.Windows.Forms.XplatUI:.cctor () --- End of inner exception stack trace ---
in (unmanaged) 0x80861bf in <0x000c4> System.Windows.Forms.Control:get_CreateParams () in <0x0020a> System.Windows.Forms.Control:.ctor () in <0x00014> FormParentWindow:.ctor (System.Windows.Forms.Form) in <0x00029> (wrapper remoting-invoke-with-check) FormParentWindow:.ctor (System.Windows.Forms.Form) in <0x00039> System.Windows.Forms.Form:get_CreateParams () in <0x0003c> MessageBoxForm:get_CreateParams () in <0x0020a> System.Windows.Forms.Control:.ctor () in <0x0000d> System.Windows.Forms.ScrollableControl:.ctor () in <0x0000a> System.Windows.Forms.ContainerControl:.ctor () in <0x00010> System.Windows.Forms.Form:.ctor () in <0x00021> MessageBoxForm:.ctor (System.Windows.Forms.IWin32Window,string,string,System.Windows.Forms.MessageBoxButtons,System.Windows.Forms.MessageBoxIcon) in <0x00057> (wrapper remoting-invoke-with-check) MessageBoxForm:.ctor (System.Windows.Forms.IWin32Window,string,string,System.Windows.Forms.MessageBoxButtons,System.Windows.Forms.MessageBoxIcon) in <0x0002b> System.Windows.Forms.MessageBox:Show (string) in <0x0000c> MonoTest3.Module1:Main ()
I looked for this libX11 stuff. I found some files under /usr/X11R6/lib/. These are libX11.so.6.2 and a symlink to it which is called libX11.so.6. That is all. I searched through the web for this problem but have not find any solution so far. Please help!
Arnhoffer Károly ---------------------------------------- eCron Informatika Kft. 1119 Budapest, Hadak útja 9.
tel.: +36 (1) 203-1535 fax: +36 (1) 203-1536 mobil: +39 (30) 472-8855 e-mail: [EMAIL PROTECTED]
|
- Re: [Mono-winforms-list] libX11 missing Arnhoffer Károly
