Kemp’s Blog

A technical blog about technical things

Compiling OpenModelica on Mint

When compiling OpenModelica from source on Mint (and possibly on Ubuntu?) the compile cheat sheet in the readme gives working instructions with one exception: several packages, such as libqtwebkit-dev, aren’t installed when you run the sudo apt-get build-dep openmodelica step. I had to use the following commands from the text further down the readme to get everything needed:

sudo apt-get install antlr libantlr-dev
sudo apt-get install libreadline-dev libqt4-dev libqtwebkit-dev libqwt5-qt4-dev
sudo apt-get install sqlite3 libsqlite3-dev

Note that I had to use to libreadline-dev instead of libreadline5-dev. Either way, that particular package was already installed, but I’ve left it here for completeness as the others on the same line weren’t.

I also needed to install bison and flex for the testsuite (not mentioned in the build instructions).

There may be other packages required that I already had installed, so my advice would be to install all of the packages they suggest rather than relying on build-dep.