OpenModelica FMI & TLM based simulator
- cmake
- Boost (system, filesystem, program_options)
- 3rdParty subproject
- FMILibrary
- Lua
- PugiXML
- SUNDIALS CVODE
- SUNDIALS KINSOL
-
configure OMSimulator
make config-3rdParty make config-OMSimulator
-
build OMSimulator
make OMSimulator
The following versions of MS Visual Studio are supported:
- MS Visual Studio 2015 [Win64]:
- configWinVS14.bat
- buildWinVS14.bat
- MS Visual Studio 2017 [Win64]:
- configWinVS15.bat
- buildWinVS15.bat
It is not strictly required to install the full Visual Studio IDE. The batch scripts only require the Visual C++ 2015 Build Tools which are also available as a leaner standalone package, which can be downloaded from Microsoft.
-
install boost 1.63 (or 1.64 for VS 2017)
- Download and install precompiled boost libs, e.g. from this source
- Set environment variable
BOOST_ROOT
to install path, e.g:BOOST_ROOT=C:\local\boost_1_63_0
-
configure OMSimulator
configWinVS14.bat
-
build OMSimulator
buildWinVS14.bat
OMSimulator.git is a superproject. Clone the project using:
MY_FORK=MyGitHubUserName ; git clone https://github.com/OpenModelica/OMSimulator.git --recursive && (cd OMSimulator && git remote set-url --push origin https://github.com/$MY_FORK/OMSimulator.git && git submodule foreach --recursive 'git remote set-url --push origin `git config --get remote.origin.url | sed s,^.*/,https://github.com/'$MY_FORK'/,`')
If you are a developer and want to track the latest heads, use:
# After cloning
git submodule foreach --recursive "git checkout master"
# To update; you will need to merge each submodule, but your changes will remain
git submodule foreach --recursive "git pull"
In order to push to the repository, you will push to your own fork of OMSimulator.git, OMSimulator-testsuite.git, etc. You will need to create a fork of each repository that you want to push to (by clicking the Fork button in the GitHub web interface).