Bug #66198 [Opn->Dup]: gd extension fails to build with freetype 2.5.1

From: Date: Wed, 11 Dec 2013 21:07:28 +0000
Subject: Bug #66198 [Opn->Dup]: gd extension fails to build with freetype 2.5.1
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-183242@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 Updated by: aharvey@php.net Reported by: php-bugs-2013 at ryandesign dot com Summary: gd extension fails to build with freetype 2.5.1 -Status: Open +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: Duplicate of bug #64405. Previous Comments: ------------------------------------------------------------------------ [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

« previous php.bugs (#183242) next »