How to build GNU Octave with Qt5 on the Mac

1503512The graphical user interface of Octave 4.0 can only be compiled with Qt4. Homebrew is dropping 4.x support and moving towards 5.x. Several Octave dependencies have already been updated (e.g. Qscintilla2, see e.g. this issue. However, the upcoming Octave 4.2 (release is scheduled for September 2016) will have full Qt5 as discussed here.

The standard installation uses the command line interface. If you need Octave with graphical user interface then this should work
brew update 
brew upgrade #to get the latest qscintilla
brew install octave --with-gui --HEAD
Update: The post has been edited on Aug 20 since the new formula is now available in homebrew’s science repository.

New versions of Gmsh and GetDP

taken from http://geuz.org/gmsh/gallery/screenshot.pngAbout one week ago new versions of Gmsh (2.10) and GetDP (2.6) were released. Mac users can either download the binaries or compile their own build.
Homebrew science has the most recent versions:
brew tap homebrew/science
brew install --build-from-source gmsh
brew install --build-from-source getdp
The more advantageuous may also add the switch --HEAD to build snapshots from the development repositories.

Compile ONELAB on the Mac

ONELAB is an interface to finite element software, i.e., Gmsh and GetDP, for engineering applications. Homebrew science has been updated such that you can easily compile your own build on the Mac (after having installed brew):

> brew tap homebrew/science
> brew install gmsh --HEAD --with-fltk --with-petsc --with-slepc --with-opencascade
> brew install getdp --HEAD --with-petsc --with-slepc