Toon posts:

php + freetype + gd

Pagina: 1
Acties:

Verwijderd

Topicstarter
Ik probeer om grafiekjes te tekenen met php gd met freetype te installeren, maar tot nu toe lukt dat niet echt.

Volgens een howto zou het zo moeten kunnen:
code:
1
2
3
4
5
6
7
8
#freetype
sources: tar zxvf freetype-2.0.4.tar.gz 
tar zxvf freetype-2.0.4.tar.gz 
cd freetype-2.0.4
make setup
make
make install
cd ..


code:
1
2
3
4
5
6
7
8
9
10
11
12
sources: http://www.boutell.com/gd/http/gd-2.0.1.tar.gz 
tar zxvf gd-2.0.1.tar.gz 
cd gd-2.0.1 
freetype-config --cflags (kijk voor regel voor de volgende stap)
pico Makefile
INCLUDEDIRS=-I. -I/usr/include/freetype2 
in
INCLUDEDIRS=-I. -I/usr/local/include/freetype2 
make
make libgd.a
make install
cd..

...
code:
1
2
3
4
5
6
7
# Apache
Sources: http://httpd.apache.org 
tar -zxvf apache*.tar.gz
mv apache_* apache
cd apache
./configure
cd ..


code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#PHP
Sources: http://nl.php.net
tar -zxvf php.tar.gz
rm php.tar.gz
mv php-4.1.1/ php
cd php
./configure \
  --with-apache=/usr/src/apache \
  --enable-track-vars \
  --enable-magic-quotes \
  --with-mysql \
  --with-zlib=/usr/local \
  --with-jpeg-dir=/usr/src/jpeg \
  --with-png-dir=/usr/src/libpng \
  --with-imap \
  --enable-gd-native-tt \
  --with-freetype-dir \
  --with-curl \
  --with-xml \
  --with-ftp \
  --with-gd \
  --with-ttf
make
make install


code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
cd apache
./configure \
  --datadir=/www/ \
  --enable-module=status \
  --enable-shared=status \
  --with-layout=Apache \
  --prefix=/usr/local/apache \
  --enable-module=rewrite \
  --enable-shared=rewrite \
  --activate-module=src/modules/php4/libphp4.a \
  --activate-module=src/modules/auth_mysql/libauth_mysql.a \
  --enable-module=most \
  --disable-rule=WANTHSREGEX \
  --enable-module=so 

make
make install

Dat levert geen fouten op bij het compileren, maar hij zeurt wel als hij een plaatje moet maken:
Warning: libgd was not built with FreeType font support in /www/datadir/src/jpgraph.php on line 3132

  • Roelant
  • Registratie: Januari 2001
  • Niet online
[forum=24] >> [forum=23]

Verwijderd

Topicstarter
Iemand die freetype+gd goed heeft draaien?