[Qt-interest] Mac deployment to 10.4
Daniel Price
daniel.price at fxhome.com
Wed Oct 7 11:14:29 CEST 2009
I'm confused - does the cocoa port of Qt not support 10.4?
-----Original Message-----
From: qt-interest-bounces at trolltech.com [mailto:qt-interest-bounces at trolltech.com] On Behalf Of Oliver Demetz
Sent: 07 October 2009 08:53
To: qt-interest List
Subject: Re: [Qt-interest] Mac deployment to 10.4
Hi,
Y E S
that was it! I had the cocoa version installed.
Thank you all for your great support !
Best regards,
Oliver
Richard schrieb:
> The quad build of Qt indicates that you have downloaded the Cocoa
> version of Qt (since it contains 64 bit builds).
> Are you sure you downloaded the Carbon version?
>
> You can verify this by testing the app:
>
> #include <QtGui>
> #include <Carbon/Carbon.h>
>
> int main(int argc, char **argv){
> #if defined(QT_MAC_USE_COCOA)
> qDebug() << "You are using Cocoa";
> #else
> qDebug() << "You are using Carbon";
> #endif
> }
>
> -Richard
>
>
>
>
> On Oct 6, 2009, at 11:24 AM, Oliver Demetz wrote:
>
>> Richard schrieb:
>>> Try to run:
>>> file openglTest.app/Contents/Frameworks/QtGui.framework/Versions/4/
>>> QtGui
>> It gives me:
>>
>> file openglTest.app/Contents/Frameworks/QtGui.framework/Versions/4/
>> QtGui
>> openglTest.app/Contents/Frameworks/QtGui.framework/Versions/4/QtGui:
>> Mach-O universal binary with 4 architectures
>> openglTest.app/Contents/Frameworks/QtGui.framework/Versions/4/QtGui
>> (for
>> architecture ppc64): Mach-O 64-bit dynamically linked shared library
>> ppc64
>> openglTest.app/Contents/Frameworks/QtGui.framework/Versions/4/QtGui
>> (for
>> architecture ppc7400): Mach-O dynamically linked shared library ppc
>> openglTest.app/Contents/Frameworks/QtGui.framework/Versions/4/QtGui
>> (for
>> architecture x86_64): Mach-O 64-bit dynamically linked shared
>> library x86_64
>> openglTest.app/Contents/Frameworks/QtGui.framework/Versions/4/QtGui
>> (for
>> architecture i386): Mach-O dynamically linked shared library i386
>>
>>> and check that it is buildt 32 bit (i386).
>> The last line seems to me as if the answer was "yes".
>>> Otherwise, do you use the cocoa port of Qt?
>> No, I downloaded the Carbon (=default) binary package from the qt
>> website
>>> Or did you build Qt
>>> yourself specifying it to be 64-bit (both unsupported on 10.4)?
>> No, I got a binary package.
>>
>> But to make this a 100% sure, how can I get detailed information on
>> the
>> installed qt version? qmake -v gives just:
>>
>>> qmake -v
>> QMake version 2.01a
>> Using Qt version 4.5.2 in /Library/Frameworks
>>
>> Thanks for your support in advance,
>> Oliver
>>
>>> -Richard
>>>
>>>
>>>
>>>
>>> On Oct 5, 2009, at 8:09 PM, Oliver Demetz wrote:
>>>
>>>> Well I think this is what was set as default value initially, but I
>>>> also
>>>> checked it explicitly. - no luck.
>>>>
>>>> I am now using these project setting:
>>>>
>>>> mac {
>>>> QMAKE_MAC_SDK=/Developer/SDKs/MacOSX10.5.sdk
>>>> QMAKE_CXXFLAGS_PPC += -mmacosx-version-min=10.4
>>>> QMAKE_CXXFLAGS_x86 += -mmacosx-version-min=10.4
>>>> QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.4
>>>> CONFIG+=x86 ppc
>>>> }
>>>>
>>>> I have uploaded the .app bundle at
>>>>
>>>> www.style-concept.com/openglTest.zip
>>>>
>>>> If somebody would spend the time to have a look at it (it's 60 MB or
>>>> so), I would be very happy.
>>>>
>>>> If not then here is the output I get every time:
>>>>
>>>> openglTest.app/Contents/MacOS/openglTest
>>>>>>> dyld: Symbol not found: _kTISPropertyUnicodeKeyLayoutData
>>>>>>> Referenced from:
>>>>>>>
>>>> /Users/oliverdemetz/Desktop/openglTest.app/Contents/MacOS/../
>>>> Frameworks/QtGui.framework/Versions/4/QtGui
>>>>> Expected
>>>>>>> in: /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon
>>>>>>>
>>>>>>> Trace/BPT trap
>>>> Thanks a lot in advance to all helpers again!
>>>>
>>>>
>>>> Note that I used the macdeployqt tool to use the included qt libs.
>>>> Mike Jackson schrieb:
>>>>> You probably want to use the 10.5 SDK but set the following compile
>>>>> flag:
>>>>>
>>>>> -mmacosx-version-min=10.4
>>>>>
>>>>> which tells OS X to weak link some of the libraries. I believe this
>>>>> is
>>>>> the standard way to develop an app that works on 10.4 and 10.5
>>>>>
>>>>> ---
>>>>> Mike
>>>>>
>>>>> On 2009-10-05 08:19:21 -0400, Dan White <ygor at comcast.net> said:
>>>>>
>>>>>> You are stepping backwards from Mac OS 10.5 to 10.4
>>>>>> I believe you have to have certain compiler flags set to include
>>>>>> such
>>>>>> backward comatibility.
>>>>>> I recall seeing something to that effect in the XCode mailing list
>>>>>>
>>>>>> "Sometimes I think the surest sign that intelligent life exists
>>>>>> elsewhere in the universe is that none of it has tried to contact
>>>>>> us."
>>>>>> Bill Waterson (Calvin & Hobbes)
>>>>>>
>>>>>> ----- Original Message -----
>>>>>> From: Oliver Demetz <forenbeitraege at oliverdemetz.de>
>>>>>> To: Qt-interest <qt-interest at trolltech.com>
>>>>>> Sent: Mon, 5 Oct 2009 11:37:53 +0000 (UTC)
>>>>>> Subject: [Qt-interest] Mac deployment to 10.4
>>>>>>
>>>>>> Hi!
>>>>>>
>>>>>> I have developed my app under Windows and now I am porting to Mac
>>>>>> OS.
>>>>>> My development mac is a intel macbook, with qt 4.5.2 installed,
>>>>>> mac
>>>>>> version is 10.5.
>>>>>>
>>>>>> I added to my project file:
>>>>>> mac{ CONFIG+=x86 ppc }
>>>>>>
>>>>>> after running qmake and make release, I run macdeployqt, which
>>>>>> gives no
>>>>>> error. After this, it is possible to doubleclick the app-bundle,
>>>>>> and my
>>>>>> app opens and runs as expected.
>>>>>>
>>>>>> Now I bought an older iBook G4 running Mac os 10.4.2.
>>>>>> I copied the app-bundle to it, and it does NOT work.
>>>>>> Executing the executable from the terminal whows the following
>>>>>> output:
>>>>>>
>>>>>>> openglTest.app/Contents/MacOS/openglTest
>>>>>>> dyld: Symbol not found: _kTISPropertyUnicodeKeyLayoutData
>>>>>>> Referenced from:
>>>>>>> /Users/oliverdemetz/Desktop/openglTest.app/Contents/MacOS/../
>>>>>>> Frameworks/QtGui.framework/Versions/4/QtGui
>>>>> Expected
>>>>>>> in: /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon
>>>>>>>
>>>>>>> Trace/BPT trap
>>>>>> For completeness, here is the otool output (from the dev machine):
>>>>>>
>>>>>>> otool -L openglTest.app/Contents/MacOS/openglTest
>>>>>>> openglTest.app/Contents/MacOS/openglTest:
>>>>>>> @executable_path/../Frameworks/QtOpenGL.framework/Versions/4/
>>>>>>> QtOpenGL
>>>>>>> (compatibility version 4.5.0, current version 4.5.2)
>>>>>>> @executable_path/../Frameworks/QtGui.framework/Versions/4/QtGui
>>>>>>> (compatibility version 4.5.0, current version 4.5.2)
>>>>>>> /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon
>>>>>>> (compatibility version 2.0.0, current version 136.0.0)
>>>>>>> /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
>>>>>>> (compatibility version 45.0.0, current version 949.54.0)
>>>>>>> @executable_path/../Frameworks/QtCore.framework/Versions/4/
>>>>>>> QtCore
>>>>>>> (compatibility version 4.5.0, current version 4.5.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 111.1.4)
>>>>>>> /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL
>>>>>>> (compatibility version 1.0.0, current version 1.0.0)
>>>>>>> /System/Library/Frameworks/AGL.framework/Versions/A/AGL
>>>>>>> (compatibility
>>>>>>> version 1.0.0, current version 1.0.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)
>>>>>> Please help, I am not so familiar with the mac os x deployment
>>>>>> pitfalls.
>>>>>>
>>>>>> Best wishes,
>>>>>> Oliver
>>>>>> _______________________________________________
>>>>>> Qt-interest mailing list
>>>>>> Qt-interest at trolltech.com
>>>>>> http://lists.trolltech.com/mailman/listinfo/qt-interest
>>>>> _______________________________________________
>>>>> Qt-interest mailing list
>>>>> Qt-interest at trolltech.com
>>>>> http://lists.trolltech.com/mailman/listinfo/qt-interest
>>>> _______________________________________________
>>>> Qt-interest mailing list
>>>> Qt-interest at trolltech.com
>>>> http://lists.trolltech.com/mailman/listinfo/qt-interest
>>>
>>> _______________________________________________
>>> Qt-interest mailing list
>>> Qt-interest at trolltech.com
>>> http://lists.trolltech.com/mailman/listinfo/qt-interest
>> _______________________________________________
>> Qt-interest mailing list
>> Qt-interest at trolltech.com
>> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
_______________________________________________
Qt-interest mailing list
Qt-interest at trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-interest
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.
More information about the Qt-interest-old
mailing list