Re: Attach library (.a) in Xcode
Re: Attach library (.a) in Xcode
- Subject: Re: Attach library (.a) in Xcode
- From: Jens Alfke <email@hidden>
- Date: Wed, 25 Jun 2008 15:25:57 -0700
On 25 Jun '08, at 2:33 PM, dexter morgan wrote:
is id3 the folder inside /usr/local/include?
Yup. I think the compile errors are because gcc doesn't look in /usr/
local/include by default. You'll need to add that as an include path
in your build settings.
How can I import these libreries into the project? (I would to copy
these files into app package in order to allow app launch even if you
have not installed id3lib in /usr/local.
This can be tricky. I think it's documented somewhere in the Xcode
guide, but I can never find it.
Basically you need to add a new Copy Files build phase that copies
the .a file into your app bundle (usually into the Framworks directory.)
But the tricky part is that you need to get the linker to change where
it will look for the library, from /usr/local/bin to inside the
bundle. There is some command to postprocess the built code to do
that, but I don't remember how it works...
Hopefully you can track down the Xcode documentation on this.
—Jens _______________________________________________
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