source: trunk/doc/ch3.html @ 17

Last change on this file since 17 was 16, checked in by boris, 19 years ago
  • Fixed broken links in the manual.
File size: 1.9 KB
Line 
1<html>
2<body>
3<h1>Building modelica projects</h1>
4
5<div align="right">
6<i>This is tricky.</i><br>&#8211; Adrian Pop
7</div>
8<p>
9Building modelica projects is not supported <i><a href="http://en.wikipedia.org/wiki/Out-of-box_experience">
10out of the box</a></i> right now. However it is possible to
11instruct Eclipse to use an external program for building. This is done by creating a so called
12project builder.
13</p>
14
15<h2 id = "creating_a_builder">Creating a builder</h2>
16
17<p>
18To create a builder, right click a project and select <b>Properties</b>. Select the <b>Builders</b> option
19and then click <b>New...</b> Choose <b>Program</b> as configuration type. On the next screen, enter the path
20to the make binary in <b>Location</b> field. To select the <b>Working Directory</b>,
21click <b>Browse Workspace...</b> and select your project from the list.
22</p>
23<img src="pix/builder_properties_main.png">
24<p>
25If you're building Open Modelica you'll also need to set up some environment variables.
26Click on the <b>Environment</b> tab to view the current variables. To add a new variable, simply
27click <b>New...</b> The variables that are needed for building Open Modelica are ANTLRHOME, CLASSPATH
28and RMLHOME. Refer to the Open Modelica README file for details.
29</p>
30<img src="pix/builder_properties_environment.png">
31<p>
32When you're finished, click <b>OK</b> and close the <b>Properties</b> dialog. Now you have to disable the automatic
33build feature by deselecting <b>Build Automatically</b> in the <b>Project</b> menu item.
34</p>
35<img src="pix/builder_deselect_automatic.png">
36<p>
37Now you can build the project by selecting <b>Build Project</b> from the project context menu which you reach
38by right clicking on the project in the Modelica Projects view. Automatic incremantal building of modelica projects
39is not supported at this time, but stay tuned.
40</p>
41</body>
42</html>
Note: See TracBrowser for help on using the repository browser.