[Mono-dev] mono mkbundle made file is Not working

mobin.seven mobin.seven at live.com
Sun Nov 3 07:58:11 UTC 2013

I tried to bundle my app with mkbundle command due to this help:


but I don't understand this part of this doc:
""With -c, the further option --nomain will generate the host.c file without
a main method so that you can embed it as a library in an existing native
application in which you are embedding the Mono runtime yourself. Just call
mono_mkbundle_init() before initializing the JIT to make the bundled
assemblies available.""

which is absolutely what I need to do! I also looked up this doc: 
http://man.he.net/man1/mkbundle2 <http://man.he.net/man1/mkbundle2>  

again the same part:
""You may also use mkbundle to generate a bundle you can use when  embed-
   ding  the Mono runtime in a native application.  In that case, use both
   the -c and --nomain options.  The resulting host.c file will not have a
   main() function.  Call mono_mkbundle_init() before initializing the JIT
   in your code so that the bundled assemblies are available to the embed-
   ded runtime.""

I don't really know what are mono_mkbundle_init() and initializing the
What is my main Problem?
I have bundled an exe with all of its deps in Ubuntu via 'mkbundle' and it
works well there but when I move the bundle to lubuntu it won't work! when
executes nothing happens!
What should I do?

View this message in context: http://mono.1490590.n4.nabble.com/mono-mkbundle-made-file-is-Not-working-tp4661241.html
Sent from the Mono - Dev mailing list archive at Nabble.com.

More information about the Mono-devel-list mailing list