• 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
Dynamic linking external libs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Dynamic linking external libs


  • Subject: Dynamic linking external libs
  • From: "MSP Kyle" <email@hidden>
  • Date: Tue, 17 Apr 2007 02:52:11 -0400

Hi,

I've read a number of entries regarding (what I believe) to be an issue that Xcode has with dynamic libraries in custom locations.  What I'm attempting to do is simple.

I've downloaded a set of libraries via DarwinPorts into /opt/local, and would like my Xcode project to link to the libraries found in /opt/local/lib. The warning I get from the compiler turns out to be the cause of a real problem:

Ld ::
...
 -mmacosx-version-min=10.4 -lguile -isysroot /Developer/SDKs/MacOSX10.4u.sdk
/usr/bin/ld: warning can't open dynamic library: /Developer/SDKs/MacOSX10.4u.sdk/opt/local/lib/libguile-ltdl.1.dylib referenced from: /opt/local/lib/libguile.dylib (checking for undefined symbols may be affected) (No such file or directory, errno = 2)

/Developer/SDKs/MacOSX10.4u.sdk is being prepended to the reference found in /opt/local/lib/libguile.dylib. Is there a straightforward way to get around this?

I've read of solutions involving install_name_tool, but haven't been able to wrap my head around how that would solve this problem.

Can anyone nudge me in the direction of a solution?

Thanks.

-k


 _______________________________________________
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: Dynamic linking external libs
      • From: "MSP Kyle" <email@hidden>
  • Prev by Date: Re: A problem building shared library with -single_module and g++
  • Next by Date: Re: A problem building shared library with -single_module and g++
  • Previous by thread: Fix and Continue fails on Carbon app
  • Next by thread: Re: Dynamic linking external libs
  • Index(es):
    • Date
    • Thread