Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Win32::Screenshot install problems , help needed

Status
Not open for further replies.

1DMF

Programmer
Joined
Jan 18, 2005
Messages
8,795
Location
GB
Hi,

I'm trying to install Win32::CaptureIE, it has dependencies on Image::Magik and Win32::Screenshot.

Image::Magik has installed fine, but when I issue perl makefile.pl for Win32::Screenshot I get
C:\Win32-Screenshot-1.20>perl makefile.pl
Note (probably harmless): No library found for comctl32.lib
Note (probably harmless): No library found for oldnames.lib
Note (probably harmless): No library found for kernel32.lib
Note (probably harmless): No library found for user32.lib
Note (probably harmless): No library found for gdi32.lib
Note (probably harmless): No library found for winspool.lib
Note (probably harmless): No library found for comdlg32.lib
Note (probably harmless): No library found for advapi32.lib
Note (probably harmless): No library found for shell32.lib
Note (probably harmless): No library found for ole32.lib
Note (probably harmless): No library found for oleaut32.lib
Note (probably harmless): No library found for netapi32.lib
Note (probably harmless): No library found for uuid.lib
Note (probably harmless): No library found for ws2_32.lib
Note (probably harmless): No library found for mpr.lib
Note (probably harmless): No library found for winmm.lib
Note (probably harmless): No library found for version.lib
Note (probably harmless): No library found for odbc32.lib
Note (probably harmless): No library found for odbccp32.lib
Note (probably harmless): No library found for msvcrt.lib
Writing Makefile for Win32::Screenshot

if i then run nmake I get the following and it crashes out
Microsoft (R) Program Maintenance Utility Version 1.50
Copyright (c) Microsoft Corp 1988-94. All rights reserved.

cl -c -I. -nologo -GF -W3 -MD -Zi -DNDEBUG -O1 -DWIN32 -D_CONSOLE -DNO
_STRICT -DHAVE_DES_FCRYPT -DNO_HASH_SEED -DUSE_SITECUSTOMIZE -DPERL_IMPLICIT_CON
TEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -DPERL_MSVCRT_READFIX -MD -Zi -DNDEBUG -O1
-DVERSION=\"1.20\" -DXS_VERSION=\"1.20\" "-IC:\Perl\lib\CORE" Screenshot
.c
'cl' is not recognized as an internal or external command,
operable program or batch file.
NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' : return code '0x1'
Stop.

So what does it mean , what am i doing wrong and how do I install this win32::screenshot module.

thanks,
1DMF.

"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you.
 
Have you ever compiled modules on windows before? Have you looked at the activestate releases and using their ppm?
 
I was about to suggest PPM but I tested it first:

Code:
C:\Documents and Settings\Kirsle>ppm install Win32-Screenshot
Downloading ActiveState Package Repository packlist...done
Updating ActiveState Package Repository database...done
ppm install failed: Can't find any package that provide Win32-Screenshot

-------------
Cuvou.com | The NEW Kirsle.net
 
Yes I've installed modules on this server before, and all has been fine till now.

As for PPM, the module doesn't show up, so isn't available in the repositories I use.

The only way I could get this module is from CPAN direct and then try the perl makefile.pl , nmake method.

I guess i'll have to email the module writer and see if they can help.



"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you.
 
Have you tried to install it using CPAN?

Code:
perl -MCPAN -e shell
cpan> install Win32::Screenshot

HTH
--Paul

Paul
------------------------------------
Spend an hour a week on CPAN, helps cure all known programming ailments ;-)
 
ok, i tried that for Win32::CaptureIE and get a whole bunch of errors.
Microsoft Windows [Version 5.2.3790]
(C) Copyright 1985-2003 Microsoft Corp.

C:\Documents and Settings\cchant>perl -MCPAN -e shell

cpan shell -- CPAN exploration and modules installation (v1.7602)
ReadLine support enabled


cpan> install Win32::CaptureIE
CPAN: Storable loaded ok
CPAN: LWP::UserAgent loaded ok
Fetching with LWP:
Going to read C:\Perl\cpan\sources\authors\01mailrc.txt.gz
Fetching with LWP:
Going to read C:\Perl\cpan\sources\modules\02packages.details.txt.gz
Database was generated on Tue, 06 Feb 2007 03:14:14 GMT

There's a new CPAN.pm version (v1.8802) available!
[Current version is v1.7602]
You might want to try
install Bundle::CPAN
reload cpan
without quitting the current session. It should be a seamless upgrade
while we are running...

Fetching with LWP:
Going to read C:\Perl\cpan\sources\modules\03modlist.data.gz
Going to write C:\Perl\cpan\Metadata
Running install for module Win32::CaptureIE
Running make for P/PS/PSME/Win32-CaptureIE-1.30.tar.gz
Fetching with LWP:
gz
CPAN: Digest::MD5 loaded ok
Fetching with LWP:
Checksum for C:\Perl\cpan\sources\authors\id\P\PS\PSME\Win32-CaptureIE-1.30.tar.
gz ok
Scanning cache C:\Perl/cpan/build for sizes
CPAN: Archive::Tar loaded ok
Win32-CaptureIE-1.30/
Win32-CaptureIE-1.30/CaptureIE.pm
Win32-CaptureIE-1.30/Changes
Win32-CaptureIE-1.30/Makefile.PL
Win32-CaptureIE-1.30/MANIFEST
Win32-CaptureIE-1.30/META.yml
Win32-CaptureIE-1.30/README
Win32-CaptureIE-1.30/t/
Win32-CaptureIE-1.30/t/Win32-CaptureIE.t

CPAN.pm: Going to build P/PS/PSME/Win32-CaptureIE-1.30.tar.gz

Checking if your kit is complete...
Looks good
Warning: prerequisite Win32::Screenshot 1.2 not found.
Writing Makefile for Win32::CaptureIE
---- Unsatisfied dependencies detected during [P/PS/PSME/Win32-CaptureIE-1.30.ta
r.gz] -----
Win32::Screenshot
Shall I follow them and prepend them to the queue
of modules we are processing right now? [yes] yes
Running make test
Delayed until after prerequisites
Running make install
Delayed until after prerequisites
Running install for module Win32::Screenshot
Running make for P/PS/PSME/Win32-Screenshot-1.20.tar.gz
Fetching with LWP:
.gz
Checksum for C:\Perl\cpan\sources\authors\id\P\PS\PSME\Win32-Screenshot-1.20.tar
.gz ok
Win32-Screenshot-1.20/
Win32-Screenshot-1.20/Changes
Win32-Screenshot-1.20/fallback/
Win32-Screenshot-1.20/fallback/const-c.inc
Win32-Screenshot-1.20/fallback/const-xs.inc
Win32-Screenshot-1.20/Makefile.PL
Win32-Screenshot-1.20/MANIFEST
Win32-Screenshot-1.20/META.yml
Win32-Screenshot-1.20/ppport.h
Win32-Screenshot-1.20/README
Win32-Screenshot-1.20/Screenshot.pm
Win32-Screenshot-1.20/Screenshot.xs
Win32-Screenshot-1.20/t/
Win32-Screenshot-1.20/t/Win32-Screenshot.t
Win32-Screenshot-1.20/TYPEMAP

CPAN.pm: Going to build P/PS/PSME/Win32-Screenshot-1.20.tar.gz

Checking if your kit is complete...
Looks good
Note (probably harmless): No library found for comctl32.lib
Note (probably harmless): No library found for oldnames.lib
Note (probably harmless): No library found for kernel32.lib
Note (probably harmless): No library found for user32.lib
Note (probably harmless): No library found for gdi32.lib
Note (probably harmless): No library found for winspool.lib
Note (probably harmless): No library found for comdlg32.lib
Note (probably harmless): No library found for advapi32.lib
Note (probably harmless): No library found for shell32.lib
Note (probably harmless): No library found for ole32.lib
Note (probably harmless): No library found for oleaut32.lib
Note (probably harmless): No library found for netapi32.lib
Note (probably harmless): No library found for uuid.lib
Note (probably harmless): No library found for ws2_32.lib
Note (probably harmless): No library found for mpr.lib
Note (probably harmless): No library found for winmm.lib
Note (probably harmless): No library found for version.lib
Note (probably harmless): No library found for odbc32.lib
Note (probably harmless): No library found for odbccp32.lib
Note (probably harmless): No library found for msvcrt.lib
Writing Makefile for Win32::Screenshot

Microsoft (R) Program Maintenance Utility Version 1.50
Copyright (c) Microsoft Corp 1988-94. All rights reserved.

cp Screenshot.pm blib\lib\Win32\Screenshot.pm
C:\Perl\bin\perl.exe C:\Perl\lib\ExtUtils\xsubpp -typemap C:\Perl\lib\E
xtUtils\typemap -typemap typemap Screenshot.xs > Screenshot.xsc && C:\Perl\bin\
perl.exe -MExtUtils::Command -e mv Screenshot.xsc Screenshot.c
Please specify prototyping behavior for Screenshot.xs (see perlxs manual)
cl -c -I. -nologo -GF -W3 -MD -Zi -DNDEBUG -O1 -DWIN32 -D_CONSOLE -DNO
_STRICT -DHAVE_DES_FCRYPT -DNO_HASH_SEED -DUSE_SITECUSTOMIZE -DPERL_IMPLICIT_CON
TEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -DPERL_MSVCRT_READFIX -MD -Zi -DNDEBUG -O1
-DVERSION=\"1.20\" -DXS_VERSION=\"1.20\" "-IC:\Perl\lib\CORE" Screenshot
.c
'cl' is not recognized as an internal or external command,
operable program or batch file.
NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' : return code '0x1'
Stop.
nmake -- NOT OK
Running make test
Can't test without successful make
Running make install
make had returned bad status, install seems impossible
Running make for P/PS/PSME/Win32-CaptureIE-1.30.tar.gz
Is already unwrapped into directory C:\Perl\cpan\build\Win32-CaptureIE-1.30

CPAN.pm: Going to build P/PS/PSME/Win32-CaptureIE-1.30.tar.gz


Microsoft (R) Program Maintenance Utility Version 1.50
Copyright (c) Microsoft Corp 1988-94. All rights reserved.

cp CaptureIE.pm blib\lib\Win32\CaptureIE.pm
nmake -- OK
Running make test

Microsoft (R) Program Maintenance Utility Version 1.50
Copyright (c) Microsoft Corp 1988-94. All rights reserved.

C:\Perl\bin\perl.exe "-MExtUtils::Command::MM" "-e" "test_harness(0, 'bl
ib\lib', 'blib\arch')" t/*.t
t/Win32-CaptureIE....Can't locate Win32/Screenshot.pm in @INC (@INC contains: C:
\Perl\cpan\build\Win32-CaptureIE-1.30\blib\lib C:\Perl\cpan\build\Win32-CaptureI
E-1.30\blib\arch C:/Perl/site/lib C:/Perl/lib .) at C:\Perl\cpan\build\Win32-Cap
tureIE-1.30\blib\lib/Win32/CaptureIE.pm line 62.
BEGIN failed--compilation aborted at C:\Perl\cpan\build\Win32-CaptureIE-1.30\bli
b\lib/Win32/CaptureIE.pm line 62.
Compilation failed in require at t/Win32-CaptureIE.t line 10.
BEGIN failed--compilation aborted at t/Win32-CaptureIE.t line 10.
t/Win32-CaptureIE....dubious
Test returned status 2 (wstat 512, 0x200)
DIED. FAILED test 1
Failed 1/1 tests, 0.00% okay
Failed Test Stat Wstat Total Fail Failed List of Failed
-------------------------------------------------------------------------------
t/Win32-CaptureIE.t 2 512 1 2 200.00% 1
Failed 1/1 test scripts, 0.00% okay. 1/1 subtests failed, 0.00% okay.
NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' : return code '0x2'
Stop.
nmake test -- NOT OK
Running make install
make test had returned bad status, won't install without force

"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you.
 
I've managed to use PPM for Win32::Screenshot , it is now Win32::CaptureIE giving me the problem, it is trying to install a DLL already installed by image::magick , yet it is dependent on image-magick.

I'm concidering deleteing the said DLL and letting Win32::CaptureIE install its own, if that fails i'm giving up and trying something else!

"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you.
 
don't delete it rename it and keep track of it, it could really bite in the ass if there's a mismatch in versions



Paul
------------------------------------
Spend an hour a week on CPAN, helps cure all known programming ailments ;-)
 
New gold,
how you mean , I have already added Trouchelle to PPM, it is the only repository out of Bribes & ActiveState that have it.

But still no good!

"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top