[Qt-interest] Qt 4.4, Snow Leopard & QMAKE_COMP_QMAKE_OBJECTIVE_CFLAGS

Dave Thorup lists at kuwan.net
Tue Sep 8 20:12:25 CEST 2009


On Sep 8, 2009, at 10:18 AM, Mike Jackson wrote:

> You might try configuring Qt with the -sdk flag. Might help.

I included my Qt configuration parameters in the first post of the  
thread:

./configure -nomake demos -nomake examples -dwarf2 -sdk /Developer/ 
SDKs/MacOSX10.4u.sdk -universal -no-webkit -no-phonon -no-dbus

The -sdk flag was set to the 10.4 SDK.  The problem seems to be that  
the -sdk flag is not used when compiling Objective-C++ files.  When  
these files are compiled under 10.6 they then use the 10.6 SDK instead  
of the 10.4 SDK that has been specified and it appears that the 10.6  
SDK is not compatible with GCC 4.0.  This results in compile errors in  
some of the System headers in the 10.6 SDK.

> Also by using the 10.4 SDK you are LIMITING yourself to a 10.4 ONLY
> installation. You app may or may not run under 10.5 or 10.6. What you
> _really_ want to do is set the -mmacosx-version-min is probably what
> you are looking for. And combined with the 10.5SDK for PPC
> compatibility if that is also what you are wanting.

This is incorrect.  Setting the SDK to 10.4 only limits you to  
functions that were available in 10.4.  Your app will still run on  
10.5, 10.6 and later unless Apple decides to remove API functionality  
from a future OS release which, as far as I am aware, they have not  
done (though some functions have been marked as deprecated).  The only  
way that you are limited by setting the SDK to an earlier Mac OS X  
version is that you are not able to use APIs that were introduced in  
later Mac OS X releases.  It does not limit you from running on future  
Mac OS X releases.

We also use the -mmacosx-version-min flag (which you can also set with  
the MACOSX_DEPLOYMENT_TARGET environment variable).  We set this  
currently to 10.3, but will be changing it to 10.4 as we are no longer  
targeting 10.3.
--
Dave Thorup
Software Engineer
http://bibblelabs.com




-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090908/feb14ab9/attachment.html 


More information about the Qt-interest-old mailing list