Results 1 to 2 of 2

Thread: Installing QT4.7 for Cocoa

  1. #1
    Join Date
    Jun 2010
    Posts
    26
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Installing QT4.7 for Cocoa

    Hi, I have previously been using QT4.7 with Carbon on Leopard; now I am running Snow Leopard and want to use Cocoa based QT, both 32 and 64 bit.

    I installed the QT SDK 4.7 for Mac because I found some posts that suggested it contained the Cocoa based framework (it didn't seem to). I went on to install the 4.7.1 binary framework for Cocoa. However when I check it seems to be Carbon still :

    Qt Code:
    1. $ otool -L /Library/Frameworks/QtGui.framework/QtGui
    2. /Library/Frameworks/QtGui.framework/QtGui:
    3. QtGui.framework/Versions/4/QtGui (compatibility version 4.7.0, current version 4.7.1)
    4. QtCore.framework/Versions/4/QtCore (compatibility version 4.7.0, current version 4.7.1)
    5. /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon (compatibility version 2.0.0, current version 152.0.0)
    6. /usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.3)
    7. /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit (compatibility version 45.0.0, current version 1038.32.0)
    8. /usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 7.9.0)
    9. /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 625.0.0)
    10. /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 125.2.0)
    11. /usr/lib/libobjc.A.dylib (compatibility version 1.0.0, current version 227.0.0)
    12. /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices (compatibility version 1.0.0, current version 44.0.0)
    13. /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 550.29.0)
    14. /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices (compatibility version 1.0.0, current version 38.0.0)
    15. /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation (compatibility version 300.0.0, current version 751.29.0)
    To copy to clipboard, switch view to plain text mode 

    Do I have to build QT from source myself ?

  2. #2
    Join Date
    Jun 2010
    Posts
    26
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Installing QT4.7 for Cocoa

    I didn't know that Cocoa = AppKit + Foundation, therefore there are Cocoa dependencies in the library. Also, it appears that this is a universal binary, 32 bit using Carbon and 64 bit using Cocoa.

    If I am going to use 32 bit Cocoa I will have to compile it myself or wait until QT uses Cocoa by default.

    Problem solved.

Similar Threads

  1. Replies: 1
    Last Post: 22nd September 2010, 12:41
  2. Precompiled libs - Cocoa - ppc/i386/x86_64 ??
    By n9yty in forum Installation and Deployment
    Replies: 0
    Last Post: 29th July 2010, 16:49
  3. Qt standalone application with Cocoa Library Crash
    By rokkamraja in forum Qt Programming
    Replies: 0
    Last Post: 8th June 2010, 14:21
  4. Building Cocoa 64 bit on Mac
    By physicistjedi in forum Qt Programming
    Replies: 2
    Last Post: 15th October 2009, 15:22
  5. Replies: 0
    Last Post: 2nd March 2009, 03:00

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.