[Mono-list] mkbundle and dllmaps

Aaron Bockover aaron@aaronbock.net
Tue, 01 Mar 2005 16:57:19 -0500


Hi, I'm trying to bundle my application (Sonance), mainly for kicks,
using mkbundle. I'm using mono-1.1.4.

$ mkbundle -o sonance-bin --deps sonance.exe

This works fine, but running ./sonance-bin gives the following:

Unhandled Exception: System.DllNotFoundException: libgdk-win32-2.0-0.dll
in <0x0004a> (wrapper managed-to-native) Gdk.Threads:gdk_threads_init ()
...

My question is how can I include a dllmap inside the bundle? Running
mono sonance.exe, I can specify a config file using mono --config
<file>. I'm not sure how to get mkbundle to pass a config file to the
internal mono inside the bundle. Is it even possible?

Also, though my managed code will drive on with out it, Sonance uses
libsonance, which is a C library that provides functionality to Sonance
that is not available in managed code. How should I bundle this shared
library?

Thanks,
Aaron Bockover