• 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: library path in framework product
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: library path in framework product


  • Subject: Re: library path in framework product
  • From: William Turner <email@hidden>
  • Date: Mon, 12 Dec 2005 13:17:53 -0500

Thanks for the info, all. It turns out the problem was with the library file itself - when I recompiled it with some additional libtool flags it behaved correctly.

Thanks,
Wil

On Dec 11, 2005, at 6:12 PM, Daniel Jalkut wrote:

Oops! I missed the "/usr/local" part ...

Thanks,
Daniel

On Dec 11, 2005, at 4:37 PM, Eric Albert wrote:

SDKs shouldn't change the search results for anything in /usr/ local. SDKs are intended to give you a replacement for Apple's libraries, and Apple never ships anything in /usr/local.

That said, it sounds like the problem is that the install name of the second library is wrong. William, rather than opening the binary in vi, you can find the install name of a library by using 'otool -D /path/to/library'. You can change the install name of a library either while building it or by using install_name_tool after it's built.

Hope this helps,
Eric

On Dec 11, 2005, at 1:09 PM, Daniel Jalkut wrote:

William - is it possible that your project is linking against a particular SDK on your machine, not the root volume itself.

This seems likely, and that the library you're trying to link against is not in that particular SDK. This is exactly why it's a good idea to use an SDK! If you need to support the system you're targeting, then you might need to come up with an alternative to dynamically linking against that library.

Daniel

On Dec 11, 2005, at 4:02 PM, William Turner wrote:

I have a couple of libraries that are included by a Framework I'm building. Both of these libraries are in /usr/local/lib. The path type for both is Absolute. When I link again the framework, I get a compile warning that it is unable to find one of the libraries. When I open the framework executable file with vi, I see that one library is referenced by its complete path, the other - the one I am warned about - has no path, just its binary.

Help?

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


This email sent to email@hidden


_______________________________________________ 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: 
 >library path in framework product (From: William Turner <email@hidden>)
 >Re: library path in framework product (From: Daniel Jalkut <email@hidden>)
 >Re: library path in framework product (From: Eric Albert <email@hidden>)
 >Re: library path in framework product (From: Daniel Jalkut <email@hidden>)

  • Prev by Date: Carbon shared libs in MachoPAckage.app ?
  • Next by Date: passing NULL to non-pointer
  • Previous by thread: Re: library path in framework product
  • Next by thread: unknown symbol
  • Index(es):
    • Date
    • Thread