Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to set include directory for rebar

Tags:

erlang

rebar

In my module I have

-include("blah.hrl").

The .hrl file is not in the module's directory, but somewhere else on my system. How can I make rebar find it when compiling? Is there a way to add a path to the include directory in rebar.config?

like image 987
akonsu Avatar asked Sep 12 '13 04:09

akonsu


People also ask

How do I create rebar sets?

You can create rebar sets when you want to flexibly reinforce various areas in concrete parts or pour objects. You have several options for creating rebar sets: longitudinal bars, crossing bars, planar bars, and bars by point input. Longitudinal, crossing, and planar rebar sets are attached and adaptive to a concrete part or pour object.

How do I view rebar elements in a project?

Rebar elements are not visible unless you create a section view of the host element. Schedule every rebar in a project. Hosted Structural Rebar creates rebar sets if possible.

How to show or hide the guidelines when selecting rebar sets?

To show or hide the guidelines when you select rebar sets in the model, go to the Concrete tab and click Rebar display options > Guideline visibility. Alternatively, you can use the advanced option XS_REBARSET_SHOW_GUIDELINES or the keyboard shortcut Alt+2.

How to modify rebar properties to assign hooks?

After placing rebar in a host, you can modify rebar properties to assign hooks. Rebar hooks have a matrix relationship between the hook angle and rebar size. The rebar hook type comprises a defined hook angle and initial hook length.


1 Answers

{erl_opts, [{i, PathToIncludeFile}]}.

in rebar.config should do the thing. Or append {i, ...} to the existing erl_opts, if you have any.

like image 149
demeshchuk Avatar answered Sep 23 '22 11:09

demeshchuk