• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: unknown required load command 0x80000022
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: unknown required load command 0x80000022


  • Subject: Re: unknown required load command 0x80000022
  • From: Grant Limberg <email@hidden>
  • Date: Mon, 26 Oct 2009 12:18:26 -0700



On Oct 26, 2009, at 12:07 PM, Kevin Brock wrote:

Grant Limberg wrote:
We're using the MySQL++ library for a project.  I've built it on Snow Leopard targeting MacOS 10.4 as the minimum version, but whenever I try to use it on Leopard (10.5), I get the following error when trying to load libmysqlpp.3.0.9.dylib: 
dyld: Library not loaded: @executable_path/../Frameworks/libmysqlpp.3.0.9.dylib 
  Referenced from: /Volumes/Extras/Users/cruisecontrol/.hudson/jobs/OSX-10.5-Licenser-CI-Debug/workspace/trunk/Licenser/build/scons/scons-out/dbg/staging/./AdminServer 
  Reason: no suitable image found.  Did find: 
    /Volumes/Extras/Users/cruisecontrol/.hudson/jobs/OSX-10.5-Licenser-CI-Debug/workspace/trunk/Licenser/build/scons/scons-out/dbg/staging/./../Frameworks/libmysqlpp.3.0.9.dylib: unknown required load command 0x80000022 
    /Volumes/Extras/Users/cruisecontrol/.hudson/jobs/OSX-10.5-Licenser-CI-Debug/workspace/trunk/Licenser/build/scons/scons-out/dbg/staging/../Frameworks/libmysqlpp.3.0.9.dylib: unknown required load command 0x80000022 
Trace/BPT trap 

I had a similar problem, though not quite the same.  Xcode 3.2 includes inappropriate load commands (for the target OS) on some binaries.  The one you're running into is LC_DYLD_INFO_ONLY.  There's a page talking about this command here:

http://networkpx.blogspot.com/2009/09/about-lcdyldinfoonly-command.html

Which is largely based on sources here:

http://www.opensource.apple.com/source/ld64/ld64-96.5/src/other/dyldinfo.cpp

My problem was frameworks with LC_DYLD_INFO set, because they were built on 10.6, which I needed to link with an app being built on 10.5.  Checking "Deployment Post Processing" stripped it out of the generated binary in my case.  Don't know if that will apply in your case.

I haven't seen any information on how to make Xcode *not* include these load commands...

Kevin


Interesting.  We use SCons for our build system rather than Xcode because our products are all multi-platform, and this external project uses autoconf/automake.  I'll have to look into what that Xcode setting does at the command line and apply it to mysqlpp and our own project configuration in SCons as well.

Grant Limberg



email@hidden
http://www.cedrus.com/
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >unknown required load command 0x80000022 (From: Grant Limberg <email@hidden>)
 >Re: unknown required load command 0x80000022 (From: Kevin Brock <email@hidden>)

  • Prev by Date: Re: Getting a handle on inf
  • Next by Date: Re: unknown required load command 0x80000022
  • Previous by thread: Re: unknown required load command 0x80000022
  • Next by thread: Re: unknown required load command 0x80000022
  • Index(es):
    • Date
    • Thread