michael-mccracken.net

Universal build of PCRE?

Dear Lazyweb, I wanted to polish up and push out a project I started more than two years ago in time for WWDC, but it requires PCRE, and I can’t seem to get PCRE to build for i386 in less than twenty minutes. Does anyone know of a universal build of a recent PCRE somewhere (or good specific instructions to build one?)

Thanks,

-mike

Comments:
  1. Mika
    August 10th, 2006 | 2:51 pm

    Here’s how I did it. I’m not sure if this is the best way (Or even if this actually works - I don’t have an Intel Mac to test with. Maybe you could test and report?). I used PCRE 6.7. I hope this helps.

    1. Configure with something like “./configure –enable-utf8″.
    2. Modify Makefile: 2A. Find lines “CFLAGS = -g -O2″ and “CXXFLAGS = -g -O2″. Append to these lines “-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386″. 2B. Find line “LDFLAGS =”. Append to this line “-Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386″
    3. Compile with “make”.

    -Mika

  2. Administrator
    August 10th, 2006 | 5:14 pm

    Mika, thanks - I’ll try that out.

Leave a reply

Feed, Endorsements & other Links

my bookmarks

© 2005 - 2007 Michael McCracken.