[Qt-interest] Right Way to get Qt 4.6.2 w/Cocoa for OS X 10.5???

Michael Jackson mike.jackson at bluequartz.net
Thu Apr 15 15:52:53 CEST 2010


That error has something to do with how the Qt libraries were built. I
_think_ it is because they may have been built on OS X 10.6 without the
proper compile/link flags to make them usable on OS X 10.5.

 The best bet would be to just build Qt on your system first and use that.
--
Mike Jackson

On 4/14/10 3:11 PM, in article
l2y44f773f51004141211q7730780doc5d19e18eda71adb at mail.gmail.com, "kent
williams" wrote:

> What we did (on my boss' advice) -- Downloaded the whole SDK, then
> downloaded the Cocoa Libraries, installed the SDK, then installed the
> cocoa libraries.
> 
> 
> i.e.
> http://qt.nokia.com/downloads/sdk-mac-os-cpp
> and
> http://get.qt.nokia.com/qt/source/qt-mac-cocoa-opensource-4.6.2.dmg
> 
> But while the SDK download alone seemed to be able to generate Carbon
> apps OK. When I did the Cocoa library install, and started specifying
> Cocoa, I can't build runnable bundles any more.
> 
> I'm using CMake (actually, trying to build the CMake/Qt app bunndle)
> and getting these error messages:
> 
> Copying /scratch/kent/cmake/cmake-2.8.1/QtCore.framework into bundle...
> fw_src = [/Library/Frameworks/QtCore.framework/Versions/4/QtCore]
> fw_full_src = [/Library/Frameworks/QtCore.framework/Versions/4/QtCore]
> Copy: /scratch/kent/cmake/cmake-2.8.1/bin/cmake -E copy
> "/Library/Frameworks/QtCore.framework/Versions/4/QtCore"
> "/scratch/kent/opt/CMake
> 2.8-1.app/Contents/Frameworks/QtCore.framework/Versions/4/QtCore"
> Checking /Library/Frameworks/QtCore.framework/Versions/4/Resources
> install_name_tool: for architecture x86_64 object:
> /scratch/kent/opt/CMake
> 2.8-1.app/Contents/Frameworks/QtCore.framework/Versions/4/QtCore
> malformed object (unknown load command 5)
> copy it --- QtGui.framework/Versions/4/QtGui
> Copying /scratch/kent/cmake/cmake-2.8.1/QtGui.framework into bundle...
> fw_src = [/Library/Frameworks/QtGui.framework/Versions/4/QtGui]
> fw_full_src = [/Library/Frameworks/QtGui.framework/Versions/4/QtGui]
> Copy: /scratch/kent/cmake/cmake-2.8.1/bin/cmake -E copy
> "/Library/Frameworks/QtGui.framework/Versions/4/QtGui"
> "/scratch/kent/opt/CMake
> 2.8-1.app/Contents/Frameworks/QtGui.framework/Versions/4/QtGui"
> Checking /Library/Frameworks/QtGui.framework/Versions/4/Resources
> Copy: /scratch/kent/cmake/cmake-2.8.1/bin/cmake -E copy_directory
> "/Library/Frameworks/QtGui.framework/Versions/4/Resources/"
> "/scratch/kent/opt/CMake 2.8-1.app/Contents/Frameworks/Resources/"
> install_name_tool: for architecture x86_64 object:
> /scratch/kent/opt/CMake
> 2.8-1.app/Contents/Frameworks/QtGui.framework/Versions/4/QtGui
> malformed object (unknown load command 5)
> 
> dstlibs='/scratch/kent/opt/CMake
> 2.8-1.app/Contents/Frameworks/QtCore.framework/Versions/4/QtCore;/scratch/kent
> /opt/CMake
> 2.8-1.app/Contents/Frameworks/QtGui.framework/Versions/4/QtGui'
> 
> fixups='-change;QtCore.framework/Versions/4/QtCore;@executable_path/../Framewo
> rks/QtCore.framework/Versions/4/QtCore;-change;QtGui.framework/Versions/4/QtGu
> i;@executable_path/../Frameworks/QtGui.framework/Versions/4/QtGui'
> 
> Fixing up references...
> fixing up references in: '/scratch/kent/opt/CMake
> 2.8-1.app/Contents/Frameworks/QtCore.framework/Versions/4/QtCore'
> install_name_tool: for architecture x86_64 object:
> /scratch/kent/opt/CMake
> 2.8-1.app/Contents/Frameworks/QtCore.framework/Versions/4/QtCore
> malformed object (unknown load command 5)
> fixing up references in: '/scratch/kent/opt/CMake
> 2.8-1.app/Contents/Frameworks/QtGui.framework/Versions/4/QtGui'
> install_name_tool: for architecture x86_64 object:
> /scratch/kent/opt/CMake
> 2.8-1.app/Contents/Frameworks/QtGui.framework/Versions/4/QtGui
> malformed object (unknown load command 5)
> fixing up references in: '/scratch/kent/opt/CMake
> 2.8-1.app/Contents/MacOS/CMake 2.8-1'
> 
> Listing references...
> /scratch/kent/opt/CMake
> 2.8-1.app/Contents/Frameworks/QtCore.framework/Versions/4/QtCore:
> QtCore.framework/Versions/4/QtCore (compatibility version 4.6.0,
> current version 4.6.2)
> /usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.3)
> /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
> version 125.0.0)
> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Applicatio
> nServices
> (compatibility version 1.0.0, current version 38.0.0)
> /usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version
> 7.9.0)
> /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current
> version 103.0.0)
> /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
> (compatibility version 1.0.0, current version 44.0.0)
> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
> (compatibility version 150.0.0, current version 550.13.0)
> 
> /scratch/kent/opt/CMake
> 2.8-1.app/Contents/Frameworks/QtGui.framework/Versions/4/QtGui:
> QtGui.framework/Versions/4/QtGui (compatibility version 4.6.0,
> current version 4.6.2)
> QtCore.framework/Versions/4/QtCore (compatibility version 4.6.0,
> current version 4.6.2)
> /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon
> (compatibility version 2.0.0, current version 152.0.0)
> /usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.3)
> /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
> (compatibility version 45.0.0, current version 1038.25.0)
> /usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version
> 7.9.0)
> /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current
> version 103.0.0)
> /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
> version 125.0.0)
> /usr/lib/libobjc.A.dylib (compatibility version 1.0.0, current version
> 227.0.0)
> /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
> (compatibility version 1.0.0, current version 44.0.0)
> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
> (compatibility version 150.0.0, current version 550.13.0)
> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Applicatio
> nServices
> (compatibility version 1.0.0, current version 38.0.0)
> /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
> (compatibility version 300.0.0, current version 751.14.0)
> 
> /scratch/kent/opt/CMake 2.8-1.app/Contents/MacOS/CMake 2.8-1:
> @executable_path/../Frameworks/QtGui.framework/Versions/4/QtGui
> (compatibility version 4.6.0, current version 4.6.2)
> @executable_path/../Frameworks/QtCore.framework/Versions/4/QtCore
> (compatibility version 4.6.0, current version 4.6.2)
> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
> (compatibility version 150.0.0, current version 476.19.0)
> /usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version
> 7.4.0)
> /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)
> /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
> version 111.1.5)
> 
> 
> 
> # Script 
> "/scratch/kent/cmake/cmake-2.8.1/Source/QtDialog/CMakeIngestOSXBundleLibraries
> .cmake"
> completed.




More information about the Qt-interest-old mailing list