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: cpp, Mac OS X, Programming
Thanks man!
Posted by
Anonymous |
March 24, 2009 7:58 PM