Standalone extension compilation instructions for Windows
| From: | Leonardo D. Schlossmacher | Date: | Tue, 06 Mar 2012 18:18:09 +0000 |
| Subject: | Standalone extension compilation instructions for Windows | ||
| Groups: | php.pecl.dev | ||
| Request: | Send a blank email to pecl-dev+get-9222@lists.php.net to get a copy of this message | ||
Hi there!
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.
I read some blogs and even PHP's wiki tutorial (which actually only explain
how to compile PHP) but think I'm forgetting to do something.
After creating a Win32 .dll project, I added the extension headers and
sources, configured directories and linkers and renamed
/php-5.4.0/win32/build/config.w32.h.in to /php-5.4.0/main/config.w32.h as
most tutorials I found taught.
Do you recommend any step-by-step guide?
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
1>p:\win7 files\documents\visual studio
2010\projects\oauth\oauth\provider.c(215): error C2065: 'pce' : undeclared
identifier
1>p:\win7 files\documents\visual studio
2010\projects\oauth\oauth\provider.c(215): warning C4552: '*' : operator
has no effect; expected operator with side-effect
1>p:\win7 files\documents\visual studio
2010\projects\oauth\oauth\provider.c(216): error C2275: 'zval' : illegal
use of this type as an expression
1> c:\php-sdk\php54\vc9\x86\php-5.4.0\zend\zend.h(287) : see
declaration of 'zval'
1>p:\win7 files\documents\visual studio
2010\projects\oauth\oauth\provider.c(216): error C2065: 'subpats' :
undeclared identifier
1>p:\win7 files\documents\visual studio
2010\projects\oauth\oauth\provider.c(216): error C2065: 'return_value' :
undeclared identifier
1>p:\win7 files\documents\visual studio
2010\projects\oauth\oauth\provider.c(216): error C2100: illegal indirection
1>p:\win7 files\documents\visual studio
2010\projects\oauth\oauth\provider.c(216): warning C4047: '=' : 'int'
differs in levels of indirection from 'void *'
Thank you all in advance.
--
Leonardo Domingues Schlossmacher.
leods92.com