One of my colleagues whom I introduced rebar to asked me this.<br>Since I am out of depth in erlang matters rather quickly, hoping someone here can help<br><div class="gmail_quote"><br>------------------<br><div>The difficulty is with using Rebar with Erlang. I am using the following versions:</div>
<div>Erlang-(R15B01)</div><div>rebar 2.1.0-pre R15B01 </div><div><br></div><div>Q 1> Is this an incompatible combination?</div>
<div><br></div><div>I am having difficulties with './rebar -v generate'. I tried varied fudges with</div><div>the reltool.config, but am unable to build an embedded node with my app.</div><div><br></div>
<div><br></div><div>My dir tree:</div><div>myproj/apps/myapp</div><div>myproj/rel</div><div>myproj/rel/reltool.config</div><div>myproj/rebar.config</div><div>myproj/rebar</div><div><br></div><div>myproj/rel directory tree generated with:</div>
<div>./rebar create-node nodeid=myapp</div><div><br></div><div>rebar.config has a single line:</div><div> {sub_dirs, ["apps/myapp", "rel"]}.</div><div><br>reltool.config is:</div><div> {sys, [ {lib_dirs , ["../apps"]},</div>
<div> {erts, [{mod_cond, derived}, {app_file, strip}]},</div><div> {rel, "", "1",[myapp,kernel,stdlib,sasl ]},</div><div> {rel, "start_clean", "",[kernel,stdlib ]},</div>
<div> {boot_rel, "myapp"},</div><div> {relocatable, true},</div><div> {profile, embedded},</div><div> {incl_cond, exclude},</div><div> {app, sasl, [{incl_cond, include}]},</div><div>
{app, stdlib, [{incl_cond, include}]},</div><div> {app, kernel, [{incl_cond, include}]},</div><div> {app, hipe, [{incl_cond, exclude}]},</div><div> {app, myapp, [{mod_cond, app}, {incl_cond, include}]}</div>
<div> ]}.</div><div><br></div><div>Q2> I find that the embedded node is not being generated.</div><div> Can someone guide me to a solution (or the right forum) to raise this question</div><div> for a newbie?</div>
<br>
</div><br>