Skip to content

Commit

Permalink
updated instructions for compilation using OMDev-mingw package.
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@2307 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
adrpo committed Apr 6, 2006
1 parent 1a5a957 commit 929cdb0
Showing 1 changed file with 66 additions and 14 deletions.
80 changes: 66 additions & 14 deletions README-OMDev-MINGW.txt
@@ -1,6 +1,6 @@
Compiling OMC using OMDev-mingw package
========================================
Adrian Pop, adrpo@ida.liu.se, 2006-02-01
Adrian Pop, adrpo@ida.liu.se, 2006-04-06


1. Get the OMDev package from:
Expand All @@ -12,25 +12,77 @@ Adrian Pop, adrpo@ida.liu.se, 2006-02-01
c:\OMDev-mingw\
+ Follow the instructions in the INSTALL file

3. get the sources from Subversion:
svn co svn://mir20.ida.liu.se/modelica/OpenModelica/trunk/
3. You should have an OpenModelica directory you got
from OpenModelica Subversion repository:
svn co svn://mir20.ida.liu.se/modelica/OpenModelica/trunk/ OpenModelica

4. inside the trunk directory you will find a .project-sample
which you should rename to .project and do whatever modifications
you need on it
4. inside the OpenModelica directory you will find a .project-sample file
which you should rename to OpenModelica/.project and do whatever modifications
you need on it to reflect your paths.

5. rename the file the trunk/.externalToolBuilders/OMDev-MINGW-OpenModelicaBuilder.launch-sample
to trunk/.externalToolBuilders/OMDev-MINGW-OpenModelicaBuilder.launch and do whatever
modifications are needed on it.
5. rename the file the OpenModelica/.externalToolBuilders/OMDev-MINGW-OpenModelicaBuilder.launch-sample
to OpenModelica/.externalToolBuilders/OMDev-MINGW-OpenModelicaBuilder.launch and do whatever
modifications are needed on it to reflect your paths.

5. Open the OpenModelica project in Eclipse
and run the OMDev-MINGW-OpenModelicaBuilder (Ctrl+B in general)
If it doesn't work just edit a file, but back what you edited,
save, then CTRL+B.
6. Setting your Eclipse workspace
Start Eclipse, change workspace to your installation:
- note here that your workspace must point one directory
up the OpenModelica svn directory (for me named OpenModelica)
Example: if you downloaded OpenModelica in a directory like this:
c:\some_paths\dev\OpenModelica then your workspace must point to:
c:\some_patsh\dev\
- The Eclipse restarts

7. Setting your project.
- File -> New -> (Modelica Project) or
File -> New -> Project -> Modelica -> Modelica Project
- Type the name of your OpenModelica directory installation
For me "OpenModelica"
- Say ok.

8. Editing the OMDev-MINGW-OpenModelicaBuilder
- Project->Project Properties->Builders->OMDev-MINGW-OpenModelicaBuilder->Edit
- NOTE: In tab Main you have to change the Working Directory from "OpenModelica" to
your directory name
- Go to Environment tab and change the name of the OMDEV variable from there
to point to your OMDev installation:
c/path/to/your/omdev

9. Running the OMDev-MINGW-OpenModelica builder:
To run the OMDev-MINGW-OpenModelicaBuilder press Ctrl+B.
Then the OMDev-MINGW-OpenModelicaBuilder will start
and compile an OpenModelica/build/omc.exe.

10. Available options for OMDev-MINGW-OpenModelicaBuilder
In the Environment tab of the OMDev-MINGW-OpenModelicaBuilder
you have several variables.
We are interesed in 2 of them:
- OMC_BUILD_FROM set as "mo" or "rml" (without quotes)
+ IF is set to "mo" it will translate your .rml
files to .mo files automatically, then compile the
.mo files
+ IF is set to "rml" it will just compile your .rml files.
- OMC_BUILD_STATIC which is not present in Environment tab
when set to "/static/" (without quotes) will compile a
independent (static) omc.exe.

11. To run the OpenModelica testsuite you have to:
a) copy OMDev/tools/mingw to OpenModelica/build/MinGW
b) copy OMDev/lib/mico-msys-mingw/mico2311.dll to OpenModelica/build/bin
NOTE: Do not use the mico2311.dll from OMDev/bin/mico/ as this one was
compiled with MSVC not with MinGW!
c) copy OMDev/tools/mingw/bin/mingwm10.dll to OpenModelica/build/bin/mingwm10.dll
d) Set your OPENMODELICAHOME to c:\path\to\your\OpenModelica\build
e) run make in the OpenModelica/testsuite directory
you can use MSYS teminal for this if you want:
run OMDev/tools/msys/msys.bat
>export OPENMODELICAHOME="c:\\path\\to\\your\\OpenModelica\\build"
>cd testsuite
testsuite>make

For problems with OMDev package, contact:
Adrian Pop,
adrpo@ida.liu.se

Last Update:2006-03-20
Last Update:2006-04-06

0 comments on commit 929cdb0

Please sign in to comment.