Skip to content
This repository was archived by the owner on May 18, 2019. It is now read-only.

Commit ad9df37

Browse files
adrpoOpenModelica-Hudson
authored andcommitted
add a readme about using own compiled OpenModelica
Belonging to [master]: - #2540
1 parent facb5c9 commit ad9df37

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
2+
Using your own OpenModelica
3+
===========================
4+
Adrian.Pop@liu.se
5+
2018-06-28
6+
7+
8+
Windows:
9+
========
10+
You compiled OpenModelica and now you have a directory called build
11+
inside your OpenModelica cloned repository containing bin, lib and so on.
12+
To use it you need to set two environment variables:
13+
OPENMODELICAHOME=C:\Path\To\OpenModelica\build
14+
OPENMODELICALIBRARY=C:\Path\To\OpenModelica\lib\omlibrary
15+
NOTE: If you don't set these and have another OpenModelica
16+
system installation the dlls and libraries from that
17+
installation will be used and you will have a lot
18+
of issues.
19+
20+
In general I use mingw64 terminal to test omc or OMEdit.
21+
To set the paths and the environment variables each time I
22+
open the mingw64 terminal I have in my .bashrc as last line:
23+
source ~/om.sh
24+
and my om.sh contains:
25+
#--- start om.sh
26+
# set the path to git and svn executables
27+
export PATH=$PATH:/c/bin/git/bin/:/c/bin/jdk/bin:/c/Program\ Files/TortoiseSVN/bin
28+
# set the paths to my own compiled OpenModelica build directory
29+
export OPENMODELICAHOME="c:\\home\\adrpo33\\dev\\OpenModelica\\build"
30+
export OPENMODELICALIBRARY="c:\\home\\adrpo33\\dev\\OpenModelica\\build\\lib\\omlibrary"
31+
echo $OPENMODELICAHOME
32+
echo $OPENMODELICALIBRARY
33+
echo $PATH
34+
#--- end om.sh
35+
36+
Then you can start your mingw64 terminal and start omc or OMEdit from
37+
OpenModelica/build/bin directory.
38+
39+
Linux:
40+
======
41+
On Linux we don't need to set any of the OPENMODELICAHOME or OPENMODELICALIBRARY
42+
as the omc or OMEdit executables know where to use the libraries from via RPATH.
43+

0 commit comments

Comments
 (0)