[Qt-interest] Qt SDK 4.6 on OS X 10.6: Compile 64bit possible?

Richard richardmg at trolltech.com
Tue Dec 8 10:12:21 CET 2009


On Dec 7, 2009, at 5:47 PM, <Oliver.Knoll at comit.ch> <Oliver.Knoll at comit.ch 
 > wrote:

> Hi,
>
> first off all, yesterday I succeeded in compiling my first  
> application (actually only part of it, a shared library aka  
> "dynlib") on my new Mac OS X, yay! :)
>
> But I had a few obstacles: my first basic question (before I come up  
> with new ones): Is it possible to build 64 bit applications when  
> using the pre-compiled Qt SDK based on Qt 4.6 (the latest one) (on  
> Mac OS 10.6, for that matter)? Does it provide support for both 32  
> and 64 bit apps? I could not find anything on the web which would  
> confirm that so far.

The SDK ships with Qt Creator, which is 'deployed', meaning it  
contains its own version of Qt regardless of what version of Qt you  
end up installing/uninstalling on your system. In addition, the SDK  
installs a carbon version of Qt on your system (universal: i386 and  
ppc). If you would like to develop 64-bit applications, just uninstall  
Qt (/Developer/Tools/uninstall_qt.py), and install the cocoa version  
instead. This will not affect Qt Creator in any way (which itself be  
unistalled with /Developer/Tools/uninstall_qtsdk.py).

You can only have one version of Qt installed at a time when using the  
_binary_ package. If you want both the Carbon and the Cocoa port  
awailable at the same time, you need to build at least one of them  
from sources yourself.

-Richard





More information about the Qt-interest-old mailing list