Linker can't find library in /usr/lib when SDKROOT is set
Linker can't find library in /usr/lib when SDKROOT is set
- Subject: Linker can't find library in /usr/lib when SDKROOT is set
- From: Graham Westlake <email@hidden>
- Date: Thu, 26 Nov 2009 15:54:38 +0000
I'm trying to link my application against a third party library that gets installed into /usr/lib. The app is being built with "SDKROOT = macosx10.6" specified. I've added the library to my Xcode project and it's included in the Link Binary With Libraries build phase, but when I try to build the linker claims it can't be found. Adding a library search path of "/usr/lib" doesn't help.
The problem seems to be that the library search path is prefixed with the SDKROOT value, so it's searching in /Developer/SDKs/MacOSX10.6.sdk/usr/lib rather than /usr/lib.
Is there a way round this that doesn't require me to move, copy or create a symlink to the library in question? Maybe specifying the full library path, or telling the linker to ignore the SDKROOT for this path only?
Thanks,
Graham Westlake _______________________________________________
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