• 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: Attach library (.a) in Xcode
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Attach library (.a) in Xcode
      • From: "Sherm Pendley" <email@hidden>
References: 
 >Attach library (.a) in Xcode (From: "dexter morgan" <email@hidden>)

  • Prev by Date: Attach library (.a) in Xcode
  • Next by Date: Re: Attach library (.a) in Xcode
  • Previous by thread: Attach library (.a) in Xcode
  • Next by thread: Re: Attach library (.a) in Xcode
  • Index(es):
    • Date
    • Thread