moseley has asked for the wisdom of the Perl Monks concerning the following question:

Anyone building xs modules for Windows (as a PPM) under Linux?

Swish-e is available for Windows (the Windows binary package is built on Linux, though). Included in the source distribution is a Perl module that is an XS interface to the swish-e static library libswish-e.a.

Thanks,

Replies are listed 'Best First'.
Re: Build PPM on Linux?
by Anonymous Monk on Mar 18, 2003 at 16:48 UTC
    What do you want what? (you don't say)
      Sorry for being unclear

      I'm looking for a HOWTO, Tutorial, example, or guru to explain how to build an XS-based moudule into a PPM for Windows, yet build it on Linux.

      We currently build the Windows binary version of Swish-e on Linux. So to include the PPM module in the distribution we would like to be able to build it also on Linux.

      The XS module needs to link with libz and libswish-e which is generated as part of the buld for swish-e.

      I assume someone does this kind of thing.

        Well, a PPM is easy (see HowTo build and distribute a PPMed module for Win32 in Tutorials), but cross-compiling is not easy(i tried doing it, I failed miserabley, I've only heard people say they did it, but only on unices).

        You probably know, but there is a SWISH module on cpan which interfaces to the swish-e.exe executable.

        http://mingw.sourceforge.net/ might be of interest.

        I'll see if I can build it on windows (if you can provide me with a more recent dev binary, that'd be great).

        update: Theoretically (i've not tried it), it's easier (or possible -- should be) to cross-compile perl extensions (and more) using SWIG instead of XS.

        update: I tried building the perl extension, I didn't have much luck, sorry. I suggest you add the SWISH distribution from CPAN to your bundle.


        MJD says you can't just make shit up and expect the computer to know what you mean, retardo!
        I run a Win32 PPM repository for perl 5.6x+5.8x. I take requests.
        ** The Third rule of perl club is a statement of fact: pod is sexy.