BlogPhotosContact

Topics

Lpdf on Mac osx

Here is a quick reminder on how I built Lpdf, the Lua bindings for pdflib, on my Intel mac.

  • 1. First, installed the PDFLib binaries
  • 2. Installed Lua from source
  • 3. Didn't bother about the Makefile in Lpdf
  • 4. Used the following sequence
export MACOSX_DEPLOYMENT_TARGET="10.3"
gcc -I/usr/local/include -Wall -O2 -fno-common -c
     -o lpdf.o lpdf.c
gcc -Wall -bundle -framework Carbon
     -undefined dynamic_lookup -o pdf.so lpdf.o 
     -L/usr/local/lib -lpdf

At first, I forgot the -framework Carbon flag which lead to dyld: Symbol not found: _FSPathMakeRef.

Comments (0)  Permalink

Comments

Add a comment

The Trackback URL to this comment is:
http://golgote.freeflux.net/blog/plugin=trackback(103).xml

No new comments allowed (anymore) on this post.