]> gerrit.simantics Code Review - simantics/fmil.git/blob - org.simantics.fmil.linux64/README.md
Changed FMIL core and fragments logic to properly find files
[simantics/fmil.git] / org.simantics.fmil.linux64 / README.md
1 Build FMI Library for Linux:
2 Download 2.0.3-src.zip from here http://www.jmodelica.org/FMILibrary
3 Derived guide: http://www.jmodelica.org/page/27916
4
5 1) Download cmake (apt-get install -y cmake)
6 2) Unzip the source file to a source directory (/path/to/source)
7 3) Make an empty build directory (mkdir /path/to/build)
8 4) Change directory to the build directory
9 5) cmake /path/to/source
10 6) make
11 7) make install test
12         7.1) If tests fail, look at the error and fix it
13         7.2) Otherwise move on to step 8.
14 8) Under your build directory should be five files:
15         - libfmu1_dll_me.so
16         - libfmu2_dll_me.so
17         - libfmu1_dll_cs.so
18         - libfmu2_dll_cs.so
19         - libfmilib_shared.so
20 9) Copy the above files to where you want them (i.e. under org.simantics.fmil.linux64 libraries directory)
21 10) Repeat steps 3 to 9 for "debug" shared objects, but replace the following steps:
22         "5") cmake -DFMILIB_ENABLE_LOG_LEVEL_DEBUG=ON /path/to/source (note the added param)
23         "9") Copy the files to libraries/debug directory (instead of libraries)