• 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: Linking a lib in XCode
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Linking a lib in XCode


  • Subject: Re: Linking a lib in XCode
  • From: George Warner <email@hidden>
  • Date: Thu, 13 Mar 2008 11:26:50 -0700
  • Thread-topic: Linking a lib in XCode

On Thu, 13 Mar 2008 09:17:03 +0100, Jean-Daniel Dupas
<email@hidden> wrote:

> That -lxml with a lower case L, not an upper case i.
> In fact, you do not have to add this linker flag. Xcode do it already
> when you add libxml.dylib in your target.
> And you can also remove the '/usr/include/libxml2/**' entry in your
> search path, it is useless.

That's a great theory... To bad it doesn't match practice. Adding frameworks
works as expected but not adding dylibs. I just spent 10 minutes dragging
dylib's into an Xcode project every way and every place I could think of and
I wasn't able to get it to "just work" (Apple Inc. ;-).

OTOH adding these flags did the trick:

OTHER_LDFLAGS = -lpng
LIBRARY_SEARCH_PATHS = /usr/X11/lib/**
USER_HEADER_SEARCH_PATHS = /usr/X11/include//**

I also spent another 10 minutes research this topic on the web and found
lots of hits but not one solution that didn't use the build settings.

If you can provide a step-by-step (cookbook) procedure to do this (that
works!) I'll see about getting it posted as a Q&A on our web site.

--
Enjoy,
George Warner,
Schizophrenic Optimization Scientist
Apple Developer Technical Support (DTS)


 _______________________________________________
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

  • Prev by Date: re: Weird stuff
  • Next by Date: re: CFBundleGetFunctionPointerForName
  • Previous by thread: Re: Linking a lib in XCode
  • Next by thread: A Byte out of USB
  • Index(es):
    • Date
    • Thread