Re: PHP C++ extension on Windows
Hello together,
2014-05-09 12:06 GMT+02:00 O'Neil Delpratt <oneil@saxonica.com>:
>
> On 9 May 2014, at 10:26, Pierre Joye <pierre.php@gmail.com> wrote:
>
> > hi,
> >
> > On Fri, May 9, 2014 at 11:20 AM, O'Neil Delpratt <oneil@saxonica.com>
> wrote:
> >> Hi,
> >>
> >> Is there a better way to build a PHP C++ extension for PHP 5.5 than in
> Visual studio? I know it can be done in the PHP build process for windows
> as described in the book “Extending and Embedding PHP” by Sara Golemon
> which I did try but failed with linking errors, maybe because of the
> config.w32 file not being setup properly. Under linux I have no issues.
> >
> > Actually the better and recommended way is not to use VS but for
> debugging.
> >
> > See https://wiki.php.net/internals/windows/stepbystepbuild
>
>
> How about building your own extension? There seems to be a lack of
> information about doing that on windows
I also try currently to port over this extension to windows:
https://github.com/piersharding/php-sapnwrfc/issues/6
My progress is not bad...i think there are some incompabilities left
between the versions.....but there are no error messages left at compile
...so its hard to figure out:-/
my resources:
https://wiki.php.net/internals/windows/stepbystepbuild
http://www.php.net/manual/en/internals2.buildsys.configwin.php
http://www.dreamincode.net/forums/topic/244215-introduction-to-creating-a-php-extension-for-windows/
the bad things
- there is no real documentation about config.w32 (i've gone through pecl
packages and ported my code from there
- at least i didnt found one...
- what are the parameters for functions
like EXTENSION() CHECK_LIB() CHECK_HEADER_ADD_INCLUDE().....??
- i guess them currently with the usage in the different pecl packages.....
- what kind of functions are available in config.w32?
- the binarys-tools are from 2011...no vc11 folder is created.
http://windows.php.net/downloads/php-sdk/
- in the package i have some lib dependencies -> they must be in the
deps/bin folder
- how can i change the source path? only with "--with-extra-libs" ?
- there is the CHECK_LIB() function -> but why the lib is not taken from
there, instead of the deps/bin folder?
Thanks in advance.
Best regards
Martin
Thread (24 messages)