[Mono-osx] Redistributable Mac OSX app without mono using mkbundle2

Alexander Shulgin alexander.shulgin at yessoftware.com
Fri May 14 07:24:32 EDT 2010

On 14.05.2010 14:13, dgdw wrote:
> I theory this .app should now run without mono installed. On launching the
> application I get a brief glimpse of the main form and then it closes, so I
> am close but not there yet. On launching from a terminal it appears that my
> application depends on libgdiplus.dylib - However otool does not show this
> to be the case, so I am now completely stumped as to what the next step is
> in order to get this external dependency resolved. Does anyone have any idea
> of how to correct this problem or a work around?

Wow, you are very persistent to say the least :)

The libgdiplus is loaded at runtime by System.Drawing assembly.  So, 
you'll need to ship that with your app too.  To do so you'll need to 
adjust it's deps (and for libjpeg, libpng, etc. too) with 
install_name_tool like you've already did for mono libraries.

Btw, there should be no need to do that for the mono libs: just use 
--static option of mkbundle (but beware of LGPL restrictions).

The version of libgdiplus shipped with mono depends on X11, so your 
users still need to install that from Mac OS installation disc.

Best of luck!

More information about the Mono-osx mailing list