Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Building Win32::GuiTest for perl 5.14 or higher

by davido (Cardinal)
on Jun 25, 2012 at 19:09 UTC ( [id://978245]=note: print w/replies, xml ) Need Help??


in reply to Building Win32::GuiTest for perl 5.14 or higher

Did the INSTALL section from the module's README prove to be unhelpful? It looks to me like it provides some good information, though the .ppd it refers to hasn't been updated since 2007. -- However, the pass matrix shows that it has passed for Strawberry Perl with version 5.14.2. The README also mentions a batch file to run to prepare the Visual Studio build environment before building the module. Since Visual Studio is the means by which ActivePerl is built, I believe that advice would be applicable to your ActivePerl setup.

To answer the question, "Has anybody been able to build and run.... under perl 5.14 or higher...?" the answer is yes.


Dave

Replies are listed 'Best First'.
Re^2: Building Win32::GuiTest for perl 5.14 or higher (Bad tests == useless statistics!)
by BrowserUk (Patriarch) on Jun 25, 2012 at 19:15 UTC
    the answer is yes.

    Don't you find it a little suspicious that an XS based module with total dependency upon the Windows OS architecture and APis is so successful in building on Linux, Solaris, BSD et al?

    I suspect this is a more meaningful source.


    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.

    The start of some sanity?

      Another "yes." :)

      The test suite uses a lot of SKIP blocks if the OS isn't reported as win32 or cygwin, so it's issuing false positives for Linux. The author should bail out (or possibly die at Makefile.PL stage) if Win32/cygwin isn't available. That would prevent false positives, while simultaneously preventing a bunch of FAILs from cluttering the results.

      In particular, this line from Makefile.PL should be elevated to fatal:

      warn "** This module can only work under Win32\n" unless $can_compile;

      The author might also have better results at portability across win32 platforms if he used ExtUtils::CppGuess to detect the correct compiler to use and the appropriate linker libraries. I've spent some time looking over that module and consider it pretty solid. A lot of work has gone into making that module "do the right thing."

      But nevertheless there is still a Win32 "PASS" at the 5.14.2 level using Strawberry Perl, both with 32 bit and 64 bit Perls.

      Nice PPM status source. I like that.

      This might be helpful: RT#75338 suggests forcing the build.

      Updated: Added a look at Makefile.PL and EU::CppGuess.


      Dave

        The author should bail out (or possibly die at Makefile.PL stage) if Win32/cygwin isn't available.

        Yes. And no. I myself have a few Windows- or Linux-only modules in my DarkPan repo. Mostly, they come in pairs (same external API, but completly different internals). Instead of failing to build on the "wrong" OS, they build as "hollow shells" without functionality (except to die() when new() is called.

        Doing it this way makes coding project that depend on a huge number of modules easier. You just pull in all your prerequisites (no fiddling around with Makefile.PL) and you can even use them (no more fiddling around with require and eval and stuff). In the main project, i then just have to decide with ones are the ones i instanciate.

        Of course, that's my own special bikeshed color. Yours might vary ;-)

        "You have reached the Monastery. All our helpdesk monks are busy at the moment. Please press "1" to instantly donate 10 currency units for a good cause or press "2" to hang up. Or you can dial "12" to get connected directly to second level support."
        The author should bail out (or possibly die at Makefile.PL stage) if Win32/cygwin isn't available.

        The trouble with that theory is that then, whenever a potential user checks the CPAN Tester grid, it looks to the uninitiated like a bad module because of the preponderance of RED fails. This makes both the module and author look like crap.

        The real failure here is the absence of a "Not applicable" category, which IMO renders the Tester grid worse than worthless. A

        As is, with the ratio of 9:1 against any Win32-only module, authors are faced with either accepting a screen of red when there is nothing wrong, or a screen of green when there might be something wrong. It's a piss poor choice either way.


        With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
        Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
        "Science is about questioning the status quo. Questioning authority".
        In the absence of evidence, opinion is indistinguishable from prejudice.

        The start of some sanity?

Re^2: Building Win32::GuiTest for perl 5.14 or higher
by SuicideJunkie (Vicar) on Jun 25, 2012 at 21:55 UTC

    The install section mentions running perl makefile.pl but the archive mentioned (http://www.sourceforge.net/projects/winguitest) doesn't include that. There's makedist.pl, but that can't find some files and seems to be trying to build the archive it came out of...

    The .ppd file included with the archive won't install, mainly due to the line: <ARCHITECTURE NAME="MSWin32-x86-multi-thread-5.8" /> Changing that from 5.8 to 5.14 lets it install but then perl.exe throws an unhandled exception as soon as use Win32::GuiTest appears in my test script.

    The archive from cpan (http://search.cpan.org/CPAN/authors/id/K/KA/KARASIK/Win32-GuiTest-1.59.tar.gz) does have a nice makefile.pl, but gives the same result that cpan install Win32::GuiTest did.

Re^2: Building Win32::GuiTest for perl 5.14 or higher
by cztmonk (Monk) on Jun 26, 2012 at 06:19 UTC

    I have the same problem:

    J:\ps>ppm install Win32::GuiTest Downloading ActiveState Package Repository packlist...not modified ppm install failed: Can't find any package that provides Win32::GuiTes +t
    J:\ps>perl -v This is perl 5, version 14, subversion 2 (v5.14.2) built for MSWin32-x86-multi-thread

        Thank you very much for this link,have a nice day

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://978245]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (3)
As of 2024-04-23 23:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found