Skip to content

Commit

Permalink
add a readme about using own compiled OpenModelica
Browse files Browse the repository at this point in the history
Belonging to [master]:
  - OpenModelica/OMCompiler#2540
  • Loading branch information
adrpo authored and OpenModelica-Hudson committed Jun 28, 2018
1 parent facb5c9 commit ad9df37
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions README-UseOwnCompiledOpenModelica.txt
@@ -0,0 +1,43 @@

Using your own OpenModelica
===========================
Adrian.Pop@liu.se
2018-06-28


Windows:
========
You compiled OpenModelica and now you have a directory called build
inside your OpenModelica cloned repository containing bin, lib and so on.
To use it you need to set two environment variables:
OPENMODELICAHOME=C:\Path\To\OpenModelica\build
OPENMODELICALIBRARY=C:\Path\To\OpenModelica\lib\omlibrary
NOTE: If you don't set these and have another OpenModelica
system installation the dlls and libraries from that
installation will be used and you will have a lot
of issues.

In general I use mingw64 terminal to test omc or OMEdit.
To set the paths and the environment variables each time I
open the mingw64 terminal I have in my .bashrc as last line:
source ~/om.sh
and my om.sh contains:
#--- start om.sh
# set the path to git and svn executables
export PATH=$PATH:/c/bin/git/bin/:/c/bin/jdk/bin:/c/Program\ Files/TortoiseSVN/bin
# set the paths to my own compiled OpenModelica build directory
export OPENMODELICAHOME="c:\\home\\adrpo33\\dev\\OpenModelica\\build"
export OPENMODELICALIBRARY="c:\\home\\adrpo33\\dev\\OpenModelica\\build\\lib\\omlibrary"
echo $OPENMODELICAHOME
echo $OPENMODELICALIBRARY
echo $PATH
#--- end om.sh

Then you can start your mingw64 terminal and start omc or OMEdit from
OpenModelica/build/bin directory.

Linux:
======
On Linux we don't need to set any of the OPENMODELICAHOME or OPENMODELICALIBRARY
as the omc or OMEdit executables know where to use the libraries from via RPATH.

0 comments on commit ad9df37

Please sign in to comment.