[Mono-list] AOT compile a static library.

Rolf Bjarne Kvinge rolf at xamarin.com
Mon Mar 26 22:10:18 UTC 2012


Hi,

On Sun, Mar 25, 2012 at 1:40 PM, Ergwun <geoffbattye at hotmail.com> wrote:

>
> Rolf Bjarne Kvinge-4 wrote
> >
> > No, this is not supported, because there are a lot of things that needs
> to
> > happen behind the scenes for managed code to work properly (it's not just
> > a matter of "export a list of methods to C").
> >
>
> Thanks for your reply Rolf.
>
> We have already made C++ bindings so it can be used in a native C++ project
> on Windows, Mac OS X and Linux that uses mono as a dynamic library and our
> library as a .NET dll, and that works fine. I had hoped a similar approach
> would work on iOS, but obviously we'd need to get rid of any JIT
> compilation
> and dynamic libraries. I figured this is the same problem that Unity and
> MonoTouch have already solved.
>
> Would I be correct in assuming that while not currently supported, this
> method would work in principle, we'll just have to modify Mono ourselves to
> get it done?
>

In theory you can of course make it work. The real question is: how much
effort is it? Unless you have a pretty deep knowledge about mono, it'll
take a while to make it work.


> > You can do the reverse: use native libraries in MonoTouch.
> >
> Since our library is already written in C#, it should already be possible
> to
> use it in MonoTouch as is (maybe a few tweaks - I haven't tried it yet).
>

I believe this is the way to go.

Rolf
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-list/attachments/20120326/eea3301a/attachment.html>


More information about the Mono-list mailing list