]> gerrit.simantics Code Review - simantics/fmil.git/blob - org.simantics.fmil.linux64/README.md
Add gitignore that ignores vaadin preferences
[simantics/fmil.git] / org.simantics.fmil.linux64 / README.md
1 # Build FMI Library for Linux:
2
3 ## Alternative 1 - Manual
4
5 Download 2.0.3-src.zip from here http://www.jmodelica.org/FMILibrary
6 Derived guide: http://www.jmodelica.org/page/27916
7
8 1) Download cmake (apt-get install -y cmake)
9 2) Unzip the source file to a source directory (/path/to/source)
10 3) Make an empty build directory (mkdir /path/to/build)
11 4) Change directory to the build directory
12 5) cmake /path/to/source
13 6) make
14 7) make install test
15         7.1) If tests fail, look at the error and fix it
16         7.2) Otherwise move on to step 8.
17 8) Under your build directory should be five files:
18         - libfmu1_dll_me.so
19         - libfmu2_dll_me.so
20         - libfmu1_dll_cs.so
21         - libfmu2_dll_cs.so
22         - libfmilib_shared.so
23 9) Copy the above files to where you want them (i.e. under org.simantics.fmil.linux64 libraries directory)
24 10) Repeat steps 3 to 9 for "debug" shared objects, but replace the following steps:
25         "5") cmake -DFMILIB_ENABLE_LOG_LEVEL_DEBUG=ON /path/to/source (note the added param)
26         "9") Copy the files to libraries/debug directory (instead of libraries)
27         
28 ## Alternative 2 - Docker
29
30 1) Install docker for Linux
31 2) Build the libraries:
32 $ docker build -f /path/to/DockerFile/Dockerfile -t t:t .
33 3) Copy built files to your org.simantics.fmil.linux64 dir:
34 $ docker run -v <absolute_path_to_org.simantics.fmil.linux64>:/output t:t
35 4) Check that the fmil.log and /debug/fmil.log show 100% test success
36         
37 Note: To build another version of the FMILibrary than the default "FMILibrary-2.0.3", you should rename all occurences of "FMILibrary-2.0.3" in Dockerfile/Dockerfile