Question

Refer to this post compile a Xcode project in command line Building Qt 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.

What is the right way to setup the QMAKESPEC environment variable?

Was it helpful?

Solution

You forgot to export that variable.

Under bash:

export QMAKESPEC=macx-g++

OTHER TIPS

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top