[Qt-interest] Mac deployment to 10.4
Oliver Demetz
forenbeitraege at oliverdemetz.de
Mon Oct 5 20:09:33 CEST 2009
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
More information about the Qt-interest-old
mailing list