php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #41185 Unable to add FreeType support
Submitted: 2007-04-25 09:23 UTC Modified: 2007-04-25 11:08 UTC
From: erwan dot loaec at gmail dot com Assigned:
Status: Not a bug Package: GD related
PHP Version: 5.2.1 OS: Debian Sarge (kernel 2.6.8-3)
Private report: No CVE-ID: None
 [2007-04-25 09:23 UTC] erwan dot loaec at gmail dot com
Description:
------------
I'm trying to install php 5.2.1 with apache 2.2.4.
I've no problem during configure and make. However GD does not support FreeType.

checking for GD support... yes
checking for FreeType 2... /root/src/LIB/freetype2.2
checking whether to enable truetype string function in GD... yes

Reproduce code:
---------------
I've compiled freetype (try with both 2.1.10 and 2.2.1 ) with 
./configure --prefix=/root/src/LIB/freetype2.2 --enable-shared --disable-static
I've also tried from package (.deb)

I've compiled php with
./configure \
--prefix=/opt/php-5.2.1 \
--enable-mbstring \
--enable-sockets \
--enable-memory-limit \
--with-apxs2=/opt/httpd-2.2.4/bin/apxs \
--with-mysql=/opt/mysql-5.0.37 \
--with-mcrypt \
--with-iconv \
--with-openssl \
--with-kerberos \
--with-zip \
--with-zlib \
--with-bz2 \
--with-ldap \
--with-snmp \
--with-pear \
--without-sqlite \
--disable-ipv6 \
--enable-gd-native-ttf \
--with-gd \
--with-png-dir=/root/src/LIB/libpng \
--with-freetype-dir=/root/src/LIB/freetype2.2

I've also tried with --with-ttf. Moreover i'm not able to support jpeg, --with-png-dir produce no error, but does not add jpeg support.


Expected result:
----------------
I'm not able to obtain the following :

FreeType Support => enabled
FreeType Linkage => with freetype
FreeType Version => 2.X.X

Actual result:
--------------
actual phpinfos() output:

GD Support => enabled
GD Version => bundled (2.0.28 compatible)
GIF Read Support => enabled
GIF Create Support => enabled
PNG Support => enabled
WBMP Support => enabled
XBM Support => enabled

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-04-25 09:39 UTC] tony2001@php.net
>/root/src/LIB/freetype2.2
This does not look like *installation prefix*.
 [2007-04-25 10:03 UTC] erwan dot loaec at gmail dot com
Yes but actually it is. I've specified the "2.2" because i've tried many version of freetype (2.3.4,2.2.1,2.1.10).

It's not the uncompressed directory (which is freetype-2.2.1 in that case)

I can add that i've EXACTLY the same problem : no error during configuration and compilation, with the libfreetype of my sarge (freetype version 2.1.7-6)

I don't what the problem can be, i didn't found information neither in config.log nor in the stdout/stderr of the ./configure. (see above for the configure output)
 [2007-04-25 10:09 UTC] tony2001@php.net
Try this:
make clean && ./config.nice && make
 [2007-04-25 11:01 UTC] erwan dot loaec at gmail dot com
It works, thank you very much !

I don't know what to say... I'm a big idiot, obviously everyone should try that before reporting a bug ^^

Thank you tony2001 !
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Apr 29 23:01:28 2024 UTC