Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:74092 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 95400 invoked from network); 9 May 2014 11:47:03 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 May 2014 11:47:03 -0000 Authentication-Results: pb1.pair.com smtp.mail=oneil@saxonica.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=oneil@saxonica.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain saxonica.com from 217.69.40.69 cause and error) X-PHP-List-Original-Sender: oneil@saxonica.com X-Host-Fingerprint: 217.69.40.69 relay01.mail.uk1.eechost.net Linux 2.6 Received: from [217.69.40.69] ([217.69.40.69:46830] helo=uk1rly2283.eechost.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 04/71-15882-630CC635 for ; Fri, 09 May 2014 07:47:03 -0400 Received: from [82.152.109.199] (helo=[192.168.0.112]) by uk1rly2283.eechost.net with esmtpa (Exim 4.72) (envelope-from ) id 1WijIP-0006jx-La; Fri, 09 May 2014 12:48:57 +0100 Content-Type: multipart/alternative; boundary="Apple-Mail=_65EA16C8-4817-42B9-8869-CDF3D75ECBFE" Mime-Version: 1.0 (Mac OS X Mail 7.2 \(1874\)) In-Reply-To: Date: Fri, 9 May 2014 12:46:59 +0100 Cc: Pierre Joye , PHP internals Message-ID: <32FFFD7A-75C5-45A2-8642-F038C3B0D494@saxonica.com> References: <42E6A56D-0FF1-4408-BCF5-DFBCEDA735EB@saxonica.com> <1396445137.2982.291.camel@guybrush> <2EF10AD3-FC2C-4F34-9639-8BC798DB0917@saxonica.com> <1396449767.2982.294.camel@guybrush> <40B86AC1-3057-4016-95E2-EB8E754A70E1@saxonica.com> <57711604dc923c34412021350230d52e.squirrel@webmail.klapt.com> <964B0802-BCEF-4A11-8660-B2E9DA592B9C@saxonica.com> To: Martin Keckeis X-Mailer: Apple Mail (2.1874) X-Auth-Info: oneil@saxonica.com (plain) Subject: Re: [PHP-DEV] PHP C++ extension on Windows From: oneil@saxonica.com (O'Neil Delpratt) --Apple-Mail=_65EA16C8-4817-42B9-8869-CDF3D75ECBFE Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 Thanks. I will look at the details shortly. On 9 May 2014, at 12:39, Martin Keckeis = wrote: > Hello together, >=20 > 2014-05-09 12:06 GMT+02:00 O'Neil Delpratt : >=20 > On 9 May 2014, at 10:26, Pierre Joye wrote: >=20 > > hi, > > > > On Fri, May 9, 2014 at 11:20 AM, O'Neil Delpratt = 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 =93Extending and Embedding PHP=94 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 >=20 >=20 > How about building your own extension? There seems to be a lack of = information about doing that on windows >=20 > I also try currently to port over this extension to windows:=20 > 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:-/ >=20 > 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/ >=20 > 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? >=20 >=20 ------------------------------- 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/ --Apple-Mail=_65EA16C8-4817-42B9-8869-CDF3D75ECBFE--