• 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: Problems linking to dylibs in bundle
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problems linking to dylibs in bundle


  • Subject: Re: Problems linking to dylibs in bundle
  • From: "D. Walsh" <email@hidden>
  • Date: Thu, 23 Feb 2006 15:51:23 -0500
  • Mta-interface: amavisd-new-2.3.3 (20050822) + Maia Mailguard 1.1.0 at daleenterprise.com


On Feb 23, 2006, at 15:10 , Mark Lucas wrote:

I'm trying to use xcode to build an application bundle from external make projects. I'm trying to bundle some of the resulting dylibs within an application bundle to satisfy the dependencies.
I have the external make targets building successfully and have them as target dependencies in my app target.


I've tried moving the required dylibs into the bundle under Contents/Frameworks but they are not found at runtime.

Does it only search @executable_path/../Frameworks for Frameworks and not dylibs?

Any help would be greatly appreciated.  Thanks,





running otool -L on the executable within the bundle yields:

mrl$ otool -L ossimosgqt
ossimosgqt:
libosgPlanet.dylib (compatibility version 1.0.0, current version 1.0.0)
libosgGA.dylib (compatibility version 1.0.0, current version 1.0.0)
libosgDB.dylib (compatibility version 1.0.0, current version 1.0.0)
libosgUtil.dylib (compatibility version 1.0.0, current version 1.0.0)
libosg.dylib (compatibility version 1.0.0, current version 1.0.0)
libProducer.dylib (compatibility version 0.0.0, current version 0.0.0)
libosgText.dylib (compatibility version 1.0.0, current version 1.0.0)
libosgProducer.dylib (compatibility version 1.0.0, current version 1.0.0)
/System/Library/Frameworks/OpenGL.framework/Versions/A/ OpenGL (compatibility version 1.0.0, current version 1.0.0)
/Users/Shared/Development/ossim/lib/libossim.1.6.5.dylib (compatibility version 0.0.0, current version 0.0.0)
libOpenThreads.dylib (compatibility version 0.0.0, current version 0.0.0)
libwms.dylib (compatibility version 1.0.0, current version 1.0.0)
libqt.3.dylib (compatibility version 3.3.0, current version 3.3.6)
/usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 7.3.0)
/usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)


Those libs are in app/Contents/Frameworks however.

According to your build settings those file are stored with the the main app but your copy phase is placing them in the assigned Frameworks directory.


I also see an issue with "/Users/Shared/Development/ossim/lib/ libossim.1.6.5.dylib" making it almost impossible for the application to be used outside of this drive if the library doesn't exists.


mark

-- Dale

_______________________________________________
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


  • Follow-Ups:
    • Re: Problems linking to dylibs in bundle
      • From: Dave Thorup <email@hidden>
References: 
 >Problems linking to dylibs in bundle (From: Mark Lucas <email@hidden>)

  • Prev by Date: Problems linking to dylibs in bundle
  • Next by Date: Re: Problems linking to dylibs in bundle
  • Previous by thread: Problems linking to dylibs in bundle
  • Next by thread: Re: Problems linking to dylibs in bundle
  • Index(es):
    • Date
    • Thread