Static library build from xpdf reader source with most dependencies(zlib
, libpng
, freetype2
) included within.
All the optional dependencies (fontconfig
and libpaper
) are disabled.
Only Threads
are required dependency.
Note:- For Pre-built library/binaries see releases
CMake is used throughout the whole configuration and building process. You can get more information about CMake in the documentation.
CMake encourages to use out-of-source builds to not to pollute the directory with source code with compiled binaries. Typical building scenario on UNIX-like system looks as following:
mkdir ./libxpdf-build
cd ./libxpdf-build
cmake -DCMAKE_BUILD_TYPE=Release ../libxpdf
make
Use -G option to select build system other than based on Makefile. To pass any variable to CMake use -D option.
Use CMAKE_C_COMPILER variable to override default C compiler, and CMAKE_CXX_COMPILER variable to override default C++ compiler.
Use CMAKE_C_FLAGS variable to add specific compilation flags to C compiler, and CMAKE_CXX_FLAGS variable for C++ compiler.
To set other xpdf build options read their INSTALL
Xpdf tools can be build along library using BUILD_TOOLS
cmake option. Disabled by default.