• 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: PCRE newbie question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: PCRE newbie question


  • Subject: Re: PCRE newbie question
  • From: Michael Blaguszewski <email@hidden>
  • Date: Sat, 13 Jan 2007 17:11:02 -0500

On Jan 13, 2007, at 4:02 PM, Patrick Cusack wrote:

Question 1. Where do libraries live? I imagine that I am getting a "ZeroLink: unknown symbol '_pcre_compile'" error becuase Xcode can't find the PCRE.h include. I am certain that this is any obvious error. Can anyone point me in the right direction?

In OS X, you should almost never install anything inside /System, and it's good to avoid /usr as well. Dynamic libraries and frameworks should be stored inside your application's bundle. But since PCRE is BSD-licensed, you can compile it right into your app, so you don't need to install it anywhere. This is easy to do. Just run make (but not make install), and drag the libpcre.a file into the the Groups & Files list in your Xcode project window.


This should be sufficient to build something that runs on your native architecture (PPC or Intel). You'll need to build libpcre differently to include it in a Universal app. The gory details are in Technote 2137, but in your case I think it'll be enough to run `export CFLAGS="-O2 -arch ppc -arch i386"` before you configure and make.
<http://developer.apple.com/technotes/tn2005/tn2137.html>


Finally, I should mention that OS X includes a large number of open source libraries by default these days. So it's worth checking inside /usr/lib, and copying that version if it exists. If you want to see if a lib was included in an older OS version you're targeting, look in /Developer/SDKs.

Mike
_______________________________________________
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: PCRE newbie question
      • From: j o a r <email@hidden>
References: 
 >PCRE newbie question (From: Patrick Cusack <email@hidden>)

  • Prev by Date: Re: PCRE newbie question
  • Next by Date: Re: PCRE newbie question
  • Previous by thread: Re: PCRE newbie question
  • Next by thread: Re: PCRE newbie question
  • Index(es):
    • Date
    • Thread