X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=org.simantics.fmil.linux64%2FREADME.md;h=fab74bcdfaf16f01f11a30c259bb53f50831d814;hb=d01d74c2c94987bbeb90e0940a3bf9d419984931;hp=55115971572f40e630dc183040f6e92c72a6a5bc;hpb=b74cf2632ea8a42163add129b4fe8ec36a4f39d1;p=simantics%2Ffmil.git diff --git a/org.simantics.fmil.linux64/README.md b/org.simantics.fmil.linux64/README.md index 5511597..fab74bc 100644 --- a/org.simantics.fmil.linux64/README.md +++ b/org.simantics.fmil.linux64/README.md @@ -1,4 +1,7 @@ -Build FMI Library for Linux: +# Build FMI Library for Linux: + +## Alternative 1 - Manual + Download 2.0.3-src.zip from here http://www.jmodelica.org/FMILibrary Derived guide: http://www.jmodelica.org/page/27916 @@ -20,4 +23,15 @@ Derived guide: http://www.jmodelica.org/page/27916 9) Copy the above files to where you want them (i.e. under org.simantics.fmil.linux64 libraries directory) 10) Repeat steps 3 to 9 for "debug" shared objects, but replace the following steps: "5") cmake -DFMILIB_ENABLE_LOG_LEVEL_DEBUG=ON /path/to/source (note the added param) - "9") Copy the files to libraries/debug directory (instead of libraries) \ No newline at end of file + "9") Copy the files to libraries/debug directory (instead of libraries) + +## Alternative 2 - Docker + +1) Install docker for Linux +2) Build the libraries: +$ docker build -f /path/to/DockerFile/Dockerfile -t t:t . +3) Copy built files to your org.simantics.fmil.linux64 dir: +$ docker run -v :/output t:t +4) Check that the fmil.log and /debug/fmil.log show 100% test success + +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 \ No newline at end of file