C42pdf v 0.12 - compilation notes Last update: 23 Dec 2001 A. Compilation of c42pdf on other platforms (not Linux nor Windows) ------------------------------------------------------------------- Make a directory and move into it, then: On Unix machines, wget is usually useful for downloading, but you can use any browser of you choice. Step 1. Compile PDFLIB (I should point out that this is an old version, Thomas Merz has newer versions at http://www.pdflib.com/, but the newer versions are not compatible with c42pdf). Also, the instructions are very conservative. - download http://c42pdf.ffii.org/src/pdflib-0.6.tar.gz - gunzip pdflib-0.6.tar.gz - tar xvf pdflib-0.6.tar - cd pdflib-0.6 - edit the makefile.gcc: -line 203 change from "all: $(PDFLIB) $(PROGS) $(SHLIBS)" to "all: $(PDFLIB)" -line 73: remove "-g" (unless you want to retain debugging information) and "$(PIC_OPT) - make -f makefile.gcc - cd .. Step 2. Compile c42pdf proper - download http://c42pdf.ffii.org/src/c42pdf_src.0.11.tar.gz - gunzip c42pdf_src.tar.gz - tar xvf c42pdf_src.tar - cd c42pdf/src - cp ../../pdflib-0.6/libpdf.a . if you are asked "cp: overwrite ./libpdf.a (yes/no)?", say "yes" if you are not asked it is also fine - make - ./c42pdf sample.tif If you experience any troubles (reading and executing the instructions should not take you more than 10 minutes), please do not hesitate to send mail to Holger c42pdf@ffii.org - one of the goals of the program is to be portable. If you have compiled something new, you are very much invited to send a copy to c42pdf@ffii.org so it can be made available to other users of that platform. B. Compilation on Linux ----------------------- Linking to system libraries can make the executable smaller (used Debian 2.0.34). Step 1. Compile PDFLIB. See above. Step 2. Compile c42pdf. See above, but instead of 'make' run 'make -f makefile.lin' Troubleshooting: mail to c42pdf@ffii.org C. Compilation on Windows 32 ---------------------------- Compilation of c42pdf on Windows 32 Step 0. Set up development environment. - Download (e.g.) gcc-mingw from ftp://ftp.xraylith.wisc.edu/pub/khan/gnu-win32/mingw32/gcc-2.95.2/ install it e.g. to c:\gcc - run c:\gcc\mingw32.bat Step 1. Compile PDFLIB. - download http://c42pdf.ffii.org/src/pdflib-0.6.tar.gz - unpack (e.g. with tar or WinZIP) - edit p_port.h: outcomment lines 11-14 - edit the makefile.gcc: -line 73: remove "-g" (unless you want debugging information) and "$(PIC_OPT)" -line 203: change from "all: $(PDFLIB) $(PROGS) $(SHLIBS)" to "all: $(PDFLIB)" -line 206: delete this line - make -f makefile.gcc Step 2. Compile c42pdf. - copy the libpdf.a you have just compiled in the PDFLIB dir into c42pdf/src - run 'make' in c42pdf/src Troubleshooting: mail to c42pdf@ffii.org