Skip Menu |
 

This queue is for tickets about the PAR-Packer CPAN distribution.

Report information
The Basics
Id: 26571
Status: open
Priority: 0/
Queue: PAR-Packer

People
Owner: Nobody in particular
Requestors: djibrilo [...] yahoo.fr
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



MIME-Version: 1.0
X-Ymail-Osg: NasWX3kVM1lD7dm_XnVw21WYlwh6nU9gw2gk3n2PSP7viJZfPGX2_URV5toG_hqEiA--
X-Spam-Status: No, hits=-2.6 required=8.0 tests=BAYES_00,DK_POLICY_TESTING,DK_SIGNED,DK_VERIFIED,HTML_MESSAGE
Received-SPF: neutral (x1.develooper.com: local policy)
X-Virus-Checked: Checked
Content-Type: multipart/alternative; boundary="0-551743109-1177323756=:61901"
Received: from la.mx.develooper.com (x1.develooper.com [63.251.223.170]) by diesel.bestpractical.com (Postfix) with SMTP id BBABB4D80ED for <bug-PAR [...] rt.cpan.org>; Mon, 23 Apr 2007 06:29:54 -0400 (EDT)
Received: (qmail 20323 invoked by alias); 23 Apr 2007 10:23:01 -0000
Received: from web23007.mail.ird.yahoo.com (HELO web23007.mail.ird.yahoo.com) (217.146.189.32) by la.mx.develooper.com (qpsmtpd/0.28) with SMTP; Mon, 23 Apr 2007 03:22:42 -0700
Received: (qmail 72986 invoked by uid 60001); 23 Apr 2007 10:22:36 -0000
Received: from [193.52.12.33] by web23007.mail.ird.yahoo.com via HTTP; Mon, 23 Apr 2007 12:22:36 CEST
Delivered-To: cpan-bug+par [...] diesel.bestpractical.com
Subject: [PAR 0973] Create an exe including image::magick, Dll problem
Return-Path: <djibrilo [...] yahoo.fr>
Domainkey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.fr; h=X-YMail-OSG:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=Ps8+cXPedE7dM/V8PtHI7Lx07EsjIPFOIkd/3IKcVNW0WmVGkLiOvwz1LiuGifcjoOhmN3Jhq5EtE2rIc8l/k2GSy/cP2z3xkhmPJt3fr0JNWEFrc+esMiboK4RKATTJ8b7/pCyJeGiYz7CEZ0PZFMEASry20SwjSXaLiEyNvsk=;
X-Original-To: bug-PAR [...] rt.cpan.org
X-Spam-Check-BY: la.mx.develooper.com
Date: Mon, 23 Apr 2007 12:22:36 +0200 (CEST)
Message-Id: <343637.61901.qm [...] web23007.mail.ird.yahoo.com>
To: bug-PAR [...] rt.cpan.org
Content-Transfer-Encoding: 8bit
From: djibril ousmanou <djibrilo [...] yahoo.fr>
Content-Length: 0
content-type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
X-RT-Original-Encoding: iso-8859-1
Content-Length: 2727
Download (untitled) / with headers
text/plain 2.6k
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.
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-RT-Original-Encoding: iso-8859-1
Content-Length: 6885
X-Ymail-Osg: eNA.stgVM1l1ivwzpapuseN91h658.8JjKFPaRY3
MIME-Version: 1.0
X-Spam-Status: No, hits=-1.2 required=8.0 tests=BAYES_00,DK_POLICY_TESTING,DK_SIGNED,DK_VERIFIED,HTML_10_20,HTML_MESSAGE
In-Reply-To: <rt-3.6.HEAD-17045-1177324364-1039.26571-3-0 [...] rt.cpan.org>
Received-SPF: neutral (x1.develooper.com: local policy)
X-Virus-Checked: Checked
Content-Type: multipart/alternative; boundary="0-1473102294-1177324936=:18600"
Received: from la.mx.develooper.com (x1.develooper.com [63.251.223.170]) by diesel.bestpractical.com (Postfix) with SMTP id B90CA4D806F for <bug-PAR [...] rt.cpan.org>; Mon, 23 Apr 2007 06:42:38 -0400 (EDT)
Received: (qmail 25951 invoked by alias); 23 Apr 2007 10:42:37 -0000
Received: from web23015.mail.ird.yahoo.com (HELO web23015.mail.ird.yahoo.com) (217.146.189.40) by la.mx.develooper.com (qpsmtpd/0.28) with SMTP; Mon, 23 Apr 2007 03:42:21 -0700
Received: (qmail 42804 invoked by uid 60001); 23 Apr 2007 10:42:16 -0000
Received: from [193.52.12.33] by web23015.mail.ird.yahoo.com via HTTP; Mon, 23 Apr 2007 12:42:16 CEST
Delivered-To: cpan-bug+par [...] diesel.bestpractical.com
Subject: RE : [rt.cpan.org #26571] AutoReply: [PAR 0973] Create an exe including image::magick, Dll problem
Domainkey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.fr; h=X-YMail-OSG:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=rBXLfhN9tI1PQkyiwB641PbzDfu9VpU5geSNMtvzjXvoHQBwwGPw+/56O5zCeVIAsSVg4SiPoqXppeMBZX/s8/j4fOqIXh65uPMQiFaEJpZoquAMa/cEO1C4dWglPeic8Q46KMxN7wfGIS6nmkz+/tCwrFi9RByDBtBxgZWsz28=;
Return-Path: <djibrilo [...] yahoo.fr>
X-Spam-Check-BY: la.mx.develooper.com
X-Original-To: bug-PAR [...] rt.cpan.org
Date: Mon, 23 Apr 2007 12:42:16 +0200 (CEST)
Message-Id: <525359.18600.qm [...] web23015.mail.ird.yahoo.com>
To: bug-PAR [...] rt.cpan.org
Content-Transfer-Encoding: 8bit
From: djibril ousmanou <djibrilo [...] yahoo.fr>
RT-Message-ID: <rt-3.6.HEAD-17094-1177324968-243.26571-0-0 [...] rt.cpan.org>
Content-Length: 0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
X-RT-Original-Encoding: iso-8859-1
X-RT-Original-Encoding: utf-8
Content-Length: 3866
Download (untitled) / with headers
text/plain 3.7k
I just want to say that I had not problem on Debian linux. Just on windows2000 and vista. Bugs in PAR via RT <bug-PAR@rt.cpan.org> a écrit : Greetings, This message has been automatically generated in response to the creation of a trouble ticket regarding: "[PAR 0973] Create an exe including image::magick, Dll problem", a summary of which appears below. There is no need to reply to this message right now. Your ticket has been assigned an ID of [rt.cpan.org #26571]. Your ticket is accessible on the web at: http://rt.cpan.org/Ticket/Display.html?id=26571 Please include the string: [rt.cpan.org #26571] in the subject line of all future correspondence about this issue. To do so, you may reply to this message. Thank you, bug-PAR@rt.cpan.org ------------------------------------------------------------------------- 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. --------------------------------- 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.
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-RT-Original-Encoding: iso-8859-1
X-RT-Original-Encoding: iso-8859-1
Content-Length: 4402
MIME-Version: 1.0
In-Reply-To: <343637.61901.qm [...] web23007.mail.ird.yahoo.com>
X-Mailer: MIME-tools 5.418 (Entity 5.418)
Content-Disposition: inline
Message-Id: <rt-3.6.HEAD-19754-1182703052-1861.26571-0-0 [...] rt.cpan.org>
References: <343637.61901.qm [...] web23007.mail.ird.yahoo.com>
Content-Type: text/plain; charset="utf8"
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Original-Encoding: utf-8
Content-Length: 1177
Download (untitled) / with headers
text/plain 1.1k
Hi, I don't have a copy of Windows on any of my computers any more, so I can't actually track down what's happening. However, I remember that you are certainly not the first person to have problems with packaging ImageMagick using PAR. Many problems encountered are related to how ImageMagick loads its DLLs from other DLLs. PAR can't track down the DLL dependencies and you have to give them by hand using -l. But I guess you got that far yourself since you tried using -l with the ImageMagick DLLs. Now, another problem might be what happens upon extraction from the archive. The file name or directory structure or location of the DLLs might be somehow not what ImageMagick expects. There has been quite some discussion on the PAR at perl dot org mailing list some time ago. I remember that specifically Glenn Linderman had been doing some significant research, but I can't recall whether he finally made it work or not. Perhaps you can search the archive of the mailing list for help. If you find out what's going wrong, please send a quick summary to this place or add it to the PAR FAQ at http://par.perl.org so others can benefit. Good luck! Best regards, Steffen
MIME-Version: 1.0
In-Reply-To: <343637.61901.qm [...] web23007.mail.ird.yahoo.com>
X-Mailer: MIME-tools 5.418 (Entity 5.418)
Content-Disposition: inline
Charset: utf8
References: <343637.61901.qm [...] web23007.mail.ird.yahoo.com>
Message-Id: <rt-3.6.HEAD-8656-1211439100-32.26571-0-0 [...] rt.cpan.org>
Content-Type: text/plain
Content-Transfer-Encoding: binary
From: PJF [...] cpan.org
X-RT-Original-Encoding: utf-8
Content-Length: 1452
Download (untitled) / with headers
text/plain 1.4k
Image::Magick is notoriously difficult to package up with pp. That's because the code that scans dependencies can't pick up all the .dlls required. I've also seen reports that the default Image::Magick install depends upon registry keys under Windows, and there's no easy way to pack these into a .par file. Luckily, there's a solution to both. If you're using ActiveState Perl, you'll want to grab the Image-Magick distribution from http://www.bribes.org/perl/ppmdir.html . This doesn't depend upon registry values, and puts all the .dll files into c:/perl/... where they're easier to find. Secondly, you'll need to tell pp to include those extra .dll files using the -l switch when you package your program. In my experience all the CORE_RL_ files, as well as the X11.dll files are required for Image::Magick to work. You may also need to include some of the IM_MOD_RL_ .dlls, depending upon which image formats you're using. If you want an example build-script, see http://search.cpan.org/src/PJF/App-SweeperBot-0.02/MakeExe.pl which is what I use to build my minesweeper playing robot ( http://sweeperbot.org/) , which uses Image::Magick as part of its image-recognition routines. Since this seems to come up regularly, it would be lovely if pp/scandeps had a way of realising that Image::Magick depends upon the extra files, but unfortunately I won't have the opportunity to write a patch in the foreseeable future. ;( Cheerio, Paul
MIME-Version: 1.0
In-Reply-To: <rt-3.6.HEAD-8656-1211439100-32.26571-0-0 [...] rt.cpan.org>
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
References: <343637.61901.qm [...] web23007.mail.ird.yahoo.com> <rt-3.6.HEAD-8656-1211439100-32.26571-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="UTF-8"
Message-ID: <rt-3.8.HEAD-26540-1270060089-1137.26571-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 527
Download (untitled) / with headers
text/plain 527b
Another Way to resolv this problem is to download PAR::Packer and compile it using gcc for example (In Windows). you have to download the latest version of Image::magick in the website and during the installation, install the Perl Image Magick too. NB : You have to use the latest version of ActivePerl that PerlMagick use in the web site. Website : http://www.imagemagick.org/script/binary-releases.php#windows Use ImageMagick-6.6.0-10-Q16-windows-dll.exe for example. After that, the packaging with PAR::Packer will be OK.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.