[Qt-interest] "dyld: unknown required load command" error on Mac OS X

Michael Jackson mike.jackson at bluequartz.net
Fri Apr 23 15:25:23 CEST 2010


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:

-----------8<-------------------------------
First, the issue you have is unrelated to Universal Binaries (UBs).

So there are two particular settings that you should always set when
compiling on Mac OS:
- the SDK
- the deployment target

The meaning of each is explained here:
<http://developer.apple.com/mac/library/documentation/DeveloperTools/
Conceptual/cross_development/Configuring/configuring.html>

With no particular compiler flags telling it to do so, the compiler
builds an executable for the machine it's building on, and that
executable won't necessary run on older versions of the OS, which you've
seen.
-----------8<-------------------------------

Mike Jackson




More information about the Qt-interest-old mailing list