Bug #66198 [Com]: gd extension fails to build with freetype 2.5.1
| From: | vidurri at hotmail dot com | Date: | Fri, 20 Dec 2013 03:21:38 +0000 |
| Subject: | Bug #66198 [Com]: gd extension fails to build with freetype 2.5.1 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-183410@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=66198&edit=1
ID: 66198
Comment by: vidurri at hotmail dot com
Reported by: php-bugs-2013 at ryandesign dot com
Summary: gd extension fails to build with freetype 2.5.1
Status: Duplicate
Type: Bug
Package: GD related
Operating System: OS X 10.9
PHP Version: 5.5.6
Block user comment: N
Private report: N
New Comment:
Solution in bug #66328 by Rafael Rocha Vidaurri
SOLUTION:
Let's search for the file on both directories replacing (on PHP "configure" file):
if test -f "$i/include/freetype2/freetype/freetype.h"; then
For:
if test -f "$i/include/freetype2/freetype/freetype.h" || test -f
"$i/include/freetype2/freetype.h"; then
Bye ;)
Previous Comments:
------------------------------------------------------------------------
[2013-12-11 21:07:27] aharvey@php.net
Duplicate of bug #64405.
------------------------------------------------------------------------
[2013-11-29 06:29:44] php-bugs-2013 at ryandesign dot com
Description:
------------
With freetype 2.5.1, configuring php's gd extension fails to find
freetype.h. This was reported to the MacPorts project here:
https://trac.macports.org/ticket/41585
The problem occurs because you're looking for the file here:
$PHP_FREETYPE_DIR/include/freetype2/freetype/freetype.h
but that's not where that file is located anymore as of freetype
2.5.1.
The freetype CHANGES file says, in part:
CHANGES BETWEEN 2.5 and 2.5.1
...
II. IMPORTANT CHANGES
...
- The header file layout has been changed. After installation,
all files are now located in `<prefix>/include/freetype2'.
Applications that use (a) `freetype-config' or FreeType's
`pkg-config' file to get the include directory for the compiler,
and (b) the documented way for header inclusion like
#include <ft2build.h>
#include FT_FREETYPE_H
...
don't need any change to the source code.
Bug #64405 requests you use pkg-config to find freetype.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=66198&edit=1