Skip Menu |
 

This queue is for tickets about the Wx-PdfDocument CPAN distribution.

Report information
The Basics
Id: 83906
Status: open
Priority: 0/
Queue: Wx-PdfDocument

People
Owner: Nobody in particular
Requestors: haroldweitzman [...] gmail.com
Cc:
AdminCc:

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



Subject: Cpan install failed.
Date: Tue, 12 Mar 2013 15:14:15 -0400
To: bug-Wx-PdfDocument [...] rt.cpan.org
From: Hal Weitzman <haroldweitzman [...] gmail.com>
Download (untitled) / with headers
text/plain 3.7k
I have Padre installed. See next from Padre About: Padre 0.94 Core... osname MSWin32 archname MSWin32-x86-multi-thread Perl 5.14.2 Threads 8 RAM 183.7MB Wx... Wx 0.9917 WxWidgets 2.8.12 unicode 1 Alien::wxWidgets 0.54 Wx::Perl::ProcessStream 0.30 Wx::Scintilla 0.36 Other... PPI 1.215 Debug::Client 0.16 Config C:\Users\Harold\AppData\Local\Perl\Padre I am trying to develop an app using WxWidgets that, among other things, will display and optionally print a PDF document downloaded from the web. I tried to install Wx::PdfPrintDialog which in turn installs Wx::PdfDocument using the cpan that is installed with Padre. The following is the entire DOS command prompt log from the install: Show quoted text
cpan> install Wx::PdfPrintDialog
Running install for module 'Wx::PdfPrintDialog' Running make for M/MD/MDOOTSON/Wx-PdfDocument-0.13.tar.gz Fetching with LWP: http://cpan.strawberryperl.com/authors/id/M/MD/MDOOTSON/Wx-PdfDocument-0.13.tar.gz Checksum for C:\Dwimperl\cpan\sources\authors\id\M\MD\MDOOTSON\Wx-PdfDocument-0.13.tar.gz ok CPAN.pm: Building M/MD/MDOOTSON/Wx-PdfDocument-0.13.tar.gz Created MYMETA.yml and MYMETA.json Creating new 'Build' script for 'Wx-PdfDocument' version '0.13' Building Wx-PdfDocument Downloading wxpdfdoc-0.9.3.tar.gz Completed 10% Completed 20% Completed 30% Completed 40% Completed 50% Completed 60% Completed 70% Completed 80% Completed 90% Completed 100% Extracting wxpdfdoc-0.9.3.tar.gz Error listing contents of archive 'C:\Dwimperl\cpan\build\Wx-PdfDocument-0.13-9dsSEd\wxpdfdoc-0.9.3.tar.gz': '-cdf' is not recognized as an internal or external command, operable program or batch file. at inc/Module/Build/PdfDocument.pm line 368 Patched wxpdfdoc-0.9.3/build/makefile.gcc Patched wxpdfdoc-0.9.3/build/makefile.vc Patched wxpdfdoc-0.9.3/build29/makefile.gcc Patched wxpdfdoc-0.9.3/build29/makefile.vc Patched wxpdfdoc-0.9.3/include/wx/pdfdocument.h Patched wxpdfdoc-0.9.3/src/pdfdc28.inc Patched wxpdfdoc-0.9.3/src/pdfdc29.inc Patched wxpdfdoc-0.9.3/src/pdffontparsertruetype.cpp mingw32-make perl -f makefile.gcc CFLAGS=" -DWXPDFDOC_INHERIT_WXOBJECT=1" CPPFLAGS="-m32 -DWXPDFDOC_INHERIT_WXOBJECT=1" CXX=g++ CXXFLAGS=" -DWXPDFDOC_INHERIT_WX OBJECT=1" LDFLAGS=-m32 LINK_DLL_FLAGS=" -shared" SHARED=1 WXPERL_STATIC_DIR=x86 WX_DEBUG=0 WX_DIR=C:\Dwimperl\perl\site\lib\Alien\wxWidgets\msw_2_8_12_uni_gcc_3 _4 WX_MONOLITHIC=0 WX_SHARED=1 WX_UNICODE=1 WX_VERSION=28 'mingw32-make' is not recognized as an internal or external command, operable program or batch file. Failed with exit code 256 mingw32-make perl -f makefile.gcc CFLAGS=" -DWXPDFDOC_INHERIT_WXOBJECT=1" CPPFLAGS="-m32 -DWXPDFDOC_INHERIT_WXOBJECT=1" CXX=g++ CXXFLAGS=" -DWXPDFDOC_INHERIT_WX OBJECT=1" LDFLAGS=-m32 LINK_DLL_FLAGS=" -shared" SHARED=1 WXPERL_STATIC_DIR=x86 WX_DEBUG=0 WX_DIR=C:\Dwimperl\perl\site\lib\Alien\wxWidgets\msw_2_8_12_uni_gcc_3 _4 WX_MONOLITHIC=0 WX_SHARED=1 WX_UNICODE=1 WX_VERSION=28 MDOOTSON/Wx-PdfDocument-0.13.tar.gz C:\Dwimperl\perl\bin\perl.exe ./Build -- NOT OK Running Build test Can't test without successful make Running Build install Make had returned bad status, install seems impossible Failed during this command: MDOOTSON/Wx-PdfDocument-0.13.tar.gz : make NO It looks like the installed Padre environment does not have the correct programs needed to extract and make the required modules. How do I correct this issue? Than you so much for making all this wonderful open source code available. -- Regards Hal Weitzman haroldweitzman@gmail.com Cell: 609-217-0088
Hi, I've uploaded Wx::PdfDocument 0.1301 to CPAN which fixes your issue. The problem is that 'mingw32-make' is hard coded in the file inc/Module/Build/PdfDocument/MSWgcc.pm All you need to do to make the existing code work for Strawberry is change line 33 of the above file from $self->wxpdf_win32_runpdfmakefile('mingw32-make perl', 'gcc', 'g++', ' - shared'); to $self->wxpdf_win32_runpdfmakefile('gmake perl', 'gcc', 'g++', ' - shared'); The upload to CPAN checks for the correct 'make'. Thanks for reporting this. Mark On Tue Mar 12 15:21:12 2013, haroldweitzman@gmail.com wrote: Show quoted text
> mingw32-make perl -f makefile.gcc CFLAGS=" > -DWXPDFDOC_INHERIT_WXOBJECT=1" CPPFLAGS="-m32 > -DWXPDFDOC_INHERIT_WXOBJECT=1" CXX=g++ CXXFLAGS=" > -DWXPDFDOC_INHERIT_WX > OBJECT=1" LDFLAGS=-m32 LINK_DLL_FLAGS=" -shared" SHARED=1 > WXPERL_STATIC_DIR=x86 WX_DEBUG=0 > WX_DIR=C:\Dwimperl\perl\site\lib\Alien\wxWidgets\msw_2_8_12_uni_gcc_3 > _4 WX_MONOLITHIC=0 WX_SHARED=1 WX_UNICODE=1 WX_VERSION=28 > 'mingw32-make' is not recognized as an internal or external command, > operable program or batch file. > Failed with exit code 256
Download (untitled) / with headers
text/plain 463b
I forgot to add that Wx::PdfDocument is concerned with creating and editing PDFs. If you want to display a PDF, try installing Wx::ActiveX then use Wx::ActiveX::Acrobat; my $pdf = Wx::ActiveX::Acrobat->new( $self, -1,[-1,-1],[-1,-1] ); $pdf->LoadFile($filename); On Tue Mar 12 16:05:55 2013, MDOOTSON wrote: Show quoted text
> Hi, > > I've uploaded Wx::PdfDocument 0.1301 to CPAN which fixes your issue. > The problem is that 'mingw32-make' is hard coded in the file >
Subject: Re: [rt.cpan.org #83906] Cpan install failed.
Date: Wed, 13 Mar 2013 14:23:39 -0400
To: bug-Wx-PdfDocument [...] rt.cpan.org
From: Hal Weitzman <haroldweitzman [...] gmail.com>
Download (untitled) / with headers
text/plain 1.2k
Hi Mark, Thanks for the quick response. The reason that I thought to use Wx::PdfDocument is a note near the bottomof the documentation like below. Anyway, thanks again for your suggestion. I will try that when I get to the PDF part of my project. From the CPAN documentation: Launching a PDF Document Viewer^ <http://search.cpan.org/%7Emdootson/Wx-PdfDocument-0.1301/lib/Wx/PdfDocument.pm#___top> Wx::PdfDocument provides a static method that will query the system for the correct command to view a pdf document: Wx::PdfDocument::LaunchPdfViewer($pdffilepath); Regards Hal Weitzman haroldweitzman@gmail.com Cell: 609-217-0088 On 3/12/2013 4:13 PM, Mark Dootson via RT wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=83906 > > > I forgot to add that Wx::PdfDocument is concerned with creating and > editing PDFs. > > If you want to display a PDF, try installing Wx::ActiveX > > then > > use Wx::ActiveX::Acrobat; > > my $pdf = Wx::ActiveX::Acrobat->new( $self, -1,[-1,-1],[-1,-1] ); > $pdf->LoadFile($filename); > > > > > On Tue Mar 12 16:05:55 2013, MDOOTSON wrote:
>> Hi, >> >> I've uploaded Wx::PdfDocument 0.1301 to CPAN which fixes your issue. >> The problem is that 'mingw32-make' is hard coded in the file >>
Download up.gif
image/gif 76b
up.gif


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.