|
Packit |
ed3af9 |
For documentation, browse index.html.
|
|
Packit |
ed3af9 |
|
|
Packit |
ed3af9 |
Quick install guide:
|
|
Packit |
ed3af9 |
|
|
Packit |
ed3af9 |
If the sources have been fetched from git, run bootstrap.sh [options].
|
|
Packit |
ed3af9 |
|
|
Packit |
ed3af9 |
From a released source, use:
|
|
Packit |
ed3af9 |
1. Type './configure'
|
|
Packit |
ed3af9 |
2. Type 'make install'
|
|
Packit |
ed3af9 |
|
|
Packit |
ed3af9 |
Generic configuration instructions are in the file INSTALL.
|
|
Packit |
ed3af9 |
|
|
Packit |
ed3af9 |
The following 3rd-party libraries will be used by gd if found by configure.
|
|
Packit |
ed3af9 |
While gd will compile and install even without these, we suggest that at
|
|
Packit |
ed3af9 |
least zlib and libpng are installed, and recommend that freetype and jpeg
|
|
Packit |
ed3af9 |
are installed as well:
|
|
Packit |
ed3af9 |
|
|
Packit |
ed3af9 |
1. zlib, available from http://www.gzip.org/zlib/
|
|
Packit |
ed3af9 |
Data compression library
|
|
Packit |
ed3af9 |
|
|
Packit |
ed3af9 |
2. libpng, available from http://www.libpng.org/pub/png/
|
|
Packit |
ed3af9 |
Portable Network Graphics library; requires zlib
|
|
Packit |
ed3af9 |
|
|
Packit |
ed3af9 |
3. FreeType 2.x, available from http://www.freetype.org/
|
|
Packit |
ed3af9 |
Free, high-quality, and portable font engine
|
|
Packit |
ed3af9 |
|
|
Packit |
ed3af9 |
4. JPEG library, available from http://www.ijg.org/
|
|
Packit |
ed3af9 |
Portable JPEG compression/decompression library
|
|
Packit |
ed3af9 |
|
|
Packit |
ed3af9 |
5. XPM, available from http://koala.ilog.fr/lehors/xpm.html
|
|
Packit |
ed3af9 |
X Pixmap library
|
|
Packit |
ed3af9 |
|
|
Packit |
ed3af9 |
If any of these libraries are installed, but not detected by configure,
|
|
Packit |
ed3af9 |
you can use the following command line options:
|
|
Packit |
ed3af9 |
|
|
Packit |
ed3af9 |
--with-png=DIR
|
|
Packit |
ed3af9 |
|
|
Packit |
ed3af9 |
Without the DIR argument, configure will check for png header files and
|
|
Packit |
ed3af9 |
libraries in a default location. To switch off png support, use
|
|
Packit |
ed3af9 |
--without-png, or --with-png=no.
|
|
Packit |
ed3af9 |
|
|
Packit |
ed3af9 |
If the DIR argument is specified, configure tries to find the png header
|
|
Packit |
ed3af9 |
files in DIR/include, and the libraries in DIR/lib. To accommodate
|
|
Packit |
ed3af9 |
OpenBSD ports, DIR/include/libpng is also checked if necessary.
|
|
Packit |
ed3af9 |
|
|
Packit |
ed3af9 |
--with-freetype=DIR
|
|
Packit |
ed3af9 |
|
|
Packit |
ed3af9 |
Dto. for freetype 2.x library. The search path for include files is
|
|
Packit |
ed3af9 |
DIR/include/freetype2.
|
|
Packit |
ed3af9 |
|
|
Packit |
ed3af9 |
--with-jpeg=DIR
|
|
Packit |
ed3af9 |
|
|
Packit |
ed3af9 |
Dto. for jpeg library.
|
|
Packit |
ed3af9 |
|
|
Packit |
ed3af9 |
--with-xpm=DIR
|
|
Packit |
ed3af9 |
|
|
Packit |
ed3af9 |
Dto. for xpm library.
|
|
Packit |
ed3af9 |
|
|
Packit |
ed3af9 |
--with-tiff=DIR
|
|
Packit |
ed3af9 |
|
|
Packit |
ed3af9 |
Dto. for TIFF library.
|