[Qt-interest] Qt 4.6 on OSX - choosing between carbon and cocoa versions?
Richard
richardmg at trolltech.com
Wed Dec 2 14:57:02 CET 2009
> I assume that the Cocoa version of Mac-qt is identical in function
> to the carbon version except that it can be built for 64bit, right?
Correct! But if you need to target Mac OS 10.4 (and ppc), you need to
use the Carbon version. If you need 64-bit support, you need to use
the Cocoa version. If you need both 64-bit and Mac OS 10.4/ppc
support, you must either ship two different versions of your
applications, or build Qt from sources yourself (and specify the
needed configurations to the configure script, e.g. ./configure -arch
x86 -arch ppc -arch x86_64, which will give you cocoa 64-bit, and
carbon 32-bit and carbon ppc 32-bit).
> I ran the installer using the default options – does that mean it
> installed both versions? If so, how do I choose which version to
> link against in my projects?
The Qt-4.6.0 package contains either the cocoa port or the carbon port
of Qt, not both. So it depends on which package you downloaded. The qt-
mac-cocoa-opensource-4.6.0.dmg will be the cocoa port. If you build Qt
from sources, you can specify which configuration to use from within
the project file (.pro), e.g. CONFIG += x86 x86_64 ppc (this will
create a universal binary).
>
> Are there any significant issues outstanding in using the cocoa
> version? I don’t need it AFAIK but I would appreciate the info.
>
Accessibility is not yet implemented. ITOH, the cocoa port includes
multi-touch and gesture support (the carbon port doesn't, unless you
build Qt/Carbon from source on Mac OS 10.6 (the you will get gestures)).
-Richard
More information about the Qt-interest-old
mailing list