E.3. C++/Qt Setup: Mac OSX

[ fromfile: setup-mac.xml id: setup-mac ]

  1. Install xcode from Developer.apple.com.

  2. Install qtsdk from qt.nokia.com.

  3. Run qtcreator from previously installed qtsdk.

[Tip] QMAKESPEC
  • qmake creates xcode projects by default instead of makefiles.

  • Use qmake -spec macx-g++ to generate a command-line Makefile.

  • Put CONFIG -= app_bundle in your .pro file to avoid creating an executable deep in the MacOS app directory structure.

  • If you installed make with fink, read the assistant documentation on how to rebuild / set up your Qt environment properly.