Re: problems in setting LIBRARY_SEARCH_PATHS
Re: problems in setting LIBRARY_SEARCH_PATHS
- Subject: Re: problems in setting LIBRARY_SEARCH_PATHS
- From: Chris Espinosa <email@hidden>
- Date: Thu, 23 Nov 2006 16:10:04 -0800
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
|
_______________________________________________
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