[Mono-list] mkbundle windows 7 x64

Robert Jordan robertj at gmx.net
Wed Oct 16 14:16:23 UTC 2013


On 30.09.2013 15:17, LostTime77 wrote:
>
> Hey guys:
>
> After I was so kindly helped with my previous question, I managed to get
> mkbundle to generate a bundled exe file. How did I manage? I decided to wait
> a few months for some new versions of things and stuff just happened to fix
> itself with the new versions. The only real issue I have is with pkg-config
> and windows not recognizing the single quotes. I replaced those with ...
> "back ticks".
>
> So, I am able to generate that magic exe; however, it doesn't seem to be
> very magic. So much for 'embedding', as I know it now. There are 2 issues.
> The first is that when I run the bundled exe, which simply prints "Hello
> World!" to the console, it prints nothing. Secondly, when I try to run it,
> it says I libmonoboehm-2.0.dll does not exist. I had to put that into the
> same directory as the exe.

Solution for the "it prints nothing" issue:

http://www.mail-archive.com/mono-list@lists.ximian.com/msg31974.html


> Now.. my goal is a SINGLE exe with everything. How can I embed libmonoboehm
> and actually get the exe to work? It seems there is an actual libmonoboehm.a
> file in the libraries folder for mono when you compile stuff together, so
> why is this not getting linked in statically so that I don't need the dll?


You can't get a single .exe under Windows due to a technical
limitation of the Boehm GC: It needs a DLL.

This might not apply to the SGen GC, but I don't even know
if it works under Windows nowadays.

If you'd somehow manage to get a static build, there would be still
an issue with it: because the Mono runtime is licensed under LGPL,
you'd need to obtain a commercial license from Xamarin, unless
your application is licensed under the (L)GPL as well.

Robert




More information about the Mono-list mailing list