Re: Standalone extension compilation instructions for Windows

From: Date: Tue, 06 Mar 2012 18:24:04 +0000
Subject: Re: Standalone extension compilation instructions for Windows
References: 1  Groups: php.pecl.dev 
Request: Send a blank email to pecl-dev+get-9223@lists.php.net to get a copy of this message
On Tue, 06 Mar 2012 19:18:09 +0100, Leonardo D. Schlossmacher <e@leods92.com> wrote:
Usually I ask somebody to compile for me but I think it's time to learn. I've spent hours trying to do it but couldn't. Tried using Visual C++ 2008 and Visual C++ 2010 (using PHP_COMPILER_ID "VC9") but I just can't. [...] Do you recommend any step-by-step guide?
See https://wiki.php.net/internals/windows In particular: https://wiki.php.net/internals/windows/stepbystepbuild PHP has a build system in Javascript that generates the appropriate makefiles. Building through visual studio, while certainly not impossible, is afaik not supported.
Or maybe I'm almost there? Check the beginning of huge error/warning log: 1>------ Build started: Project: oauth, Configuration: Debug Win32 ------ 1> provider.c 1>p:\win7 files\documents\visual studio 2010\projects\oauth\oauth\provider.c(215): error C2065: 'pcre_cache_entry' : undeclared identifier [...]
In this case it seems that you simply don't have the PCRE headers in the include path (PHP ships a copy in ext/pcre/pcrelib/). -- Gustavo Lopes

« previous php.pecl.dev (#9223) next »