phpbar.de logo

Mailinglisten-Archive

[php] GD mit PHP

[php] GD mit PHP

Kristian =?iso-8859-1?Q?K=F6hntopp?= kk_(at)_netuse.de
Wed, 01 Sep 1999 13:17:18 +0200


thomas.schuermann_(at)_stadt-gladbeck.de wrote:
> D A N K E Kristian,
> 
> ich will auch kein GIF verwenden (Problem noch aus CompuServe-Zeiten
> bekannt). Ich will GD mit PNG verwenden. Nur..., ich kriegs irgendwie
> nicht in PHP eingebunden. Bin gerade beim 3. Versuch (oder schon der
> 4.?).

Ich bin hier auf

SunOS ipts-lmz 5.7 Generic_106541-05 sun4u sparc SUNW,Ultra-250

mit selbstgebauten Paketen für Freetype 1.2, GD 1.6.3 und PHP-3.0.12.
Meine Config:

./configure --with-mysql=/opt/NUmysql-3.22.21\
        --with-dbase=yes \
        --with-config-file-path=/opt/NUphp3/lib \
        --with-exec-dir=/opt/bin \
        --disable-dba \
        --enable-sysvshm \
        --enable-sysvsem \
        --enable-debug=no \
        --enable-safe-mode=no \
        --enable-url-fopen-wrapper=yes \
        --with-gd=/opt/NUgd-1.6.3\
        --with-ttf=/opt/NUfreetype-1.2\
        --enable-track-vars=yes \
        --prefix=/opt/GNUphp3 \
        --enable-force-cgi-redirect

scheitert mit

ld: warning: file libpng.so.2: required by /opt/NUgd-1.6.3/lib/libgd.so, not fou
nd
ld: warning: file libz.so: required by /opt/NUgd-1.6.3/lib/libgd.so, not found
Undefined                       first referenced
 symbol                             in file
png_set_strip_16                    /opt/NUgd-1.6.3/lib/libgd.so
png_set_read_fn                     /opt/NUgd-1.6.3/lib/libgd.so
png_create_write_struct             /opt/NUgd-1.6.3/lib/libgd.so
png_create_read_struct              /opt/NUgd-1.6.3/lib/libgd.so
png_set_tRNS                        /opt/NUgd-1.6.3/lib/libgd.so
png_write_end                       /opt/NUgd-1.6.3/lib/libgd.so
png_get_PLTE                        /opt/NUgd-1.6.3/lib/libgd.so
png_read_end                        /opt/NUgd-1.6.3/lib/libgd.so
png_set_packing                     /opt/NUgd-1.6.3/lib/libgd.so
png_read_info                       /opt/NUgd-1.6.3/lib/libgd.so
png_write_image                     /opt/NUgd-1.6.3/lib/libgd.so
png_destroy_write_struct            /opt/NUgd-1.6.3/lib/libgd.so
png_check_sig                       /opt/NUgd-1.6.3/lib/libgd.so
png_set_dither                      /opt/NUgd-1.6.3/lib/libgd.so
uncompress                          /opt/NUgd-1.6.3/lib/libgd.so
png_get_IHDR                        /opt/NUgd-1.6.3/lib/libgd.so
png_get_rowbytes                    /opt/NUgd-1.6.3/lib/libgd.so
png_set_strip_alpha                 /opt/NUgd-1.6.3/lib/libgd.so
png_read_update_info                /opt/NUgd-1.6.3/lib/libgd.so
png_create_info_struct              /opt/NUgd-1.6.3/lib/libgd.so
png_set_IHDR                        /opt/NUgd-1.6.3/lib/libgd.so
png_write_info                      /opt/NUgd-1.6.3/lib/libgd.so
png_set_write_fn                    /opt/NUgd-1.6.3/lib/libgd.so
png_get_io_ptr                      /opt/NUgd-1.6.3/lib/libgd.so
png_read_image                      /opt/NUgd-1.6.3/lib/libgd.so
png_destroy_read_struct             /opt/NUgd-1.6.3/lib/libgd.so
png_get_error_ptr                   /opt/NUgd-1.6.3/lib/libgd.so
png_set_sig_bytes                   /opt/NUgd-1.6.3/lib/libgd.so
png_get_valid                       /opt/NUgd-1.6.3/lib/libgd.so
png_get_tRNS                        /opt/NUgd-1.6.3/lib/libgd.so
compress                            /opt/NUgd-1.6.3/lib/libgd.so
png_set_PLTE                        /opt/NUgd-1.6.3/lib/libgd.so

In der Tat sind die beiden operativen Zeilen


ld: warning: file libpng.so.2: required by /opt/NUgd-1.6.3/lib/libgd.so, not found
ld: warning: file libz.so: required by /opt/NUgd-1.6.3/lib/libgd.so, not found

Das deckt sich mit

http://www.boutell.com/gd/

     gd 1.6.3 requires that the following libraries also be installed: 

     libpng 
     zlib 

und

What else do I need to use gd?

As of version 1.6, you also need the zlib compression library, and the libpng library. As of version 1.6.2, you can draw text using antialiased TrueType fonts if you also have the libttf library installed, but this is not mandatory. zlib is available for a variety of platforms from the zlib web site. libpng is available for a variety of platforms from the PNG web site. 

libz habe ich zur Hand, libpng auf dieser Kiste grade nicht. Falls ich heute abend Zeit finde, gucke ich da noch mal rein.

Kristian

-- 
Kristian Köhntopp, NetUSE Kommunikationstechnologie GmbH
Siemenswall, D-24107 Kiel, Germany, +49 431 386 436 00
Using PHP3? See our web development library at
http://phplib.shonline.de/ (GPL)


php::bar PHP Wiki   -   Listenarchive