Some problems with compiling phalcon on windows

Hi,

I'm trying to compiling phalcon extensions on windows. I use this documentations http://internals.phalconphp.com/en/latest/reference/compilation.html.

And I have some errors at the last step. After: configure --disable-all --enable-cli --enable-phalcon=shared nmake

I have: "Recreating build dirs scanner.c ext\phalcon\mvc\model\query\scanner.c(27) : fatal error C1083: Cannot open include file: 'php_phalcon.h': No such file or directory. Stop."

What am I doing wrong?



83.4k
edited Oct '14

You need to copy the extension from one of the cphalcon/build/ directories to ext/phalcon rather than use cphalcon/ext/

cphalcon/build/32bits -> php-x.x.x/ext/phalcon cphalcon/build/64bits -> php-x.x.x/ext/phalcon cphalcon/build/safe -> php-x.x.x/ext/phalcon

The following files must be available in ext/phalcon:

php/
 ext/
  phalcon/
   config.m4
   config.w32
   phalcon.c
   phalcon.h
   php_phalcon.h