source: trunk/org.modelica.mdt.ui/doc/ch3.html @ 250

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