Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^11: Trouble Installing Win32::GuiTest

by syphilis (Canon)
on Aug 21, 2012 at 14:45 UTC ( #988766=note: print w/ replies, xml ) Need Help??


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

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).


Comment on Re^11: Trouble Installing Win32::GuiTest
Select or Download Code
Re^12: Trouble Installing Win32::GuiTest
by nsharma (Initiate) on Aug 22, 2012 at 07:55 UTC

    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

        Hey Rob, Thanks to ur instructions this time I have generated the libperl514.a of 860KB size. :) But now during the make test message is prompted that "The program can't start because libgcc_s_sjlj-1.dll is missing from your computer. Try reinstalling the program to fix this problem." Output is here

        CPAN.pm: Going to build K/KA/KARASIK/Win32-GuiTest-1.60.tar.gz Set up gcc environment - gcc.exe (rubenvb-4.5.4) 4.5.4 Checking if your kit is complete... Looks good Writing Makefile for Win32::GuiTest Writing MYMETA.yml cp lib/Win32/GuiTest/GuiTest.pc blib\lib\Win32\GuiTest\GuiTest.pc cp lib/Win32/GuiTest/Examples.pm blib\lib\Win32\GuiTest\Examples.pm cp lib/Win32/GuiTest.pm blib\lib\Win32\GuiTest.pm cp lib/Win32/GuiTest/Cmd.pm blib\lib\Win32\GuiTest\Cmd.pm C:\Perl64\bin\perl.exe -IC:\Perl64\lib -IC:\Perl64\lib C:\Perl64\lib\E +xtUtils\xsubpp -typemap C:\Perl64\lib\ExtUtils\typemap -typemap perl +object.map -typemap gcc -c -O2 -DWIN32 -DPERL_IMPLICIT_CONTEXT -DPERL_MSVCRT_READ +FIX -O2 -DVERSION=\"1.60\" -DXS_VERSION=\"1.60\" -DHASATTRIBUT +E "-IC:\Perl64\lib\C gcc -c -O2 -DWIN32 -DPERL_IMPLICIT_CONTEXT -DPERL_MSVCRT_READ +FIX -O2 -DVERSION=\"1.60\" -DXS_VERSION=\"1.60\" -DHASATTRIBUT +E "-IC:\Perl64\lib\C Running Mkbootstrap for Win32::GuiTest () C:\Perl64\bin\perl.exe -MExtUtils::Command -e "chmod" -- 644 GuiTest.b +s C:\Perl64\bin\perl.exe -MExtUtils::Mksymlists \ -e "Mksymlists('NAME'=>\"Win32::GuiTest\", 'DLBASE' => 'GuiTest', + 'DL_FUNCS' => { }, 'FUNCLIST' => [], 'IMPORTS' => { }, 'DL_VARS' = +> []);" dlltool --def GuiTest.def --output-exp dll.exp g++ -o blib\arch\auto\Win32\GuiTest\GuiTest.dll -Wl,--base-file -Wl,dl +l.base -s -mdll -L"C:\Perl64\lib\CORE" GuiTest.o DibSect.o C:\Perl6 +4\lib\CORE\libperl51 dlltool --def GuiTest.def --base-file dll.base --output-exp dll.exp g++ -o blib\arch\auto\Win32\GuiTest\GuiTest.dll -s -mdll -L"C:\Perl64\ +lib\CORE" GuiTest.o DibSect.o C:\Perl64\lib\CORE\libperl514.a -lmsv +crt -lmoldname -lker C:\Perl64\bin\perl.exe -MExtUtils::Command -e "chmod" -- 755 blib\arch +\auto\Win32\GuiTest\GuiTest.dll C:\Perl64\bin\perl.exe -MExtUtils::Command -e "cp" -- GuiTest.bs blib\ +arch\auto\Win32\GuiTest\GuiTest.bs C:\Perl64\bin\perl.exe -MExtUtils::Command -e "chmod" -- 644 blib\arch +\auto\Win32\GuiTest\GuiTest.bs KARASIK/Win32-GuiTest-1.60.tar.gz dmake -- OK Running make test C:\Perl64\bin\perl.exe "-MExtUtils::Command::MM" "-e" "test_harness(0, + 'blib\lib', 'blib\arch')" t/*.t t/01_basic.t ..... Can't load 'C:\Perl64\cpan\build\Win32-GuiTest-1.60 +-5fvYWK\blib\arch/auto/Win32/GuiTest/GuiTest.dll' for module Win32::G +uiTest: load_file:Th at t/01_basic.t line 12 Compilation failed in require at t/01_basic.t line 12. BEGIN failed--compilation aborted at t/01_basic.t line 12. t/01_basic.t ..... Dubious, test returned 2 (wstat 512, 0x200) No subtests run t/02_calc.t ...... skipped: this test is phased out t/03_cpl.t ....... Can't load 'C:\Perl64\cpan\build\Win32-GuiTest-1.60 +-5fvYWK\blib\arch/auto/Win32/GuiTest/GuiTest.dll' for module Win32::G +uiTest: load_file:Th at t/03_cpl.t line 19 Compilation failed in require at t/03_cpl.t line 19. BEGIN failed--compilation aborted at t/03_cpl.t line 22. t/03_cpl.t ....... Dubious, test returned 2 (wstat 512, 0x200) No subtests run t/04_std.t ....... Can't load 'C:\Perl64\cpan\build\Win32-GuiTest-1.60 +-5fvYWK\blib\arch/auto/Win32/GuiTest/GuiTest.dll' for module Win32::G +uiTest: load_file:Th at t/04_std.t line 12 Compilation failed in require at t/04_std.t line 12. BEGIN failed--compilation aborted at t/04_std.t line 15. t/04_std.t ....... Dubious, test returned 2 (wstat 512, 0x200) No subtests run t/05_which.t ..... ok t/06_sendkeys.t .. Can't load 'C:\Perl64\cpan\build\Win32-GuiTest-1.60 +-5fvYWK\blib\arch/auto/Win32/GuiTest/GuiTest.dll' for module Win32::G +uiTest: load_file:Th at t/06_sendkeys.t line 12 Compilation failed in require at t/06_sendkeys.t line 12. BEGIN failed--compilation aborted at t/06_sendkeys.t line 12. t/06_sendkeys.t .. Dubious, test returned 2 (wstat 512, 0x200) No subtests run Test Summary Report ------------------- t/01_basic.t (Wstat: 512 Tests: 0 Failed: 0) Non-zero exit status: 2 Parse errors: No plan found in TAP output t/03_cpl.t (Wstat: 512 Tests: 0 Failed: 0) Non-zero exit status: 2 Parse errors: No plan found in TAP output t/04_std.t (Wstat: 512 Tests: 0 Failed: 0) Non-zero exit status: 2 Parse errors: No plan found in TAP output t/06_sendkeys.t (Wstat: 512 Tests: 0 Failed: 0) Non-zero exit status: 2 Parse errors: No plan found in TAP output Files=6, Tests=6, 425 wallclock secs ( 0.03 usr + 0.03 sys = 0.06 CP +U) Result: FAIL Failed 4/6 test programs. 0/6 subtests failed. dmake.exe: Error code 130, while making 'test_dynamic' KARASIK/Win32-GuiTest-1.60.tar.gz dmake test -- NOT OK //hint// to see the cpan-testers results for installing this module, t +ry: reports KARASIK/Win32-GuiTest-1.60.tar.gz Running make install make test had returned bad status, won't install without force Failed during this command: KARASIK/Win32-GuiTest-1.60.tar.gz : make_test NO
        This dll file is available in strawberry516. So, can I copy this dll file from strwaberry perl C:_\strawberry516\c\bin to C:\Perl64\bin and again rerun the installation and check.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (7)
As of 2015-07-07 01:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (86 votes), past polls