tags:

views:

1256

answers:

2

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
A: 

yes i did it, export QMAKESPEC=macx-g++ when i write the command $QMAKESPEC it return the result mac-g++ command not found