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

Daniel Price daniel.price at fxhome.com
Tue Dec 8 16:14:35 CET 2009


I find the 64-bit version of Qt a godsend on Snow Leopard! Not because I need 64bit but because almost every other library I use builds to 64bit because that's what GCC defaults too now. Working with Boost for example used to be a royal pain when used in conjunction with Qt 4.5 - I had to build it on a Leopard machine and then copy the libraries across.

Nokia do need to work on their website though. The download that starts automatically is for the Carbon version. The link to the Cocoa version is hidden on the automatic download page and it took me some time to find it (the RC1 did not have this problem - they made it very clear what was what). Also the installer should tell you what version you're installing and should support multiple versions.


From: qt-interest-bounces at trolltech.com [mailto:qt-interest-bounces at trolltech.com] On Behalf Of Richard
Sent: 08 December 2009 15:03
To: qt-interest List
Subject: Re: [Qt-interest] Qt SDK 4.6 on OS X 10.6: Compile 64bit possible?


seemed to support my assumption: "Qt follows suit and is also 64-bit by default when building for Cocoa (Select this with the -cocoa flag at the configure line or use the -arch x86_64 flag)."

If you build your app against Qt/Cocoa on Snow Leopard, it should be 64 bit (only) by default (on Leopard it will be 32 bit).


One last question, out of curiosity: I am not yet familiar with "Frameworks", but I understand that the "Cocoa" port supports both 32bit and 64bit applications. Does that mean that there are two distinct libraries lying around "somewhere" for e.g. QtCore? Are they both under /Library/Frameworks/Qt/... (can't remember the exact path right now), something like QtCore32.dynlib and QtCore64.dynlib (names made up by me)? And when deploying my app I also have to make sure which Qt library files to ship along?

The binary found inside the framework contains versions for all the different architectures at the same time. E.g. the /Library/frameworks/QtGui.framework/QtGui binary for the Qt/Cocoa package will contain both i386 and x86_64, and as such, be twize the size of a build that only supported a single architecture.

-Richard


No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 9.0.709 / Virus Database: 270.14.96/2549 - Release Date: 12/07/09 19:34:00

________________________________
This email is confidential. It may also be privileged or otherwise protected by work product immunity or other legal rules. If you are not the intended recipient please notify the sender. Please delete the message from all places in your computer where it is stored. You should not copy the email or use it for any purpose or disclose its contents to any other person.To do so may be unlawful. Email is an informal means of communicating and may be subject to data corruption accidentally or deliberately. For this reason it is inappropriate to rely on advice contained in an email without obtaining written confirmation of it first.

FXhome Limited is a limited company registered in England and Wales. Registered number: 04172812. Registered office: The Henderson Business Centre, Ivy Road, Norwich, Norfolk, NR5 8BF, U.K.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20091208/291ac18c/attachment.html 


More information about the Qt-interest-old mailing list