What version of Xcode for MacOS 10.6.8
I have statically compiled Qt latest version on MacOS 10.6.8. The Xcode version is 4.2. Upgrading Xcode to 4.4 does not work since this for MacOS 10.7.
I cannot compile my programs and I think it is the Xcode that is the problem since qmake works fine.
When I do
Quote:
qmake -project
qmake
make
I get this
Quote:
>>g++ -c -pipe -g -arch x86_64 -Xarch_x86_64 -mmacosx-version-min=10.5
>>-Wall
>>-W -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED
>>-I/usr/local/Trolltech/Qt-4.7.2/mkspecs/macx-g++ -I.
>>-I/usr/local/Trolltech/Qt-4.7.2/lib/QtCore.framework/Versions/4/Headers
>>-I/usr/local/Trolltech/Qt-4.7.2/include/QtCore
>>-I/usr/local/Trolltech/Qt-4.7.2/lib/QtGui.framework/Versions/4/Headers
>>-I/usr/local/Trolltech/Qt-4.7.2/include/QtGui
>>-I/usr/local/Trolltech/Qt-4.7.2/include -I. -I.
>>-F/usr/local/Trolltech/Qt-4.7.2/lib -o main.o main.cpp
>>g++ -headerpad_max_install_names -arch x86_64 -Xarch_x86_64
>>-mmacosx-version-min=10.5 -o permucorr.app/Contents/MacOS/permucorr
>>main.o
>>-F/usr/local/Trolltech/Qt-4.7.2/lib -L/usr/local/Trolltech/Qt-4.7.2/lib
>>-framework QtGui -L/usr/local/Trolltech/Qt-4.7.2/lib
>>-F/usr/local/Trolltech/Qt-4.7.2/lib -framework QtCore
What could be happening? Is "make" the one to use with Mac? Is it possible I have some Xcode conflict somewhere.
Re: What version of Xcode for MacOS 10.6.8
It doesn't look like error output.
Re: What version of Xcode for MacOS 10.6.8
Thanks.
It doesn't look like error, I agree. But the *.app generated won't execute no matter which of the below line I use.
Quote:
open myprogram.app
open -a myprogram
Even when I use it with "sudo" or do "chmod 0775 myprogram.app" it still won't execute
The error message is this:
Quote:
LSOpenURLsWithRole() failed with error -10810 for the file
/Users/mymac/Desktop/myprogram/myprogram.app.
What does it mean, why doesn't it run (I know the code is good)?
Thanks for help!
Re: What version of Xcode for MacOS 10.6.8
Can you navigate in the terminal into myprogram.app/Contents/MacOS and run myprogram?
What will you get in the terminal after running?
Re: What version of Xcode for MacOS 10.6.8
Thanks SO much, Spirit. Problem solved!