We do something similar to build parallel OTP for different architectures, although our packaging system assembles the release for the system you run it on, and then overwrites any native artefacts of the VM (i.e., shared object files and headers) for the target OS/architecture if required. This seems to work fine, although it's worth baring in mind that some releases include other stuff besides erts that is platform dependant. <br>
<br><div class="gmail_quote">On 8 December 2011 15:58, Dmitry Kolesnikov <span dir="ltr"><<a href="mailto:dmkolesnikov@gmail.com">dmkolesnikov@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div bgcolor="#FFFFFF"><div>Hi,</div><div><br></div><div>Yes, release is the right thing. </div><div>Just keep in mind that your release would contain platform dependent VM. If you create it on mac then you cannot run it on Linux. Thus you would need to run Linux in VirtualBox on your Mac to assemble a distributable releases.<div>
<div class="h5"><br><br>On 8.12.2011, at 12.55, Ahmed Omar <<a href="mailto:spawn.think@gmail.com" target="_blank">spawn.think@gmail.com</a>> wrote:<br><br></div></div></div><div><div class="h5"><div></div><blockquote type="cite">
<div>Hi Albin, <div>Yes it's the right place :)</div><div>What you are looking for is releases. You can create a release and include the erlang runtime system (erts) executables within it. You can also include any erlang app you have, like couchdb.</div>
<div><br></div><div>For more information about that i suggest you take a look at : </div><div><a href="http://www.erlang.org/doc/design_principles/release_structure.html" target="_blank"></a><a href="http://www.erlang.org/doc/design_principles/release_structure.html" target="_blank">http://www.erlang.org/doc/design_principles/release_structure.html</a></div>
<div><a href="http://learnyousomeerlang.com/release-is-the-word" target="_blank"></a><a href="http://learnyousomeerlang.com/release-is-the-word" target="_blank">http://learnyousomeerlang.com/release-is-the-word</a><br><br>
<div class="gmail_quote">On Thu, Dec 8, 2011 at 11:27 AM, Albin Stigö <span dir="ltr"><<a href="mailto:albin.stigo@gmail.com" target="_blank"></a><a href="mailto:albin.stigo@gmail.com" target="_blank">albin.stigo@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I'm quite new to Erlang and this list so I hope I'm posting in the right place?<br>
<br>
I would like to use Erlang code (couchdb) in an Mac OS X app I'm<br>
developing and I would like to bundle it with my app. Exactly like the<br>
Mac OS X version of Wings3D is bundling a version of erlang.<br>
<br>
I was wondering if someone kind provide me with some ideas of how to<br>
compile a smaller version of the Erlang VM without the developing<br>
tools etc?<br>
<br>
Cheers,<br>
Albin<br>
_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org" target="_blank"></a><a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank"></a><a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Best Regards,<br>- Ahmed Omar<div><a href="http://nl.linkedin.com/in/adiaa" target="_blank"></a><a href="http://nl.linkedin.com/in/adiaa" target="_blank">http://nl.linkedin.com/in/adiaa</a></div>
<div>Follow me on twitter</div>
<div><a href="http://twitter.com/#!/spawn_think" target="_blank">@spawn_think</a></div><br>
</div>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>erlang-questions mailing list</span><br><span><a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a></span><br>
<span><a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a></span><br></div></blockquote></div></div></div><br>_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
<br></blockquote></div><br>