Re: Compiling pecl extention for MS Windows
| From: | (Uwe Steinmann) | Date: | Sat, 16 Jun 2007 21:26:03 +0000 |
| Subject: | Re: Compiling pecl extention for MS Windows | ||
| References: | 1 2 3 4 | Groups: | php.pecl.dev |
| Request: | Send a blank email to pecl-dev+get-4737@lists.php.net to get a copy of this message | ||
On Sat, Jun 16, 2007 at 07:16:34PM +0200, Pierre wrote:
> Hi Uwe,
>
> On 6/16/07, Uwe Steinmann <uwe@steinmann.cx> wrote:
> >On Sat, Jun 16, 2007 at 10:21:36AM +0200, Pierre wrote:
> >> Hi Uwe,
> >>
> >> On 6/16/07, Uwe Steinmann <uwe@steinmann.cx> wrote:
> >> >Hi all,
> >> >
> >> >is there anybody here who can give a clue on how to compile
> >> >a pecl extension (e.g. ps) for MS Windows unsing mingw?
> >> >The extention 'ps' is written by myself and it probably missing
> >> >some files like a .def file to be ready for compilation.
> >> >Is there a tutorial on what needs to be done?
> >>
> >> To use mingw sounds like an impossible task. Native windows DLL
> >> extension requires VC (express works too for development). Once you
> >> have a working build environment, it is very easy to enable any pecl
> >> extension.
> >>
> >> Do you already have windows support for pslib (I did not check yet)?
> >I was able to compile it (even cross compile it) into a static lib
> >but still without support for png, jpeg, tiff. That shouldn't be
> >too difficult too.
>
> I will give it a try next week. I can add either VC makefile or use
> CMake (I actually like cmake as it lets me share almost all build
> scripts between all platforms). What do you prefer?
Since I didn't do it before, I don't have a preference.
> >> Would you like me to add the config.w32 to pecl? It should be good to
> >> simply provide the extension with pslib statically linked.
> >That sounds feasable. How about, if I send you the static libps?
>
> If you have one at hand, yes, I can then compare the results. The lib
> does not look that big (well not small either ;), it should be
> possible to compile it using vc without too much pain, have you tried
> already?
Not yet. Just realized that MS offers VC Express for free. My last
contact with VC was many years ago.
Uwe
--
MMK GmbH, Fleyer Str. 196, 58097 Hagen
Uwe.Steinmann@mmk-hagen.de
Tel: 02331 840446 Fax: 02331 843920