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?

6 Answers

Homebrew version

$ brew install qt
7

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
1

Just got it!

  1. Install MacPorts:

  2. On Terminal: sudo port install qt4-mac

Then, I got qmake. You can install qtiplot directly by running: sudo port install qtiplot. Process takes about 3h.

2

The official Qt installer, including qmake, is available from nokia at , but BE CAREFUL:

The so-called "SDK" download, which appears near the top of the page is not what you want. Maddeningly, qmake and other needed tools are available from the "Qt Libraries" download. Scroll down the page and find "Qt libraries". This gets me confused every time I install Qt on the Mac.

0

QMake is part of Qt since 3.0, earlier versions had tMake.

So, either look for tMake instead or install/upgrade your Qt to get QMake, good luck!

4

For installing Qt5 with brew, you can do

brew install qt5

5

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like