Re: README.WIN32-BUILD-SYSTEM

From: Date: Sun, 11 May 2008 13:59:27 +0000
Subject: Re: README.WIN32-BUILD-SYSTEM
References: 1 2 3 4 5 6 7 8  Groups: php.internals 
Request: Send a blank email to internals+get-37599@lists.php.net to get a copy of this message
Steph Fox wrote: >> What is hard in: >> >> 1. mkdir c:\phpw32 >> 2. extract a php release in c:\phpw32\php-5.y.z >> 3. extract the dependencies in c:\phpw32\php_builds >> 4. run: >> buildconf.bat >> configure.bat [option your like to have} >> nmake > > What is hard in it is that this is pretty alien for someone used to > working with .dsp files or whatever. Also, under Windows you need to > bring the MS headers into play, which means running vcvars. > (vc32vars.bat, whatever.) The same thing happens when you use Visual > Studio, but you don't see it there because it's disguised as > Tools/Options/Directories and obviously is 'just called'. That's why I usually just tell people to run the shortcut in their start menu that sets this up (Visual Studio Command Prompt) and then cd to the php source ;) In our setup > it needs to be called explicitly, unless the MS headers are already in > your PATH. You'll also need to add the path to your PHP libs and headers > to vcvars.bat, you can do this via MSVC or manually. Err- no you don't steph :) you can use the --php_build="path" switch to tell our configure system where to look for the libs, or just put them in a library called php_build parallel to your php5 source, don't make things harder then they have to be ;) > > configure.bat has been in 5_3 only for the last few weeks, so that part > depends on the PHP version you're building. But buildconf will tell you > what to do next anyway. > > - Steph >

« previous php.internals (#37599) next »