Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:74089 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 91440 invoked from network); 9 May 2014 11:40:00 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 May 2014 11:40:00 -0000 Authentication-Results: pb1.pair.com smtp.mail=martin.keckeis1@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=martin.keckeis1@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.219.49 as permitted sender) X-PHP-List-Original-Sender: martin.keckeis1@gmail.com X-Host-Fingerprint: 209.85.219.49 mail-oa0-f49.google.com Received: from [209.85.219.49] ([209.85.219.49:58646] helo=mail-oa0-f49.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D1/90-15882-D8EBC635 for ; Fri, 09 May 2014 07:39:59 -0400 Received: by mail-oa0-f49.google.com with SMTP id eb12so4639839oac.8 for ; Fri, 09 May 2014 04:39:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=MOER0vtY38OrUpeTEhaTfNyJYm3pxuVzbXNqeYk9sd4=; b=apKgmpz3eHYY5wvz33IOXmgsNT0djQ2KzR3WjT+jYxPwGZJ+blSc/4i4NdQO2BxhLy AU4gA3v73DrimDQ4LlG01gcLg4eRwVmdBt9rwbO76UdG551dyQrGAT4nO5QhToiVm2x7 /v5xTVyrs6nLGdBvAl9pg0hcTadLA0gBIKc+MQ0JRJjaS/DkWDtqWRFC+/asr8PQA6ZO M8MeNEDf3cYm366DgrJanY/rs8z3GkuiycZ626ukVR5BD2sLHNJ0S85ROTeU199wK46D 6iqAbfXuO4s9WiqPThfym5mwFrjSHM6L3hIaWTT1X5P8oQaAyGOo9Lj1w/DULJdv0iGD bseQ== MIME-Version: 1.0 X-Received: by 10.60.17.132 with SMTP id o4mr12802582oed.34.1399635594440; Fri, 09 May 2014 04:39:54 -0700 (PDT) Received: by 10.182.29.38 with HTTP; Fri, 9 May 2014 04:39:54 -0700 (PDT) In-Reply-To: <964B0802-BCEF-4A11-8660-B2E9DA592B9C@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> Date: Fri, 9 May 2014 13:39:54 +0200 Message-ID: To: "O'Neil Delpratt" Cc: Pierre Joye , PHP internals Content-Type: multipart/alternative; boundary=089e01294d0c6bf55204f8f60efa Subject: Re: [PHP-DEV] PHP C++ extension on Windows From: martin.keckeis1@gmail.com (Martin Keckeis) --089e01294d0c6bf55204f8f60efa Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hello together, 2014-05-09 12:06 GMT+02:00 O'Neil Delpratt : > > On 9 May 2014, at 10:26, Pierre Joye wrote: > > > 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 =E2=80=9CExtending and Embedding PHP=E2=80=9D 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-p= hp-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 --089e01294d0c6bf55204f8f60efa--