Subject: | [PAR 0973] Create an exe including image::magick, Dll problem |
Date: | Mon, 23 Apr 2007 12:22:36 +0200 (CEST) |
To: | bug-PAR [...] rt.cpan.org |
From: | djibril ousmanou <djibrilo [...] yahoo.fr> |
Hi,
I am using PAR module [PAR-0.973 ] and I have a problem when I try to build an exe of a perl script wich use Image::Magick Module.
perl -v :
This is perl, v5.8.8 built for MSWin32-x86-multi-thread
(with 33 registered patches, see perl -V for more detail)
Copyright 1987-2006, Larry Wall
Binary build 819 [267479] provided by ActiveState http://www.ActiveState.com
Built Aug 29 2006 12:42:41
Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.
Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl". If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.
OS :
I have the problem on Win2000, Windows Vista
windows 2000 , uname -a :
CYGWIN_NT-5.0 CEZEMBRE 1.5.24(0.156/4/2) 2007-01-31 10:57 i686 Cygwin
That's the script convert.pl :
#!/usr/bin/perl -w
use strict;
use Carp;
use Image::Magick;
use Cwd;
my $rep = getcwd();
my @fic_pdf = lister_fichiers($rep);
foreach my $file_pdf (@fic_pdf) {
my $image = new Image::Magick;
if ($file_pdf =~/(.+)\.pdf$/i){
my $name_jpg = $1.".jpg";
$image->Read($file_pdf);
my ($largeur,$hauteur) = $image->Get(qw(width height)); #Recupere les dimensions de l'image
$image->Annotate(x => $largeur, y => $hauteur,
pointsize => 10,
fill => 'black',
text => 'IMAXIO, division Diagnogene'
);
$image->Write($name_jpg);
}
}
perl convert.pl is working but when I make an exe when this command :
pp -o convert.exe convert.pl
The exe in create but When I click on the exe, I have this error message :
dynamic link library CORE_RL_magick_.dll is not find in .....(environment variable).
If I execute this command,
pp -l C:\Perl\site\lib\auto\Image\Magick\CORE_RL_magick_.dll -l C:\Perl\site\lib\auto\Image\Magick\X11.dll -l C:\Perl\site\lib\auto\Image\Magick\CORE_RL_zlib_.dll -l C:\Perl\site\lib\auto\Image\Magick\CORE_RL_bzlib_.dll -l C:\Perl\site\lib\auto\Image\Magick\CORE_RL_lcms_.dll -l C:\Perl\site\lib\auto\Image\Magick\CORE_RL_tiff_.dll -l C:\Perl\site\lib\auto\Image\Magick\CORE_RL_jpeg_.dll -l C:\Perl\site\lib\auto\Image\Magick\CORE_RL_ttf_.dll -o toto.exe convert_pdf.pl
I don't have error message but the exe doesn't make anything.
Best Regards
Djibril
---------------------------------
Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! Profitez des connaissances, des opinions et des expériences des internautes sur Yahoo! Questions/Réponses.