How can I get qmake on Mac OS X?

I'm trying to install QtiPlot on Mac OS X, but I can't compile it since qmake isn't known. How can I install qmake on Mac OS X?


Solution 1:

Homebrew version

$ brew install qt

Solution 2:

Just to elaborate for anyone who finds that after installing qt5, can't access qmake in the terminal.

Install QT5 using:

brew install qt5

Then to allow access qmake from the terminal you'll need to run:

brew link qt5 --force