• 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 in setting LIBRARY_SEARCH_PATHS
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: problems in setting LIBRARY_SEARCH_PATHS


  • Subject: Re: problems in setting LIBRARY_SEARCH_PATHS
  • From: P Teeson <email@hidden>
  • Date: Thu, 23 Nov 2006 20:28:32 -0500

On 23-Nov-06, at 7:10 PM, Chris Espinosa wrote:
On Nov 23, 2006, at 12:18 PM, P Teeson wrote:
In trying to build some of the MySQL tools there is a project target which needs to link with  /usr/local/lib/libglib-2.0.0.dylib.
(i.e. the updated glib that I DL'd and built). Looking at the build settings for that target I see displayed

build/Development /uni/lib /sw/lib 

But if I try to Edit those values I then see
$(LIBRARY_SEARCH_PATHS) /sw/lib

[so it seems that LIBRARY_SEARCH_PATHS is being set somewhere before the target settings.
Where would that be?]

In the project level settings.  Targets inherit from projects if unset, but if a target wants to augment the project-level settings, it just uses the setting name. Here it's apparent that at the project level, LIBRARY_SEARCH_PATHS is set to $(CONFIGURATION_BUILD_DIR) /uni/lib

Of course I am able to make that into
$(LIBRARY_SEARCH_PATHS) /usr/local/lib /sw/lib

but when linking I still get
/usr/bin/libtool: can't open file: /uni/lib/libglib-2.0.0.dylib (No such file or directory)

not what I want at all. Because I think the /usr/local/lib needs to come before the /uni/lib

I've searched the archive and the XCode Users Guide to find out why I cannot edit.
So how come I see $(LIBRARY_SEARCH_PATHS) instead of build/Development /uni/lib?
And how can I edit it?

At the target level, select it and click the Edit button.  
A sheet should appear with a list of strings, $(LIBRARY_SEARCH_PATHS) first and /sw/lib second. 
Just press the + button, add /usr/local/lib, and drag it to be first in the list.

Chris
Thanks very much Chris. In fact I had managed to get that far. With your note I now better understand the heirarchy of search paths.
What I accidently discovered since then is that I can Add to Project files in the "hidden" directories (such as /usr/local/)
So when going to Project/Add To Project and typing /usr/local/lib I was able to add the desired lib to the appropriate Group(s).
And of course deleting the old "not found" item was trivial.

This capability, to add from hidden directories, was not known to me and when I searched for it in the
Users Guide I obviously used the wrong keywords.

Anyway it made my day. Thanks again.

respect....

Peter

 _______________________________________________
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: 
 >problems in setting LIBRARY_SEARCH_PATHS (From: P Teeson <email@hidden>)
 >Re: problems in setting LIBRARY_SEARCH_PATHS (From: Chris Espinosa <email@hidden>)

  • Prev by Date: Re: problems in setting LIBRARY_SEARCH_PATHS
  • Next by Date: Link errors on dyld_stub_binding_helper, multiple definitions of __start
  • Previous by thread: Re: problems in setting LIBRARY_SEARCH_PATHS
  • Next by thread: can't open bundle produced by xcode
  • Index(es):
    • Date
    • Thread