in reply to Re^9: Trouble Installing Win32::GuiTest
in thread Trouble Installing Win32::GuiTest

Hi Rob, Thank you for ur reply I am waiting for it. Yes, I am using Perl 5.14.2 64 bit and installed MingW 64bit compiler from sourceforge.net. libperl514.a is already there in the path C:\Perl64\lib\CORE. But i have renamed the libperl510 to libperl514 in config_m.pm and rerun the installation using CPAN but compilation errors were occured. Please provide me proper solution. Thanks.

  • Comment on Re^10: Trouble Installing Win32::GuiTest

Replies are listed 'Best First'.
Re^11: Trouble Installing Win32::GuiTest
by syphilis (Archbishop) on Aug 21, 2012 at 14:45 UTC
    Hmm ... does perl -V:libperl report 'libperl514.a' ?
    On my x64 ActivePerl 5.10 (build 1005) where I actually use ExtUtils::FakeConfig, I find that Config_m.pm sets libperl='perl510.dll'

    I don't think that should be necessary if you have libperl514.a ... but, anyway, try setting libperl='perl514.dll' in your Config_m.pm and then check that perl -V:libperl reports 'perl514.dll'

    Cheers,
    Rob

    Update: As I tihnk about it a bit more, I think a better thing to do is to re-create libperl514.a using gendef and dlltool (as detailed earlier).

      Hi Rob, As you said, I have re-created the libperl514.a using gendef and dlltool taken from strawberry perl but the generated lib file libperl514.a size is 0 byte, so during the installation this file was not recognized and hence same compiling error occured. Thanks.

        ... the generated lib file libperl514.a size is 0 byte

        Yes, it should be a bit bigger than that ;-)

        My 64-bit strawberry portable (5.16.0.1 #1 Tue May 22 13:24:11 2012 x64) is in C:/_64/Strawberry516, so I 'cd' to that folder and double click on 'portableshell.bat'.
        That opens up a shell for me and, in that shell, I 'cd' to C:/_64/perl1400/bin - which is where my ActivePerl perl514.dll is located.
        I then run the commands that I posted earlier and end up with an 859KB libperl514.a.
        Full transcript follows:
        ---------------------------------------------- Welcome to Strawberry Perl Portable Edition! * URL - http://www.strawberryperl.com/ * see README.portable.TXT for more info ---------------------------------------------- Perl executable: C:\_64\strawberry516\perl\bin\perl.exe Perl version : 5.16.0 C:\_64\strawberry516>cd \_64\perl1400\bin C:\_64\perl1400\bin>gendef perl514.dll * [perl514.dll] Found PE+ image C:\_64\perl1400\bin>dlltool --kill-at --input-def perl514.def --output +-lib libperl514.a C:\_64\perl1400\bin>
        If I wanted to use that libperl514.a with EU::FC I would have to move it to C:/_64/perl1400/lib/CORE.

        Can you see any reason that the same procedure has not worked for you ?
        (I can't, but I'm a little further away than you are :-)

        Cheers,
        Rob