[Qt-interest] "dyld: unknown required load command" error on Mac OS X
Michael Jackson
mike.jackson at bluequartz.net
Fri Apr 23 17:10:18 CEST 2010
On 4/23/10 10:19 AM, in article hqsa8h$i7i$1 at eple.troll.no, "Nikos
Chantziaras" wrote:
> On 04/23/2010 04:25 PM, Michael Jackson wrote:
>> On 4/22/10 2:38 PM, in article hqq522$eqo$1 at eple.troll.no, "Nikos
>> Chantziaras" wrote:
>>
>>> When trying to run an application that is compiled on Mac OS X 10.6 on
>>> 10.5, it shows an "dyld: unknown required load command 0x80000022
>>> Trace/BPT trap" error and crashes.
>>>
>>> What does that mean? On 10.6, I'm using the Cocoa version of Qt 4.6.2
>>> (the dmg available from qt.nokia.com, I didn't build it myself). The
>>> application is compiled as a 64-bit, Intel app. I've used the
>>> macdeployqt tool to create a dmg, and works just fine on other 10.6
>>> systems, just not 10.5 ones.
>>
>> You didn't use the correct OS X SDK when building. IT needs to be set to
>> 10.5 and NOT 10.6. This seems to be coming up on several mailing lists.
>> Recently on the HDF-Forum mailing list this was posted which may help:
>> [...]
>
> It turns out I should have RTFMed more:
>
> http://doc.trolltech.com/4.6/deployment-mac.html#mac-os-x-version-dependencies
>
> It turns out Qt support this quite easily. All I had to do was setting:
>
> QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.4
>
> in the project file :P I don't have a 10.4 installation available, but
> it seems it works OK on 10.5 now.
Great,
Just note that the Qt Cocoa requires at least OS X 10.5. It will NOT work
on 10.4.
Mike Jackson
More information about the Qt-interest-old
mailing list