On 2006-12-29 22:53+0100 Werner Smekal wrote:
> So I took the svg driver, rewrote it for the pdf library, wrote some
> cmake modules and ready I was (after some hours :).
Hi Werner:
Thanks for the new pdf device driver. However, I could not build it on
Linux (Debian stable).
Here is what I did.
* Unpack, configure, build, and install libharu-2.0.8
tar zxf libharu_2_0_8.tgz
cd libharu-2.0.8/
./configure --prefix=/home/software/libharu/install --shared >& configure.out
make >& make.out
make install >& make_install.out
All seemed well.
* Set up environment variables for cmake (only the last items in the
colon-separated list are relevant to libharu).
export CMAKE_LIBRARY_PATH=/home/software/autotools/install/lib:\
/home/software/cgmlib/cd1.3:/home/software/libharu/install/lib/
export CMAKE_INCLUDE_PATH=/home/software/autotools/install/include:\
/home/software/cgmlib/cd1.3:/home/software/libharu/install/include
* configure PLplot from an empty build tree.
cmake -DCMAKE_INSTALL_PREFIX=/home/software/plplot_cvs/installcmake \
-DCMAKE_VERBOSE_MAKEFILE=ON -DENABLE_java=OFF -DPLD_svg=ON -DPLD_pdf=ON
../plplot_cmake >& cmake.out
All seemed well:
[EMAIL PROTECTED]> grep -i pdf cmake.out
-- Looking for haru pdf header and library
-- Findhpdf: Found both hpdf.h and libhpdf.a
-- Looking for haru pdf header and library - found
DEVICES_LIST:
cgm;png;jpeg;gif;hp7470;hp7580;lj_hpgl;gcw;mem;null;pbm;pdf;plmeta;ps;psttf;svg;tk;tkwin;wxwidgets;xfig;xwin
DRIVERS_LIST:
cgm;gd;hpgl;gcw;mem;null;pbm;pdf;plmeta;ps;psttf;svg;tk;tkwin;wxwidgets;xfig;xwin
* However the pdf device part of the build did not work:
make >& make.out
generated the following error message:
In file included from /home/software/libharu/install/include/hpdf.h:49,
from
/home/software/plplot_cvs/HEAD/plplot_cmake/drivers/pdf.c:33:
/home/software/libharu/install/include/hpdf_types.h:159: error: syntax error
before '*' token
+ additional error messages.
Werner, let me know if you need any more information to duplicate this
pdf device build error on your Linux box with libharu-2.0.8.
Now for some general comments assuming Werner can fix the Linux issue
with this library.
libharu seems mature; the 1.0.0 version was released in 2003, and there has
been a steady series of releases ever since. I understand there are few
free pdf libraries available so libharu may be a good choice for us.
However, libharu is not well-known in the Linux world. For example, there
are no Debian packages for it. So until it gets more advertising in the
Linux world (perhaps through PLplot) we will have to build it and provide
Linux fixes ourselves. The key is getting cooperation with the developer of
libharu (exactly in the same way we got cooperation from Ed Trager for
libLASI). Werner, once you solve the Linux build issue, I suggest you donate
your fix to the developer of this package to see how he cooperates.
For the Linux brochure project (lbproject.sf.net) I get satisfactory
conversions from postscript to pdf results using ps2pdf. Thus, you may want
to compare -dev pdf results with -dev psc or psttfc results that have been
transformed by ps2pdf on your Linux box.
However, your device should ultimately give better results since generic
postscript to pdf transforms (regardless of whether done with ps2pdf on
Linux or some equivalent tool on windows) will likely miss out on some pdf
features you can get with a native pdf device driver.
Adding TrueType fonts (I checked that libharu claims to support those) will
be essential for -dev pdf users, and the compression feature you mentioned
would be nice as well. But the top priority is the Linux fix.
Alan
__________________________
Alan W. Irwin
Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).
Programming affiliations with the FreeEOS equation-of-state implementation
for stellar interiors (freeeos.sf.net); PLplot scientific plotting software
package (plplot.org); the Yorick front-end to PLplot (yplot.sf.net); the
Loads of Linux Links project (loll.sf.net); and the Linux Brochure Project
(lbproject.sf.net).
__________________________
Linux-powered Science
__________________________
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Plplot-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/plplot-devel