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.
It turns out that even though the Mint team make better decisions than the Ubuntu team, they’re not perfect. Hidden away in Mint’s network configuration are the OpenDNS servers set up as a fallback in case your usual DNS servers fail.
Unfortunately, this appears to be interacting oddly with Chrome resulting in the fallback servers being used for all requests. This has been causing all sorts of problems for me recently, most notably some very aggressive blocking of sites for no apparent reason (stackoverflow being one example).
One problem I’ve encountered using Mint (though it’s not actually a Mint issue) is that xfig doesn’t get associated with .fig files. This is compounded by the fact that GNOME 3 (the basis of Cinnamon) always knows better than you, so there is no way to set your own custom file associations—if the application isn’t on the “approved” list it can’t be set.
After some research, I found some useful information and here I’ll describe how to apply it to the xfig situation specifically.
- I will assume that xfig is already installed. If not then install it now (
sudo apt-get install xfig).
- Check that a .desktop file exists to inform the system that xfig is available. To do this run
sudo gedit /usr/share/applications/xfig.desktop and check that the file roughly matches the following. If it is empty then insert the following.
- Set xfig as the default application for .fig files. Run
sudo gedit /usr/share/applications/defaults.list and insert the following anywhere (though locating it with the other “
image/...” entries may be sensible).
- While you’re at it, install
gsfonts-x11 then log out and back in. This will avoid issues with Times, Helvetica, and so on in your images.