« Home | American Express continues to slash credit lines (... » | Is the tech recession over or over-blown? » | Travel: Water Purification for Travelers (Part 3) » | Travel: Water Treatment and Purification Options f... » | Travel: Avoiding Water Borne Illness (Part 1) » | How do I set ssh session or serial terminal to aut... » | Nokia to License Qt 4.5 Under LGPL » | My GTD Implementation with a Day Timer » | Back in the U.S. » | Happy Holidays everyone.   »

How to force qmake to stop generating an XCode project and generate a gcc makefile instead

Problem: Under OS X, qmake automatically generates an XCode project from a qmake project file.  How do I force it to make a standard gcc makefile?

Unless you have configured Qt when you build it, the default under Mac OS X is to generate an XCode project.  The way to generate a "standard" gcc makefile is to pass the "-spec macxg++" switches on the command line:

   1: qmake -spec macx-g++ 

Additionally, you should place the following into your project file in order to stop it from generating the app_bundle:

   1: mac { 
   2:   CONFIG -= app_bundle 
   3: }

Labels: , ,

Thanks man!

Post a Comment