This repository was archived by the owner on May 18, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Original file line number Diff line number Diff line change 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+
You can’t perform that action at this time.
0 commit comments