1 To build libharu as a shared dylib on Mac OS X, modify the Makefile after calling ./configure --shared
\r\rHere are the relevant sections and the lines to be changed:
\r\r...
\rCC=cc
\rPREFIX=/usr/local
\r\rLIBNAME=libhpdf.a
\rSONAME=libhpdf.dylib
\rSOVER1=.1
\rSOVER2=.0.0
\rLIBTARGET=libhpdf.dylib
\rCFLAGS=-Iinclude -fPIC -fno-common -c
\r...
\r$(SONAME): $(OBJS)
\r$(CC) -dynamiclib -o $(SONAME)$(SOVER1)$(SOVER2) $(OBJS) $(LDFLAGS) -Wl
\rln -sf $(SONAME)$(SOVER1)$(SOVER2) $(SONAME)$(SOVER1)
\rln -sf $(SONAME)$(SOVER1) $(SONAME)
3 Now you can build and install:
9 Test PDF files from pdf-tests.factor are generated in the test folder.