Using PDFlib with GD as PECL package
| From: | Rainer Schaaf | Date: | Wed, 07 Jul 2004 14:04:30 +0000 |
| Subject: | Using PDFlib with GD as PECL package | ||
| Groups: | php.pecl.dev | ||
| Request: | Send a blank email to pecl-dev+get-944@lists.php.net to get a copy of this message | ||
Hi,
since PDFlib moved to PECL a build fails if one tries to build PDFlib
with GD support.
I spoke with some guys at LinuxTag in Karlsruhe about this problem,
but without a solution till now. So I wanted to ask here for ideas on
how to handle this.
I know two things to work around this in the moment, but none of them
is perfect:
- remove GD support in pdf.c by default.
- document (where?) that one has to put the gd headerfiles to
/usr/include/php before building the pdflib pecl package.
here an example of this problem:
------
I've compiled php --with-gd=shared
and it is visible in phpinfo
GD Support enabled
GD Version bundled (2.0.23 compatible)
FreeType Support enabled
FreeType Linkage with freetype
GIF Read Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled
but now
at the end PDFlib complain about
...
creating config.h
running: make
/bin/sh /var/tmp/pear-build-root/pdflib-2.0/libtool --mode=compile gcc
-I. -I/tmp/tmpKFo4Gl/pdflib-2.0 -DPHP_ATOM_INC
-I/var/tmp/pear-build-root/pdflib-2.0/include
-I/var/tmp/pear-build-root/pdflib-2.0/main -I/tmp/tmpKFo4Gl/pdflib-2.0
-I/usr/include/php -I/usr/include/php/main -I/usr/include/php/Zend
-I/usr/include/php/TSRM -I/usr/src/PDFlib-6.0.0-Linux/bind/c/include
-DHAVE_CONFIG_H -O2 -march=i686 -funroll-loops -D_REENTRANT -fPIC
-prefer-pic -c /tmp/tmpKFo4Gl/pdflib-2.0/pdf.c -o pdf.lo
gcc -I. -I/tmp/tmpKFo4Gl/pdflib-2.0 -DPHP_ATOM_INC
-I/var/tmp/pear-build-root/pdflib-2.0/include
-I/var/tmp/pear-build-root/pdflib-2.0/main -I/tmp/tmpKFo4Gl/pdflib-2.0
-I/usr/include/php -I/usr/include/php/main -I/usr/include/php/Zend
-I/usr/include/php/TSRM -I/usr/src/PDFlib-6.0.0-Linux/bind/c/include
-DHAVE_CONFIG_H -O2 -march=i686 -funroll-loops -D_REENTRANT -fPIC -c
/tmp/tmpKFo4Gl/pdflib-2.0/pdf.c -fPIC -DPIC -o pdf.lo
/tmp/tmpKFo4Gl/pdflib-2.0/pdf.c:90: ext/gd/php_gd.h: No such file or
directory
/tmp/tmpKFo4Gl/pdflib-2.0/pdf.c:92: ext/gd/libgd/gd.h: No such file or
directory
make: *** [pdf.lo] Error 1
`make' failed
-------
--
Best regards,
Rainer Schaaf rjs@pdflib.com http://www.pdflib.com
Personalize PDF: PDFlib Personalization Server and Block plugin
_______PDFlib - a library for generating PDF on the fly________