Content

This is a weblog

Universal build of PCRE?

Thursday 3 August 2006 - Filed under computers + mac + programming

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

2006-08-03  »  mike

Talkback x 2

  1. Mika
    10 August 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
    10 August 2006 @ 5:14 pm

    Mika, thanks – I’ll try that out.