<div><div>Hello, </div><div><br></div><div>I trying to write my first non trivial Erlang/OTP application and</div><div>looking for the best approach for organizing and managing</div><div>dependencies during development.</div>
<div><br></div><div>So far there has been a single dependency for the project which</div><div>is the exmpp library[1]. Upon installing exmpp, it copied</div><div>compiled code to the search path (/usr/lib/erlang/lib/) so I did</div>
<div>not have to care while using it in my code.</div><div><br></div><div>But now I need to use erlang-mysql-driver[2] too and it doesn't</div><div>come with an installation script like exmpp that would copy</div><div>
compiled files to the search path. </div><div><br></div><div>Presently I can think of following ways to fix this:</div><div><br></div><div>1. Add hard coded paths of src & include dirs of the libraries in </div><div>my Emakefile (disadvantage: wouldn't work on other machines)</div>
<div><br></div><div>2. Compile the code from the libraries and copy the beam files</div><div>over to the ebin dir of my project. I need to do this only once</div><div>as I don't plan to change their code.</div><div><br>
</div><div>3. Add search paths to the command every time while starting the</div><div>shell.</div><div><br></div><div><div>Does rebar handle this and should I be using it instead of the </div><div>Emakefile?</div></div><div>
<br></div><div>Sorry if my questions are not clear, I am really confused about this :-)</div><div><br></div><div>[1] <a href="https://github.com/processone/exmpp">https://github.com/processone/exmpp</a></div><div>[2] <a href="https://github.com/dizzyd/erlang-mysql-driver">https://github.com/dizzyd/erlang-mysql-driver</a></div>
<div><br></div><div>Thanks, </div><div>Vineet</div></div><div><br clear="all"><div><br></div><br>
</div>