php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #27625 Freetype not to compile into
Submitted: 2004-03-17 07:12 UTC Modified: 2004-03-24 08:08 UTC
From: urs@php.net Assigned:
Status: Closed Package: *Compile Issues
PHP Version: 5.0.0b4 (beta4) OS: OS X 10.3.2
Private report: No CVE-ID: None
 [2004-03-17 07:12 UTC] urs@php.net
Description:
------------
PHP 5 compiles and installs properly on OSX; but with adding the "--with-freetype-dir=/sw/" it finally states, that the freetype library could not be found even though they have been installed priorly with "sudo apt-get install freetype2-dev freetype2".

The configure statement looks like this:

./configure \
--disable-cgi \
--disable-pdo \
--prefix=/usr/local/php5 \
--with-zlib \
--with-iconv=/sw/ \
--without-bundle-libxml \
--with-dom=/sw/ \
--with-libxml-dir=/sw/ \
--with-xsl=/sw/ \
--disable-pear \
--with-gd \
--with-freetype-dir=/sw/ \
--with-jpeg-dir=/sw/ \
--with-png-dir=/sw/ \
--enable-sockets \
--enable-pcntl \
--enable-shmop \
--enable-sysvshm \
--enable-sysvsem \
--with-mysql=/usr/local/mysql/ \
--enable-debug \
--with-apxs2=/usr/local/apache2/bin/apxs

Reproduce code:
---------------
Here the relevant configure results:

checking whether to enable FTP support... no
checking for GD support... yes
checking for the location of libjpeg... /sw/
checking for the location of libpng... /sw/
checking for the location of libXpm... no
checking for FreeType 1.x support... no
checking for FreeType 2... /sw/
checking for T1lib support... no
checking whether to enable truetype string function in GD... no
checking whether to enable JIS-mapped Japanese font support in GD... no
checking for fabsf... yes
checking for floorf... yes
checking for jpeg_read_header in -ljpeg... yes
checking for png_write_image in -lpng... yes
If configure fails try --with-xpm-dir=<DIR>
configure: error: freetype2 not found!
blaze:~/Desktop/tmp/php-5.0.0b4 me$ 

Expected result:
----------------
It was expected, that PHP 5 would compile properly without an error, since the libs are there.

Actual result:
--------------
If configure fails try --with-xpm-dir=<DIR>
configure: error: freetype2 not found!
blaze:~/Desktop/tmp/php-5.0.0b4 me$ 

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-03-17 09:24 UTC] iliaa@php.net
What does your config.log say in regard to freetype2? 
 [2004-03-24 08:08 UTC] urs@php.net
The problem has been solved. By specifically pointing to --with-freetype-dir=/sw/lib/freetype2/ PHP5 compiled without any problem.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 14:01:30 2024 UTC