[Mono-dev] customized mono embedding on osx

Paolo Molaro lupus at ximian.com
Wed Sep 14 14:16:49 EDT 2005

On 09/13/05 Davide Morelli wrote:
> I need to embed mono into an OSX application.
> Following these tips http://www.go-mono.com/embedded-api.html I can compile
> my osx application that uses mono embedded to draw on a CGContextRef.
> I am using a customized version of the GAC (I customized System.Drawin.dll
> and libgdiplus.dylib).
> I'd want all the mono runtime (and GAC) into the application bundle (being a
> customized mono I don't want to isntall it on the end-user system).

You could still install them in their own dir, by setting the
MONO_GAC_PREFIX env var. This is preferable to bundling.

> Question number 1: How should I compile mono to give libmono.0.dylib the
> install_name @application_path ?
> I've tryied with ./configure --prefix=@application_path but configure
> returns an error

Well, if you don't provide the error, we can't tell you what error you
did while configuring. Anyway, I have no idea what "give libmono.0.dylib
the install_name @application_path" means in the context of using
--prefix. --prefix is used to install and make the runtime lookup its
files from directories under the give prefix.

> Question number 2 (Very dumb question): How to ship all the (customized) GAC
> with the embedded mono inside the bundle?

Reading the mkbundle manpage or the mkbundle usage lines may be helpful:
just include all the assemblies to bundle on the command line or use the
--deps option to include all the referenced assemblies.


lupus at debian.org                                     debian/rules
lupus at ximian.com                             Monkeys do it better

More information about the Mono-devel-list mailing list