Xpdf Admin

Installation

xpdf-3.03


Obtained from: http://www.foolabs.com/xpdf/download.html
Main Site: http://www.foolabs.com/xpdf/

Unpacked to xpdf-3.03.

Getting the executables to build with an rpath set so users don't
need LD_LIBRARY_PATH set was tricky because most of the source
code is in C++.  It wound up being:

        setenv LDFLAGS "-Xlinker -rpath=/util/freetype2/lib"
        ./configure --prefix=/util/xpdf-3.03 \
                --with-freetype2-library=/util/freetype2/lib \
                --with-freetype2-includes=/util/freetype2/include/freetype2
        make
        sudo make install

Without the LDFLAGS setting ldd run on the resulting executable xpdf/xpdf
showed libfreetype.so.6 was found but as the wrong library (it found 
/usr/lib/libfreetype.so.6 despite having been linked against
/util/freetype2/lib/libfreetype.so.6).

xpdf-3.02


Obtained from: http://www.foolabs.com/xpdf/download.html
Main Site: http://www.foolabs.com/xpdf/

Unpacked to xpdf-3.02, downloaded the four patches currently
available to PATCHES sub-directory and applied them.  Note you
need to be in parent directory of xpdf-3.02 to apply them:

    % patch -p0 < xpdf-3.02/PATCHES/xpdf-3.02pl1.patch
    % patch -p0 < xpdf-3.02/PATCHES/xpdf-3.02pl2.patch
    % patch -p0 < xpdf-3.02/PATCHES/xpdf-3.02pl3.patch
    % patch -p0 < xpdf-3.02/PATCHES/xpdf-3.02pl4.patch

Getting the executables to build with an rpath set so users don't
need LD_LIBRARY_PATH set was tricky because most of the source
code is in C++.  It wound up being:

        setenv LDFLAGS "-Xlinker -rpath=/util/t1lib/lib:/util/freetype2/lib"
        ./configure --prefix=/util/xpdf-3.02 \
                --with-t1-library=/util/t1lib/lib \
                --with-t1-includes=/util/t1lib/include \
                --with-freetype2-library=/util/freetype2/lib \
                --with-freetype2-includes=/util/freetype2/include/freetype2
        make
        sudo make install

Without the LDFLAGS setting ldd run on the resulting executable xpdf/xpdf
showed libt1.so.5 could not be found and libfreetype.so.6 was found but
as the wrong library (it found /usr/lib/libfreetype.so.6 despite having
been linked against /util/freetype2/lib/libfreetype.so.6).