[Mono-dev] mkbundle2 and libMonoPosixHelper.so
danwalmsley
dan at walms.co.uk
Wed Apr 13 03:03:01 EDT 2011
Hi,
I used mkbundle to generate an all in one executable for Linux, I ran it
on a fresh install of kubuntu, and I get the error
Unhandled Exception: System.TypeInitializationException: An exception was
thrown by the type initializer for Mono.Unix.Native.Syscall --->
System.DllNotFoundException: libMonoPosixHelper.so
at (wrapper managed-to-native) Mono.Unix.Native.Syscall:_L_ctermid ()
at Mono.Unix.Native.Syscall..cctor () [0x00000] in :0
--- End of inner exception stack trace ---
at System.Windows.Forms.XplatUIX11.UpdateMessageQueue
(System.Windows.Forms.XEventQueue queue) [0x00000] in :0
at System.Windows.Forms.XplatUIX11.GetMessage (System.Object queue_id,
System.Windows.Forms.MSG& msg, IntPtr handle, Int32 wFilterMin, Int32
wFilterMax) [0x00000] in :0
at System.Windows.Forms.XplatUI.GetMessage (System.Object queue_id,
System.Windows.Forms.MSG& msg, IntPtr hWnd, Int32 wFilterMin, Int32
wFilterMax) [0x00000] in :0
at System.Windows.Forms.Application.RunLoop (Boolean Modal,
System.Windows.Forms.ApplicationContext context) [0x00000] in :0
at System.Windows.Forms.Application.Run
(System.Windows.Forms.ApplicationContext context) [0x00000] in :0
at System.Windows.Forms.Application.Run (System.Windows.Forms.Form
mainForm) [0x00000] in :0
However if I copy the file /usr/lib/libMonoPosixHelper.so from my build
system to the target (fresh kubuntu install) in the same directory every
thing is working fine.
Is there a problem with mkbundle2 (this also happens with mkbundle)?
Surely we shouldn't have to distribute these library modules alongside our
application? I used the mkbundle2 --deps command to make sure all
dependancies are included.
Dan
--
View this message in context: http://mono.1490590.n4.nabble.com/mkbundle2-and-libMonoPosixHelper-so-tp3446425p3446425.html
Sent from the Mono - Dev mailing list archive at Nabble.com.
More information about the Mono-devel-list
mailing list