
Error compiling php-5.3.1
--------------030001060107000205040508
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Hello,
I am compiling php and its giving me this error: (I am using freetype
-2.3.5 )
Generating Code...
rc /fo Release_TS\php5ts.dll.res /d FILE_DESCRIPTION="\"PHP Script
Interpreter\"" /d FILE_NAME="\"php5ts.dll\"" /d PRODUCT_NAME="\"PHP
Script Interpreter\"" /IRelease_TS /d
MC_INCLUDE="\"Release_TS\wsyslog.rc\"" win32\build\template.rc
Creating library Release_TS\php5ts.lib and object Release_TS\php5ts.exp
php_xmlreader.obj : warning LNK4217: locally defined symbol
_php_dom_create_object imported in function _zim_xmlreader_expand
php_xmlreader.obj : warning LNK4049: locally defined symbol
_dom_node_class_entry imported
rc /n /fo Release_TS\php_gd2.dll.res /d FILE_DESCRIPTION="\"GD
imaging\"" /d FILE_NAME="\"php_gd2.dll\"" /d
URL="\"http://www.php.net\"" /d INTERNAL_NAME="\"GD extension\"" /d
THANKS_GUYS="\"Thanks to Rasmus Lerdorf, Stig Bakken, Jim Winstead,
Jouni Ahto, Ilia Alshanetsky, Pierre-Alain Joye, Marcus Boerger\""
win32\build\template.rc
Creating library Release_TS\php_gd2.lib and object
Release_TS\php_gd2.exp
gdft.obj : error LNK2019: unresolved external symbol __imp__FT_New_Face
referenced in function _fontFetch
gdft.obj : error LNK2019: unresolved external symbol __imp__FT_Done_Face
referenced in function _fontRelease
gdft.obj : error LNK2019: unresolved external symbol
__imp__FT_Done_FreeType referenced in function _php_gd_gdFontCacheShutdown
gdft.obj : error LNK2019: unresolved external symbol
__imp__FT_Init_FreeType referenced in function _php_gd_gdFontCacheSetup
gdft.obj : error LNK2019: unresolved external symbol
__imp__FT_Glyph_To_Bitmap referenced in function _php_gd_gdImageStringFTEx
gdft.obj : error LNK2019: unresolved external symbol
__imp__FT_Glyph_Get_CBox referenced in function _php_gd_gdImageStringFTEx
gdft.obj : error LNK2019: unresolved external symbol __imp__FT_Get_Glyph
referenced in function _php_gd_gdImageStringFTEx
gdft.obj : error LNK2019: unresolved external symbol
__imp__FT_Load_Glyph referenced in function _php_gd_gdImageStringFTEx
gdft.obj : error LNK2019: unresolved external symbol
__imp__FT_Get_Kerning referenced in function _php_gd_gdImageStringFTEx
gdft.obj : error LNK2019: unresolved external symbol
__imp__FT_Get_Char_Index referenced in function _php_gd_gdImageStringFTEx
gdft.obj : error LNK2019: unresolved external symbol
__imp__FT_Set_Transform referenced in function _php_gd_gdImageStringFTEx
gdft.obj : error LNK2019: unresolved external symbol
__imp__FT_Set_Char_Size referenced in function _php_gd_gdImageStringFTEx
Release_TS\php_gd2.dll : fatal error LNK1120: 12 unresolved externals
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio
8\VC\BIN\cl.exe"' : return code '0x2'
Stop.
Compilation of php failed
Please suggest, so that i can move forward with this.
--
Regards,
Sachin Srivastava
EnterpriseDB <http://www.enterprisedb.com>, the Enterprise Postgres
<http://www.enterprisedb.com> company.
--------------030001060107000205040508--
Re: Error compiling php-5.3.1
hi,
It works just fine here (and all our build boxes).
Where did you get the freetype library and how do you compile PHP?
Please try again using this simple howto:
http://wiki.php.net/internals/windows/stepbystepbuild
Cheers,
--
Pierre
On Thu, Feb 25, 2010 at 3:17 PM, Sachin Srivastava
<sachin.srivastava [at] enterprisedb.com> wrote:
> Hello,
>
>
> I am compiling php and its giving me this error: (I am using freetype -2.=
3.5
> )
>
> Generating Code...
> =A0 =A0rc /fo Release_TS\php5ts.dll.res /d FILE_DESCRIPTION=3D"\"PHP Scri=
pt
> Interpreter\"" =A0/d FILE_NAME=3D"\"php5ts.dll\"" /d PRODUCT_NAME=3D"\"PH=
P Script
> Interpreter\"" =A0/IRelease_TS /d MC_INCLUDE=3D"\"Release_TS\wsyslog.rc\"=
"
> =A0win32\build\template.rc
> =A0 Creating library Release_TS\php5ts.lib and object Release_TS\php5ts.e=
xp
> php_xmlreader.obj : warning LNK4217: locally defined symbol
> _php_dom_create_object imported in function _zim_xmlreader_expand
> php_xmlreader.obj : warning LNK4049: locally defined symbol
> _dom_node_class_entry imported
> =A0 =A0rc /n /fo Release_TS\php_gd2.dll.res /d FILE_DESCRIPTION=3D"\"GD i=
maging\""
> /d FILE_NAME=3D"\"php_gd2.dll\"" /d URL=3D"\"http://www.php.net\"" /d
> INTERNAL_NAME=3D"\"GD extension\"" /d THANKS_GUYS=3D"\"Thanks to Rasmus L=
erdorf,
> Stig Bakken, Jim Winstead, Jouni Ahto, Ilia Alshanetsky, Pierre-Alain Joy=
e,
> Marcus Boerger\"" win32\build\template.rc
> =A0 Creating library Release_TS\php_gd2.lib and object Release_TS\php_gd2=
..exp
> gdft.obj : error LNK2019: unresolved external symbol __imp__FT_New_Face
> referenced in function _fontFetch
> gdft.obj : error LNK2019: unresolved external symbol __imp__FT_Done_Face
> referenced in function _fontRelease
> gdft.obj : error LNK2019: unresolved external symbol __imp__FT_Done_FreeT=
ype
> referenced in function _php_gd_gdFontCacheShutdown
> gdft.obj : error LNK2019: unresolved external symbol __imp__FT_Init_FreeT=
ype
> referenced in function _php_gd_gdFontCacheSetup
> gdft.obj : error LNK2019: unresolved external symbol
> __imp__FT_Glyph_To_Bitmap referenced in function _php_gd_gdImageStringFTE=
x
> gdft.obj : error LNK2019: unresolved external symbol
> __imp__FT_Glyph_Get_CBox referenced in function _php_gd_gdImageStringFTEx
> gdft.obj : error LNK2019: unresolved external symbol __imp__FT_Get_Glyph
> referenced in function _php_gd_gdImageStringFTEx
> gdft.obj : error LNK2019: unresolved external symbol __imp__FT_Load_Glyph
> referenced in function _php_gd_gdImageStringFTEx
> gdft.obj : error LNK2019: unresolved external symbol __imp__FT_Get_Kernin=
g
> referenced in function _php_gd_gdImageStringFTEx
> gdft.obj : error LNK2019: unresolved external symbol
> __imp__FT_Get_Char_Index referenced in function _php_gd_gdImageStringFTEx
> gdft.obj : error LNK2019: unresolved external symbol __imp__FT_Set_Transf=
orm
> referenced in function _php_gd_gdImageStringFTEx
> gdft.obj : error LNK2019: unresolved external symbol __imp__FT_Set_Char_S=
ize
> referenced in function _php_gd_gdImageStringFTEx
> Release_TS\php_gd2.dll : fatal error LNK1120: 12 unresolved externals
> NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio
> 8\VC\BIN\cl.exe"' : return code '0x2'
> Stop.
> Compilation of php failed
>
> Please suggest, so that i can move forward with this.
>
> --
> Regards,
> Sachin Srivastava
> EnterpriseDB <http://www.enterprisedb.com>, the Enterprise Postgres
> <http://www.enterprisedb.com> company.
>
--
Pierre
[at] pierrejoye | http://blog.thepimp.net | http://www.libgd.org
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: Error compiling php-5.3.1
--------------030706000009050005010101
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Hello,
Thanks for the reply.
I installed the freetype v2.3.5 using the setup found at
http://gnuwin32.sourceforge.net/packages/freetype.htm
I am compiling php as:
cd C:\php-5.3.1
cscript /nologo win32\build\buildconf.js
cscript /nologo configure.js --enable-snapshot-build --enable-cli
--enable-cgi --with-openssl=C:\build\OpenSSL --enable-pdo
--with-extra-includes=C:\build\iconv\include;C:\build\libxml 2\include;C:\build\libxslt\include;C:\build\OpenSSL\include; C:\apache\include;C:\build\zlib\include;C:\pgsql\include;C:\ build\jpeg\include;C:\build\libpng\include;C:\build\freetype \include;C:\build\gettext\include
--with-extra-libs=C:\build\iconv\lib;C:\build\libxml2\lib;C: \build\libxslt\lib;C:\build\OpenSSL\lib;C:\apache\lib;C:\bui ld\zlib\lib;C:\pgsql\lib;C:\build\jpeg\lib;C:\build\libpng\l ib;C:\build\freetype\lib;C:\build\gettext\lib
--enable-apache=yes --with-apache-includes=C:\apache\include
--with-apache-libs=C:\apache\lib --enable-apache2filter
--enable-apache2-2filter --enable-apache2handler
--enable-apache2-2handler --with-apache-hooks --with-pgsql
--with-pdo-pgsql --enable-prefix=C:\php --enable-one-shot
--enable-zend-multibyte=yes --enable-cli-win32 --enable-embed
--enable-isapi --enable-ftp --without-mysql --without-mysqli
--without-pdo-mysql --without-sqlite --without-pdo-sqlite
--without-pdo-sqlite-external --with-xsl=SHARED --enable-mbstring
--enable-mbregex --enable-shmop --enable-exif --enable-soap
--enable-sockets --with-php-build=C:\build\phpBuild\win32build
--with-gd=SHARED
nmake
FYI: I get the same error with php-5.3.0 as well, while i can easily
compile 5.2.12 with above configurations.
Also, i have tried building this, on Windows XP SP2 32 bit with MS
Visual Studio 2005 and on Windows 7 32 bit with MS Visual Studio 2008.
Both places i got the same error.
Any suggestions, so that i can move to php-5.3 ??
On 2/25/10 7:54 PM, Pierre Joye wrote:
> hi,
>
> It works just fine here (and all our build boxes).
>
> Where did you get the freetype library and how do you compile PHP?
>
> Please try again using this simple howto:
>
> http://wiki.php.net/internals/windows/stepbystepbuild
>
> Cheers, -- Pierre
>
> On Thu, Feb 25, 2010 at 3:17 PM, Sachin Srivastava
> <sachin.srivastava [at] enterprisedb.com> wrote:
> > Hello,
> >
> >
> > I am compiling php and its giving me this error: (I am using
> > freetype -2.3.5 )
> >
> > Generating Code... rc /fo Release_TS\php5ts.dll.res /d
> > FILE_DESCRIPTION="\"PHP Script Interpreter\"" /d
> > FILE_NAME="\"php5ts.dll\"" /d PRODUCT_NAME="\"PHP Script
> > Interpreter\"" /IRelease_TS /d
> > MC_INCLUDE="\"Release_TS\wsyslog.rc\"" win32\build\template.rc
> > Creating library Release_TS\php5ts.lib and object
> > Release_TS\php5ts.exp php_xmlreader.obj : warning LNK4217: locally
> > defined symbol _php_dom_create_object imported in function
> > _zim_xmlreader_expand php_xmlreader.obj : warning LNK4049: locally
> > defined symbol _dom_node_class_entry imported rc /n /fo
> > Release_TS\php_gd2.dll.res /d FILE_DESCRIPTION="\"GD imaging\"" /d
> > FILE_NAME="\"php_gd2.dll\"" /d URL="\"http://www.php.net\"" /d
> > INTERNAL_NAME="\"GD extension\"" /d THANKS_GUYS="\"Thanks to Rasmus
> > Lerdorf, Stig Bakken, Jim Winstead, Jouni Ahto, Ilia Alshanetsky,
> > Pierre-Alain Joye, Marcus Boerger\"" win32\build\template.rc
> > Creating library Release_TS\php_gd2.lib and object
> > Release_TS\php_gd2.exp gdft.obj : error LNK2019: unresolved
> > external symbol __imp__FT_New_Face referenced in function
> > _fontFetch gdft.obj : error LNK2019: unresolved external symbol
> > __imp__FT_Done_Face referenced in function _fontRelease gdft.obj :
> > error LNK2019: unresolved external symbol __imp__FT_Done_FreeType
> > referenced in function _php_gd_gdFontCacheShutdown gdft.obj :
> > error LNK2019: unresolved external symbol __imp__FT_Init_FreeType
> > referenced in function _php_gd_gdFontCacheSetup gdft.obj : error
> > LNK2019: unresolved external symbol __imp__FT_Glyph_To_Bitmap
> > referenced in function _php_gd_gdImageStringFTEx gdft.obj : error
> > LNK2019: unresolved external symbol __imp__FT_Glyph_Get_CBox
> > referenced in function _php_gd_gdImageStringFTEx gdft.obj : error
> > LNK2019: unresolved external symbol __imp__FT_Get_Glyph referenced
> > in function _php_gd_gdImageStringFTEx gdft.obj : error LNK2019:
> > unresolved external symbol __imp__FT_Load_Glyph referenced in
> > function _php_gd_gdImageStringFTEx gdft.obj : error LNK2019:
> > unresolved external symbol __imp__FT_Get_Kerning referenced in
> > function _php_gd_gdImageStringFTEx gdft.obj : error LNK2019:
> > unresolved external symbol __imp__FT_Get_Char_Index referenced in
> > function _php_gd_gdImageStringFTEx gdft.obj : error LNK2019:
> > unresolved external symbol __imp__FT_Set_Transform referenced in
> > function _php_gd_gdImageStringFTEx gdft.obj : error LNK2019:
> > unresolved external symbol __imp__FT_Set_Char_Size referenced in
> > function _php_gd_gdImageStringFTEx Release_TS\php_gd2.dll : fatal
> > error LNK1120: 12 unresolved externals NMAKE : fatal error U1077:
> > '"C:\Program Files\Microsoft Visual Studio 8\VC\BIN\cl.exe"' :
> > return code '0x2' Stop. Compilation of php failed
> >
> > Please suggest, so that i can move forward with this.
> >
> > -- Regards, Sachin Srivastava EnterpriseDB
> > <http://www.enterprisedb.com>, the Enterprise Postgres
> > <http://www.enterprisedb.com> company.
> >
>
>
>
--
Regards,
Sachin Srivastava
EnterpriseDB <http://www.enterprisedb.com>, the Enterprise Postgres
<http://www.enterprisedb.com> company.
--------------030706000009050005010101--
Re: Error compiling php-5.3.1
Then try using the link I gave you. Do not use the libraries on
gnuwin32 (see the link).
On Fri, Feb 26, 2010 at 8:35 AM, Sachin Srivastava
<sachin.srivastava [at] enterprisedb.com> wrote:
> Hello,
>
> Thanks for the reply.
>
> I installed the freetype v2.3.5 using the setup found at
> http://gnuwin32.sourceforge.net/packages/freetype.htm
>
> I am compiling php as:
>
> cd C:\php-5.3.1
>
> cscript /nologo win32\build\buildconf.js
>
> cscript /nologo configure.js --enable-snapshot-build --enable-cli
> --enable-cgi=A0 --with-openssl=3DC:\build\OpenSSL --enable-pdo
> --with-extra-includes=3DC:\build\iconv\include;C:\build\libx ml2\include;C=
:\build\libxslt\include;C:\build\OpenSSL\include;C:\apache\i nclude;C:\build=
\zlib\include;C:\pgsql\include;C:\build\jpeg\include;C:\buil d\libpng\includ=
e;C:\build\freetype\include;C:\build\gettext\include
> --with-extra-libs=3DC:\build\iconv\lib;C:\build\libxml2\lib; C:\build\libx=
slt\lib;C:\build\OpenSSL\lib;C:\apache\lib;C:\build\zlib\lib ;C:\pgsql\lib;C=
:\build\jpeg\lib;C:\build\libpng\lib;C:\build\freetype\lib;C :\build\gettext=
\lib
> --enable-apache=3Dyes --with-apache-includes=3DC:\apache\include
> --with-apache-libs=3DC:\apache\lib --enable-apache2filter
> --enable-apache2-2filter --enable-apache2handler --enable-apache2-2handle=
r
> --with-apache-hooks --with-pgsql --with-pdo-pgsql --enable-prefix=3DC:\ph=
p
> --enable-one-shot --enable-zend-multibyte=3Dyes --enable-cli-win32
> --enable-embed --enable-isapi --enable-ftp --without-mysql --without-mysq=
li
> --without-pdo-mysql --without-sqlite --without-pdo-sqlite
> --without-pdo-sqlite-external --with-xsl=3DSHARED=A0 --enable-mbstring
> --enable-mbregex --enable-shmop=A0 --enable-exif --enable-soap
> --enable-sockets --with-php-build=3DC:\build\phpBuild\win32build
> --with-gd=3DSHARED
>
> nmake
>
> FYI: I get the same error with php-5.3.0 as well, while i can easily comp=
ile
> 5.2.12 with above configurations.
> Also, i have tried building this, on Windows XP SP2 32 bit with MS Visual
> Studio 2005 and on Windows 7 32 bit with MS Visual Studio 2008. Both plac=
es
> i got the same error.
>
> Any suggestions, so that i can move to php-5.3 ??
>
>
>
>
> On 2/25/10 7:54 PM, Pierre Joye wrote:
>> hi,
>>
>> It works just fine here (and all our build boxes).
>>
>> Where did you get the freetype library and how do you compile PHP?
>>
>> Please try again using this simple howto:
>>
>> http://wiki.php.net/internals/windows/stepbystepbuild
>>
>> Cheers, -- Pierre
>>
>> On Thu, Feb 25, 2010 at 3:17 PM, Sachin Srivastava
>> <sachin.srivastava [at] enterprisedb.com> wrote:
>>> Hello,
>>>
>>>
>>> I am compiling php and its giving me this error: (I am using
>>> freetype -2.3.5 )
>>>
>>> Generating Code... rc /fo Release_TS\php5ts.dll.res /d
>>> FILE_DESCRIPTION=3D"\"PHP Script Interpreter\""=A0 /d
>>> FILE_NAME=3D"\"php5ts.dll\"" /d PRODUCT_NAME=3D"\"PHP Script
>>> Interpreter\""=A0 /IRelease_TS /d
>>> MC_INCLUDE=3D"\"Release_TS\wsyslog.rc\"" win32\build\template.rc
>>> Creating library Release_TS\php5ts.lib and object
>>> Release_TS\php5ts.exp php_xmlreader.obj : warning LNK4217: locally
>>>=A0 defined symbol _php_dom_create_object imported in function
>>> _zim_xmlreader_expand php_xmlreader.obj : warning LNK4049: locally
>>>=A0 defined symbol _dom_node_class_entry imported rc /n /fo
>>> Release_TS\php_gd2.dll.res /d FILE_DESCRIPTION=3D"\"GD imaging\"" /d
>>>=A0 FILE_NAME=3D"\"php_gd2.dll\"" /d URL=3D"\"http://www.php.net\"" /d
>>> INTERNAL_NAME=3D"\"GD extension\"" /d THANKS_GUYS=3D"\"Thanks to Rasmus
>>> Lerdorf, Stig Bakken, Jim Winstead, Jouni Ahto, Ilia Alshanetsky,
>>> Pierre-Alain Joye, Marcus Boerger\"" win32\build\template.rc
>>> Creating library Release_TS\php_gd2.lib and object
>>> Release_TS\php_gd2.exp gdft.obj : error LNK2019: unresolved
>>> external symbol __imp__FT_New_Face referenced in function
>>> _fontFetch gdft.obj : error LNK2019: unresolved external symbol
>>> __imp__FT_Done_Face referenced in function _fontRelease gdft.obj :
>>>=A0 error LNK2019: unresolved external symbol __imp__FT_Done_FreeType
>>>=A0 referenced in function _php_gd_gdFontCacheShutdown gdft.obj :
>>> error LNK2019: unresolved external symbol __imp__FT_Init_FreeType
>>> referenced in function _php_gd_gdFontCacheSetup gdft.obj : error
>>> LNK2019: unresolved external symbol __imp__FT_Glyph_To_Bitmap
>>> referenced in function _php_gd_gdImageStringFTEx gdft.obj : error
>>> LNK2019: unresolved external symbol __imp__FT_Glyph_Get_CBox
>>> referenced in function _php_gd_gdImageStringFTEx gdft.obj : error
>>> LNK2019: unresolved external symbol __imp__FT_Get_Glyph referenced
>>>=A0 in function _php_gd_gdImageStringFTEx gdft.obj : error LNK2019:
>>> unresolved external symbol __imp__FT_Load_Glyph referenced in
>>> function _php_gd_gdImageStringFTEx gdft.obj : error LNK2019:
>>> unresolved external symbol __imp__FT_Get_Kerning referenced in
>>> function _php_gd_gdImageStringFTEx gdft.obj : error LNK2019:
>>> unresolved external symbol __imp__FT_Get_Char_Index referenced in
>>> function _php_gd_gdImageStringFTEx gdft.obj : error LNK2019:
>>> unresolved external symbol __imp__FT_Set_Transform referenced in
>>> function _php_gd_gdImageStringFTEx gdft.obj : error LNK2019:
>>> unresolved external symbol __imp__FT_Set_Char_Size referenced in
>>> function _php_gd_gdImageStringFTEx Release_TS\php_gd2.dll : fatal
>>> error LNK1120: 12 unresolved externals NMAKE : fatal error U1077:
>>> '"C:\Program Files\Microsoft Visual Studio 8\VC\BIN\cl.exe"' :
>>> return code '0x2' Stop. Compilation of php failed
>>>
>>> Please suggest, so that i can move forward with this.
>>>
>>> -- Regards, Sachin Srivastava EnterpriseDB
>>> <http://www.enterprisedb.com>, the Enterprise Postgres
>>> <http://www.enterprisedb.com> company.
>>>
>>
>>
>>
>
>
> --
> Regards,
> Sachin Srivastava
> EnterpriseDB <http://www.enterprisedb.com>, the Enterprise Postgres
> <http://www.enterprisedb.com> company.
>
>
--
Pierre
[at] pierrejoye | http://blog.thepimp.net | http://www.libgd.org
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: Error compiling php-5.3.1
--------------000205010906020603090001
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
In the link that is provided by you, there is a link to
http://pecl2.php.net/downloads/php-windows-builds/php-libs/b inary-tools.zip
which does not contain any freetype libraries. Also i downloaded the
php-5.3.1 zip source from php site.
Another thing, the php-5.2.x builds fine with my setup, but its failing
only for 5.3.x (As i said, php-5.3.x builds fine with --without-gd option).
On 2/26/10 2:22 PM, Pierre Joye wrote:
> Then try using the link I gave you. Do not use the libraries on
> gnuwin32 (see the link).
>
> On Fri, Feb 26, 2010 at 8:35 AM, Sachin Srivastava
> <sachin.srivastava [at] enterprisedb.com> wrote:
>
>> Hello,
>>
>> Thanks for the reply.
>>
>> I installed the freetype v2.3.5 using the setup found at
>> http://gnuwin32.sourceforge.net/packages/freetype.htm
>>
>> I am compiling php as:
>>
>> cd C:\php-5.3.1
>>
>> cscript /nologo win32\build\buildconf.js
>>
>> cscript /nologo configure.js --enable-snapshot-build --enable-cli
>> --enable-cgi --with-openssl=C:\build\OpenSSL --enable-pdo
>> --with-extra-includes=C:\build\iconv\include;C:\build\libxml 2\include;C:\build\libxslt\include;C:\build\OpenSSL\include; C:\apache\include;C:\build\zlib\include;C:\pgsql\include;C:\ build\jpeg\include;C:\build\libpng\include;C:\build\freetype \include;C:\build\gettext\include
>> --with-extra-libs=C:\build\iconv\lib;C:\build\libxml2\lib;C: \build\libxslt\lib;C:\build\OpenSSL\lib;C:\apache\lib;C:\bui ld\zlib\lib;C:\pgsql\lib;C:\build\jpeg\lib;C:\build\libpng\l ib;C:\build\freetype\lib;C:\build\gettext\lib
>> --enable-apache=yes --with-apache-includes=C:\apache\include
>> --with-apache-libs=C:\apache\lib --enable-apache2filter
>> --enable-apache2-2filter --enable-apache2handler --enable-apache2-2handler
>> --with-apache-hooks --with-pgsql --with-pdo-pgsql --enable-prefix=C:\php
>> --enable-one-shot --enable-zend-multibyte=yes --enable-cli-win32
>> --enable-embed --enable-isapi --enable-ftp --without-mysql --without-mysqli
>> --without-pdo-mysql --without-sqlite --without-pdo-sqlite
>> --without-pdo-sqlite-external --with-xsl=SHARED --enable-mbstring
>> --enable-mbregex --enable-shmop --enable-exif --enable-soap
>> --enable-sockets --with-php-build=C:\build\phpBuild\win32build
>> --with-gd=SHARED
>>
>> nmake
>>
>> FYI: I get the same error with php-5.3.0 as well, while i can easily compile
>> 5.2.12 with above configurations.
>> Also, i have tried building this, on Windows XP SP2 32 bit with MS Visual
>> Studio 2005 and on Windows 7 32 bit with MS Visual Studio 2008. Both places
>> i got the same error.
>>
>> Any suggestions, so that i can move to php-5.3 ??
>>
>>
>>
>>
>> On 2/25/10 7:54 PM, Pierre Joye wrote:
>>
>>> hi,
>>>
>>> It works just fine here (and all our build boxes).
>>>
>>> Where did you get the freetype library and how do you compile PHP?
>>>
>>> Please try again using this simple howto:
>>>
>>> http://wiki.php.net/internals/windows/stepbystepbuild
>>>
>>> Cheers, -- Pierre
>>>
>>> On Thu, Feb 25, 2010 at 3:17 PM, Sachin Srivastava
>>> <sachin.srivastava [at] enterprisedb.com> wrote:
>>>
>>>> Hello,
>>>>
>>>>
>>>> I am compiling php and its giving me this error: (I am using
>>>> freetype -2.3.5 )
>>>>
>>>> Generating Code... rc /fo Release_TS\php5ts.dll.res /d
>>>> FILE_DESCRIPTION="\"PHP Script Interpreter\"" /d
>>>> FILE_NAME="\"php5ts.dll\"" /d PRODUCT_NAME="\"PHP Script
>>>> Interpreter\"" /IRelease_TS /d
>>>> MC_INCLUDE="\"Release_TS\wsyslog.rc\"" win32\build\template.rc
>>>> Creating library Release_TS\php5ts.lib and object
>>>> Release_TS\php5ts.exp php_xmlreader.obj : warning LNK4217: locally
>>>> defined symbol _php_dom_create_object imported in function
>>>> _zim_xmlreader_expand php_xmlreader.obj : warning LNK4049: locally
>>>> defined symbol _dom_node_class_entry imported rc /n /fo
>>>> Release_TS\php_gd2.dll.res /d FILE_DESCRIPTION="\"GD imaging\"" /d
>>>> FILE_NAME="\"php_gd2.dll\"" /d URL="\"http://www.php.net\"" /d
>>>> INTERNAL_NAME="\"GD extension\"" /d THANKS_GUYS="\"Thanks to Rasmus
>>>> Lerdorf, Stig Bakken, Jim Winstead, Jouni Ahto, Ilia Alshanetsky,
>>>> Pierre-Alain Joye, Marcus Boerger\"" win32\build\template.rc
>>>> Creating library Release_TS\php_gd2.lib and object
>>>> Release_TS\php_gd2.exp gdft.obj : error LNK2019: unresolved
>>>> external symbol __imp__FT_New_Face referenced in function
>>>> _fontFetch gdft.obj : error LNK2019: unresolved external symbol
>>>> __imp__FT_Done_Face referenced in function _fontRelease gdft.obj :
>>>> error LNK2019: unresolved external symbol __imp__FT_Done_FreeType
>>>> referenced in function _php_gd_gdFontCacheShutdown gdft.obj :
>>>> error LNK2019: unresolved external symbol __imp__FT_Init_FreeType
>>>> referenced in function _php_gd_gdFontCacheSetup gdft.obj : error
>>>> LNK2019: unresolved external symbol __imp__FT_Glyph_To_Bitmap
>>>> referenced in function _php_gd_gdImageStringFTEx gdft.obj : error
>>>> LNK2019: unresolved external symbol __imp__FT_Glyph_Get_CBox
>>>> referenced in function _php_gd_gdImageStringFTEx gdft.obj : error
>>>> LNK2019: unresolved external symbol __imp__FT_Get_Glyph referenced
>>>> in function _php_gd_gdImageStringFTEx gdft.obj : error LNK2019:
>>>> unresolved external symbol __imp__FT_Load_Glyph referenced in
>>>> function _php_gd_gdImageStringFTEx gdft.obj : error LNK2019:
>>>> unresolved external symbol __imp__FT_Get_Kerning referenced in
>>>> function _php_gd_gdImageStringFTEx gdft.obj : error LNK2019:
>>>> unresolved external symbol __imp__FT_Get_Char_Index referenced in
>>>> function _php_gd_gdImageStringFTEx gdft.obj : error LNK2019:
>>>> unresolved external symbol __imp__FT_Set_Transform referenced in
>>>> function _php_gd_gdImageStringFTEx gdft.obj : error LNK2019:
>>>> unresolved external symbol __imp__FT_Set_Char_Size referenced in
>>>> function _php_gd_gdImageStringFTEx Release_TS\php_gd2.dll : fatal
>>>> error LNK1120: 12 unresolved externals NMAKE : fatal error U1077:
>>>> '"C:\Program Files\Microsoft Visual Studio 8\VC\BIN\cl.exe"' :
>>>> return code '0x2' Stop. Compilation of php failed
>>>>
>>>> Please suggest, so that i can move forward with this.
>>>>
>>>> -- Regards, Sachin Srivastava EnterpriseDB
>>>> <http://www.enterprisedb.com>, the Enterprise Postgres
>>>> <http://www.enterprisedb.com> company.
>>>>
>>>>
>>>
>>>
>>>
>>
>> --
>> Regards,
>> Sachin Srivastava
>> EnterpriseDB<http://www.enterprisedb.com>, the Enterprise Postgres
>> <http://www.enterprisedb.com> company.
>>
>>
>>
>
>
>
--
Regards,
Sachin Srivastava
EnterpriseDB <http://www.enterprisedb.com>, the Enterprise Postgres
<http://www.enterprisedb.com> company.
--------------000205010906020603090001--
Re: Error compiling php-5.3.1
On Fri, Feb 26, 2010 at 10:24 AM, Sachin Srivastava
<sachin.srivastava [at] enterprisedb.com> wrote:
> In the link that is provided by you, there is a link to
> http://pecl2.php.net/downloads/php-windows-builds/php-libs/b inary-tools.zip
> which does not contain any freetype libraries. Also i downloaded the
> php-5.3.1 zip source from php site.
>
> Another thing, the php-5.2.x builds fine with my setup, but its failing only
> for 5.3.x (As i said, php-5.3.x builds fine with --without-gd option).
It helps to actually read the page :) See also
http://wiki.php.net/internals/windows/libs for a full list of libs and
versions.
Cheers,
--
Pierre
[at] pierrejoye | http://blog.thepimp.net | http://www.libgd.org
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php