Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

DynaPDF Manual - Page 45

Previous Page 44   Index   Next Page 46

Compiling DynaPDF on Linux / UNIX
Page 45 of 750
Compiling DynaPDF on Linux / UNIX
The build process of DynaPDF was designed to enable the compilation on most Linux or UNIX
operating systems as easy as possible. All Linux and UNIX versions of DynaPDF are compiled
with GCC 3.2 or higher which is freely available for most machine types. The configuration files
are mainly designed for use with GCC and Autoconf. If you want to use another compiler you
must at least change the compiler flags in the file configure.in and rebuild then the configure
script with Autoconf. Note that finding the right compiler flags can be difficult and time
consuming so that it is usually best to use GCC instead of another compiler.
System requirements:
1. Properly installed GCC (3.0 or higher) C and C++ compiler. We strongly recommended
GCC 4.0 or higher!
2. GNU make
3. To create a static library of DynaPDF you need also ar and ranlib
Build process
1. Copy first the entire directory dynapdf_ent to your Linux or UNIX machine.
2. Change the access permissions of the following files as follows (subdirectory /source):
a. chmod 777 config.guess
b. chmod 777 config.sub
c. chmod 777 confrel
d. chmod 777 install-sh
3. Type "./confrel" and press enter. This command creates the make files for your machine
and starts the compilation.
4. Clean up the directory with "make clean", finished!
Make install creates a static and shared library of DynaPDF and copies the libraries and header
files, which are required to bind DynaPDF, into the subdirectory /source.
You find the following files in the subdirectory /source after compiling DynaPDF:
// Main header file of DynaPDF
// Required configuration file
// Static library
libdynapdf.so // Extension ".sl" on HP-UX or ".dylib" on Mac OS X
Changing the configuration scripts
DynaPDF uses the freely available tool Autoconf to create the main configuration script
configure. Autoconf requires the file configure.in as input file which is located in the
subdirectory /source. The final configure script can be executed without changes on all

Previous topic: Using DynaPDF in Multithreading Applications

Next topic: Recommended compiler version