Re: compilar php con GD
| From: | Jose Luis Pumarega Rubio | Date: | Mon, 31 Mar 2003 11:40:48 +0000 |
| Subject: | Re: compilar php con GD | ||
| References: | 1 2 | Groups: | php.general.es |
| Request: | Send a blank email to general-es+get-34482@lists.php.net to get a copy of this message | ||
Ojito:
GD 1.8.4 viene con sorpresita. Las funciones ttf no funcionan correctamente. No funcionan, de hecho, ni correcta ni incorrectamente. Muestran el siguiente mensaje de error:
Warning: libgd was not built with TrueType font support in /www/xxxx.php on line x
te lo digo antes de que te metas al fregao, no sea que luego lo tengas que cambiar todo.
+ info en
http://www.alt-php-faq.org/local/68/
http://bugs.php.net/bug.php?id=12065
Te extraigo lo esencial:
"It's a GD 1.8.4 problem:
It has both ttf and freetype support in different files; you built it
with freetype support, and PHP expects it to use TTF functions, which GD
reports are not there.
This problem is not present in GD 2.0.1; the TTF functions call the FT
functions instead.
I'll work up a patch for this case, so that PHP can try and stay ahead"
Cuidado por que a partir de GD 2.0.8, hay que parchear PHP para que la soporte (y en la última versión de PHP, GD venía integrada "de serie", te lo digo por si no te interesa más pillarla directamente).
Isaac Salgueiro wrote:
Hola a tod@s Tengo problemas para compilar php con soporte para imágenes. El comando configure que utilizo es: './configure' '--with-apache=../apache_1.3.27/' '--with-interbase=/opt/interbase/' '--with-mysql' '--with-config-file-path=/etc/httpd/' '--enable-track-vars' '--with-gd-dir=/usr/lib' '--with-jpeg-dir=/usr/lib' '--with-png-dir=/usr/lib' '--with-zlib-dir=/usr/lib' '--with-tiff-dir=/usr/lib' '--with-pdflib=/usr/local/' '--enable-exif' '--with-t1lib' '--with-ttf' pero en el phpinfo() no me muestra nada de soporte GD, y de hecho cuando trato de ejecutar imagecreatefromstring() me dice que la función no existe. tanto configure como make no me devuelven ningún error y puedo iniciar apache sin problemas, pero php sigue sin las funciones de imágenes. Utilizo php-4.2.2 con GD1.8.4. --------------------------------------------------------------------- Archivo On-line: http://www.phpes.com/ via news: news://news.phpes.com/ Manual PHP en español: http://www.php.net/manual/es/ Para dar de baja la suscripción, mande un mensaje a: lista-unsubscribe@phpes.com