Coder Social home page Coder Social logo

Comments (7)

jowr avatar jowr commented on July 4, 2024 1

Thanks for sharing the input - I hope v3.3.0 makes this guide obsolete.

from externalmedia.

greenwoodms06 avatar greenwoodms06 commented on July 4, 2024

The one thing that was missing for me to get this to work was I had to update my gcc from the default 5 to 7 (the default for Ubuntu 18) as I was using Ubuntu 16. The steps to do this are below:

  1. Get and install the gcc version
    sudo add-apt-repository ppa:ubuntu-toolchain-r/test
    sudo apt-get update
    sudo apt-get install gcc-7 g++-7
    gcc-7 --version
    
  2. Add to the version controller to easily switch between versions
    sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 60 --slave /usr/bin/g++ g++ /usr/bin/g++-5 
    sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 --slave /usr/bin/g++ g++ /usr/bin/g++-7 
    sudo update-alternatives --config gcc
    
  3. Now select the gcc version you desire and run make -f makefile-linux

from externalmedia.

sjoelund avatar sjoelund commented on July 4, 2024

I would suggest updating the makefiles to use the CC environment variable so you can switch using make CC=gcc-7 instead of playing with update-alternatives

from externalmedia.

gganapat avatar gganapat commented on July 4, 2024

Any updates for compiling for OSX (High Sierra) for OpenModelica?

from externalmedia.

veeshy avatar veeshy commented on July 4, 2024

Sorry, I haven't tried for OSX, and I jumped to 10.14 where open Modelica won't install via macport right now :(. Nightly prebuilt works, though I haven't tried EM on it.

I think the combination of the correct coolprop listed above and building is your best bet though.

from externalmedia.

gganapat avatar gganapat commented on July 4, 2024

Sorry, I haven't tried for OSX, and I jumped to 10.14 where open Modelica won't install via macport right now :(. Nightly prebuilt works, though I haven't tried EM on it.

I think the combination of the correct coolprop listed above and building is your best bet though.

Thanks for the quick response! For a novice, is there a cheat sheet that can be useful specifically for OSX build? Looks like the make command covers linux.
thanks.

from externalmedia.

sjoelund avatar sjoelund commented on July 4, 2024

You install macports to get gmake and then make OpenModelica in the same way as on Linux. As long as you don't have the new XCode versions (Apple breaks building the binaries in every single release so we have an OSX 10.9 machine creating binaries which still run on newer OSX versions...)

from externalmedia.

Related Issues (20)

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.