in reply to How to save Wx::XML docs as PDF.
So following on from option 3), I find I can download the version with about the date on Wx::PdfDocument with:
wget http://ufpr.dl.sourceforge.net/project/wxcode/Components/wxPdfDoc +ument/wxpdfdoc-0.7.5.tar.gz tar -zxvf wxpdfdoc-0.7.5.tar.gz cd wxpdfdoc export PATH=/usr/local/lib/perl/5.10.1/Alien/wxWidgets/gtk_2_8_11_uni/ +bin:$PATH export LD_LIBRARY_PATH=/usr/local/lib/perl/5.10.1/Alien/wxWidgets/gtk_ +2_8_11_uni/lib:$LD_LIBRARY_PATH ./configure make make install cd ~
On the way I get a few compile errors like this:
././src/pdfimage.cpp:580: error: ‘class wxGIFDecoder’ has no member na +med ‘ReadGIF’ ././src/pdfimage.cpp:587: error: ‘class wxGIFDecoder’ has no member na +med ‘GetWidth’ ././src/pdfimage.cpp:588: error: ‘class wxGIFDecoder’ has no member na +med ‘GetHeight’
As I have no intention of using GIFs I comment out the offending code.
And miraculously I get a clean compile.
I already have Wx 2.8.11 (as you can see). So now I do a cpan install and this is the resulting dump:
cpan -i Wx::PdfDocument CPAN: File::HomeDir loaded ok (v0.99) CPAN: Storable loaded ok (v2.20) Reading '/home/steve/.cpan/Metadata' Database was generated on Thu, 22 Mar 2012 11:10:26 GMT Running install for module 'Wx::PdfDocument' Running make for M/MW/MWARDELL/Wx-PdfDocument-0.05.tar.gz CPAN: Digest::SHA loaded ok (v5.47) CPAN: Compress::Zlib loaded ok (v2.02) Checksum for /home/steve/.cpan/sources/authors/id/M/MW/MWARDELL/Wx-Pdf +Document-0.05.tar.gz ok CPAN: Archive::Tar loaded ok (v1.52) Wx-PdfDocument-0.05/ Wx-PdfDocument-0.05/Changes Wx-PdfDocument-0.05/cpp/ Wx-PdfDocument-0.05/cpp/pdf_constants.cpp Wx-PdfDocument-0.05/lib/ Wx-PdfDocument-0.05/lib/Wx/ Wx-PdfDocument-0.05/lib/Wx/PdfDocument.pm Wx-PdfDocument-0.05/Makefile.PL Wx-PdfDocument-0.05/MANIFEST Wx-PdfDocument-0.05/META.yml Wx-PdfDocument-0.05/PdfDocument.xs Wx-PdfDocument-0.05/README.txt Wx-PdfDocument-0.05/samples/ Wx-PdfDocument-0.05/samples/20k_c1.txt Wx-PdfDocument-0.05/samples/20k_c2.txt Wx-PdfDocument-0.05/samples/apple.gif Wx-PdfDocument-0.05/samples/countries.txt Wx-PdfDocument-0.05/samples/sample1.pl Wx-PdfDocument-0.05/samples/sample2.pl Wx-PdfDocument-0.05/samples/sample3.pl Wx-PdfDocument-0.05/samples/sample4.pl Wx-PdfDocument-0.05/samples/smile.jpg Wx-PdfDocument-0.05/script/ Wx-PdfDocument-0.05/script/wx_xspp.pl Wx-PdfDocument-0.05/t/ Wx-PdfDocument-0.05/t/01_load.t Wx-PdfDocument-0.05/typemap Wx-PdfDocument-0.05/typemap.xsp Wx-PdfDocument-0.05/XS/ Wx-PdfDocument-0.05/XS/PdfDocument.xsp CPAN: File::Temp loaded ok (v0.22) CPAN: Parse::CPAN::Meta loaded ok (v1.4402) CPAN: CPAN::Meta loaded ok (v2.120630) CPAN.pm: Building M/MW/MWARDELL/Wx-PdfDocument-0.05.tar.gz Checking if your kit is complete... Looks good 'WX' is not a known MakeMaker parameter name. Unrecognized argument in LIBS ignored: 'wxpdfdoc' Writing Makefile for Wx::PdfDocument Writing MYMETA.yml and MYMETA.json CPAN: Module::CoreList loaded ok (v2.61) cp lib/Wx/PdfDocument.pm blib/lib/Wx/PdfDocument.pm /usr/bin/perl /usr/local/share/perl/5.10.1/ExtUtils/xsubpp -noprototy +pes -typemap /usr/share/perl/5.10/ExtUtils/typemap -typemap /usr/loc +al/lib/perl/5.10.1/Wx/typemap -typemap typemap PdfDocument.xs > PdfD +ocument.xsc && mv PdfDocument.xsc PdfDocument.c The INCLUDE directive with a command is discouraged. Use INCLUDE_COMMA +ND instead! In particular using 'perl' in an 'INCLUDE: ... |' directi +ve is not guaranteed to pick up the correct perl. The INCLUDE_COMMAND + directive allows the use of $^X as the currently running perl, see ' +perldoc perlxs' for details. in PdfDocument.xs, line 28 Can't locate Wx/XSP/Driver.pm in @INC (@INC contains: /home/steve/.cpa +n/build/Wx-PdfDocument-0.05-nfkAkG/script/../build /etc/perl /usr/loc +al/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/s +hare/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/sit +e_perl .) at script/wx_xspp.pl line 31. BEGIN failed--compilation aborted at script/wx_xspp.pl line 31. g++ -pthread -c -I/contrib/wxpdfdoc/include -I. -I/usr/local/lib/pe +rl/5.10.1/Wx -I/usr/local/lib/perl/5.10.1/Alien/wxWidgets/gtk_2_8_11_ +uni/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/local/lib/perl/5.1 +0.1/Alien/wxWidgets/gtk_2_8_11_uni/include/wx-2.8 -D_REENTRANT -D_GN +U_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -fstack-protector -I/usr +/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -D +VERSION=\"0.05\" -DXS_VERSION=\"0.05\" -fPIC "-I/usr/lib/perl/5.10/CO +RE" -DWXPL_EXT -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ P +dfDocument.c In file included from /usr/local/lib/perl/5.10.1/Wx/cpp/compat.h:83, from /usr/local/lib/perl/5.10.1/Wx/cpp/wxapi.h:34, from PdfDocument.xs:18: /usr/lib/perl/5.10/CORE/config.h:2614:1: warning: "_" redefined In file included from /usr/local/lib/perl/5.10.1/Alien/wxWidgets/gtk_2 +_8_11_uni/include/wx-2.8/wx/filename.h:29, from /usr/local/lib/perl/5.10.1/Alien/wxWidgets/gtk_2 +_8_11_uni/include/wx-2.8/wx/filesys.h:27, from /usr/local/include/wx/pdfimage.h:16, from /usr/local/include/wx/pdfdoc.h:22, from PdfDocument.xs:13: /usr/local/lib/perl/5.10.1/Alien/wxWidgets/gtk_2_8_11_uni/include/wx-2 +.8/wx/intl.h:48:1: warning: this is the location of the previous defi +nition In file included from /usr/local/include/wx/pdfdoc.h:21, from PdfDocument.xs:13: /usr/local/include/wx/pdffont.h:90: error: ‘wxIntegerHash’ has not bee +n declared /usr/local/include/wx/pdffont.h:90: error: ‘wxIntegerEqual’ has not be +en declared /usr/local/include/wx/pdffont.h:90: error: ‘wxPdfCharWidthMap’ has not + been declared /usr/local/include/wx/pdffont.h:90: error: expected constructor, destr +uctor, or type conversion before ‘;’ token /usr/local/include/wx/pdffont.h:209: error: ‘wxPdfCharWidthMap’ has no +t been declared /usr/local/include/wx/pdffont.h:212: error: expected ‘;’ before ‘*’ to +ken /usr/local/include/wx/pdffont.h:215: error: expected ‘;’ before ‘virtu +al’ /usr/local/include/wx/pdffont.h:249: error: expected ‘;’ before ‘*’ to +ken /usr/local/include/wx/pdffont.h: In member function ‘void wxPdfFont::S +etCharWidthMap(int*)’: /usr/local/include/wx/pdffont.h:209: error: ‘m_cw’ was not declared in + this scope In file included from /usr/local/include/wx/pdfdoc.h:22, from PdfDocument.xs:13: /usr/local/include/wx/pdfimage.h: At global scope: /usr/local/include/wx/pdfimage.h:32: error: expected ‘,’ or ‘...’ befo +re ‘&’ token /usr/local/include/wx/pdfimage.h:117: error: expected ‘,’ or ‘...’ bef +ore ‘&’ token In file included from /usr/local/include/wx/pdfdoc.h:23, from PdfDocument.xs:13: /usr/local/include/wx/pdfproperties.h:441: error: expected ‘,’ or ‘... +’ before ‘&’ token /usr/local/include/wx/pdfproperties.h:493: error: expected ‘,’ or ‘... +’ before ‘&’ token /usr/local/include/wx/pdfproperties.h:550: error: expected ‘;’ before +‘*’ token /usr/local/include/wx/pdfproperties.h:557: error: expected ‘;’ before +‘*’ token In file included from PdfDocument.xs:13: /usr/local/include/wx/pdfdoc.h:449: error: expected ‘,’ or ‘...’ befor +e ‘&’ token /usr/local/include/wx/pdfdoc.h:521: error: expected ‘,’ or ‘...’ befor +e ‘&’ token /usr/local/include/wx/pdfdoc.h:591: error: expected ‘,’ or ‘...’ befor +e ‘&’ token In file included from PdfDocument.xs:13: /usr/local/include/wx/pdfdoc.h:1267: error: expected ‘,’ or ‘...’ befo +re ‘&’ token /usr/local/include/wx/pdfdoc.h:1288: error: expected ‘,’ or ‘...’ befo +re ‘&’ token /usr/local/include/wx/pdfdoc.h:1978: error: expected ‘,’ or ‘...’ befo +re ‘&’ token make: ** [PdfDocument.o] Erro 1 MWARDELL/Wx-PdfDocument-0.05.tar.gz /usr/bin/make -- NOT OK 'YAML' not installed, will not store persistent state Running make test Can't test without successful make Running make install Make had returned bad status, install seems impossible
Maybe it's because wxWidgets is a relatively new version and Wx::PdfDocuments is relatively 'Mature'.
What do you think?
Regards
Steve
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to save Wx::XML docs as PDF.
by Anonymous Monk on Mar 22, 2012 at 21:24 UTC |