Giter VIP home page Giter VIP logo

omsimulator's Introduction

OMSimulator

OpenModelica FMI & TLM based simulator

Dependencies

Compilation

Linux

  1. configure OMSimulator

    make config-3rdParty
    make config-OMSimulator
  2. build OMSimulator

    make OMSimulator

Windows (OMDev mingw)

  1. setup OMDev

    • Checkout OMDev (OpenModelica Development Environment) from OpenModelica/OMDev
    • Follow the instructions in OMDev/INSTALL.txt
  2. configure OMSimulator

    make -f Makefile.omdev.mingw config-3rdParty
    make -f Makefile.omdev.mingw config-OMSimulator
  3. build OMSimulator

    make -f Makefile.omdev.mingw OMSimulator

Windows (Visual Studio)

The following versions of Visual Studio are supported:

  • Visual Studio 2015 [Win64]:
    • configWinVS14.bat
    • buildWinVS14.bat
  • 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 Visual C++ Build Tools.

  1. install boost (VS14: 1.63, VS15: 1.64)

    • 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_64_0
  2. configure OMSimulator

    configWinVS15.bat
  3. build OMSimulator

    buildWinVS15.bat

Working with the repository

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).

omsimulator's People

Contributors

adeas31 avatar adrpo avatar bernhard-thiele avatar hyumo avatar lochel avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.