DynaPDF Manual - Page 48

Previous Page 47   Index   Next Page 49

Compiling DynaPDF on Linux / UNIX
Page 48 of 839
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 can be
compiled with GCC 4.2 or higher. GCC is freely available for most machine types.
The pre-compiled Unix libraries are usually compiled with the default compiler that is
common for the specific system, e.g. Solaris Studio on Solaris or Visual Age on AIX.
The configuration files are mainly designed for use with GCC and autoconf. If you want to use
another compiler you must maybe change the compiler flags in the file configure.in and rebuild
the configure script with autoconf. This can be done on an arbitrary Linux machine if no
working autoconf is installed on the Unix machine.
If you get compilation issues just ask for a solution! We have a lot of experience with Unix
systems, maybe we can help.
System requirements:
1. Properly installed GCC (4.2 or higher) C and C++ compiler. We strongly recommended
GCC 4.2 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:
dynapdf.h
// Main header file of DynaPDF
drv_conf.h
// Required configuration file
libdynapdf.a
// Static library
libdynapdf.so // Extension ".sl" on HP-UX or ".dylib" on Mac OS X
 

Previous topic: Exception handling in Delphi, Using DynaPDF in Multithreading Applications

Next topic: Changing the configuration scripts, Linker flags, Compiler flags, Optimization Level, Recommended compiler version