Re: PHP C++ extension on Windows

From: Date: Fri, 09 May 2014 11:46:59 +0000
Subject: Re: PHP C++ extension on Windows
References: 1 2 3 4 5 6 7 8 9 10 11 12  Groups: php.internals 
Request: Send a blank email to internals+get-74092@lists.php.net to get a copy of this message
Thanks. I will look at the details shortly.


On 9 May 2014, at 12:39, Martin Keckeis <martin.keckeis1@gmail.com> wrote:

> 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?
> 
> 

-------------------------------
O'Neil Delpratt
Software Developer, Saxonica Limited Email: oneil@saxonica.com
Tel: +44 118 946 5894
Web: http://www.saxonica.com
Saxonica Community site: http://dev.saxonica.com
Bug tracking site: https://saxonica.plan.io/





Thread (24 messages)

« previous php.internals (#74092) next »