[Mono-list] New: cross-compiling with mkbundle
opcon
frozen.dinosaur at gmail.com
Fri Aug 19 00:33:39 UTC 2016
Hi Miguel,
I have 2 questions about the new mkbundle:
1) Will the new cross-platform mode support embedding the machine config?
My program uses web connections which relies on the configuration in
machine.config, however when I bundle a program with:
mkbundle --cross {target} --machine-config {path-to-machine.config} ....
app.exe app-native
and then try to run the output, I get the following error:
Unknown stream on embedded package: machineconfig:
2) Cross-compiling for macOS from Linux produces an ELF binary, rather than
a Mac binary (Mach-0?).
Is this happening because I haven't specified a runtime, just a
cross-compilation target?
Thanks,
Patrick
Miguel de Icaza via Mono-list wrote
> Hello folks,
>
> The new mkbundle tool in Mono no longer requires an installed compiler,
> and you can use it to cross compile.
>
> Would love to get some feedback from you guys.
>
> First, get a list of all cross-platform targets available, like this:
>
> mkbundle –list-targets
>
> Then, find out which version of Mono you have on your system:
>
> mono –version
>
> Use this to pick the right version and fetch it, for example, to cross
> compile to Linux/64 from a Mac do:
>
> mkbundle –fetch-target 4.4.2-linux-libc2.13-amd64
>
> Repeat for as many cross-platform targets as wanted.
>
> Now take your executable that you want to bundle and bundle it up for this
> platform:
>
> mkbundle –cross 4.4.2-linux-libc2.13-amd64 demo.exe demo-native
>
> Now, you can copy that “demo-native” executable to your Linux machine and
> run it.
>
> I have done very minimal testing on this, and some features are missing,
> things that I want to add:
>
> · Ship native libraries
>
> · Add support for shipping the LLVM runtime as an option
>
> · Add support to target different Mono versions, not just the same
> you have installed
>
> Miguel.
>
>
> _______________________________________________
> Mono-list maillist -
> Mono-list at .dot
> http://lists.dot.net/mailman/listinfo/mono-list
--
View this message in context: http://mono.1490590.n4.nabble.com/New-cross-compiling-with-mkbundle-tp4668362p4668467.html
Sent from the Mono - General mailing list archive at Nabble.com.
More information about the Mono-list
mailing list