Re: How to Building PHP from source on windows XP?which library file must be requied?
| From: | Hannes Magnusson | Date: | Mon, 03 Nov 2008 08:48:02 +0000 |
| Subject: | Re: How to Building PHP from source on windows XP?which library file must be requied? | ||
| References: | 1 2 3 | Groups: | php.internals.win |
| Request: | Send a blank email to internals-win+get-159@lists.php.net to get a copy of this message | ||
Good question.. have you looked at the wiki
(http://wiki.php.net/internals/windows) ?
-Hannes
2008/11/3 陈彬 <leconsc@gmail.com>:
> I am compiling PHP version 5.26, the use of tools is Visual Studio C + + 6 +
> SP6.
> Configuration is as follows:
>
> Include files:
> d:\php\compile\win32build\include
> d:\php\compile\libxml\include
> d:\php\compile\zlib\include
> d:\php\compile\libiconv\include
> d:\php\compile\php-5.2.6
> d:\php\compile\php-5.2.6\tsrm
> d:\php\compile\php-5.2.6\zend
>
> Library files:
> d:\php\compile\win32build\lib
> d:\php\compile\libiconv\lib
> d:\php\compile\libxml\lib
> d:\php\compile\zlib\lib
>
> With the manual steps like:
> 1.Create the directory d:\php\compile.
> 2.Download the Windows build tools and unzip the contents into
> d:\php\compile
> 3.Create the directory c:\usr\local\lib. Copy the
> Dd:\php\compile\win32build\bin\bison.simple into the new directory.
> 4.Download the Windows DNS resolver library and unzip the contents into
> d:\php\compile.
> 5.Open d:\php\compile\bindlib_w32\bindlib.dsw. If and when asked whether to
> update the project, choose Yes. Choose either Debug or Release configuration
> in the top toolbar, then choose Build => Build Solution.
> 6.Obtain a copy of the PHP source and extract it into the d:\php\compile
> directory. At this point, that directory should look something like this:
>
> +-D:\php\compile
> | +-bindlib_w32
> | | +-Debug
> | | | +-resolv.lib
> | | | +-...
> | | +-...
> | +-win32build
> | | +-bin
> | | +-include
> | | +-lib
> | +-libxml
> | | +-bin
> | | +-include
> | | +-lib
> | +-zlib
> | | +-bin
> | | +-include
> | | +-lib
> | | +-...
> | +-libiconv
> | | +-bin
> | | +-include
> | | +-lib
> | | +-...
> | +-php-5.2.6
> | | +-build
> | | +-win32
> | | +-...
>
> ......
>
> Compile always occur fllowing errors:
>
> not found file:zend_config.h
> not found file:php_config.h
> not found file:strings.h
> .......
>
> How to generate zend_config.h, php_config.h?
> How to compile php on windows XP SP3
>
>
>
>
>
> 2008/11/1 Hannes Magnusson <hannes.magnusson@gmail.com>
>>
>> 2008/10/31 陈彬 <leconsc@gmail.com>:
>> > I have contained the library files:
>> > 1.LIBXML
>> > 2.ZLIB
>> > 3.ICONV
>> >
>> > Compile always occur fllowing errors:
>> >
>> > not found file:zend_config.h
>> > not found file:php_config.h
>>
>> These files are autogenerated... How exactly did you compile PHP? (and
>> which version?)
>>
>> -Hannes
>