refer to this post compile a xcode project in command line http://stackoverflow.com/questions/377992/building-xcode-projects-from-the-command-line the QMAKESPEC variable was unable to set to macx-g++. i was doing like this in terminal QMAKESPEC=macx-g++ but this still not able to generate a make file of my xcode project for me, so what is the right way to setup the QMAKESPEC environment variable
+1
A:
You forgot to export that variable.
Under bash:
export QMAKESPEC=macx-g++
Kevin Ballard
2009-01-07 04:48:07