Re: Error compiling php-5.3.1

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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\libxml2\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:\build\zlib\lib;C:\pgsql\lib;C:\build\jpeg\lib;C:\build\libpng\lib;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@xxxxxxxxxxxxxxxx> 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.


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux