On 2010-10-14 19:02-0700 Alan W. Irwin wrote:

> Because PLplot now has an incremented SOVERSION, I had to rebuild
> PDL::Graphics::PLplot (the latest version = 0.52).  I have attached my
> cookbook for doing that in case anybody else wants to do complete
> testing of PDL::Graphics::PLplot against modern PLplot.
>
> The result is a PDL module which is linked against the svn trunk of
> PLplot (SOVERSION 10), and which also suppresses the use of rpath.
> That suppression is fairly essential since use of rpath means
> LD_LIBRARY_PATH is ignored, and that environment variable helps us
> switch between the build-tree version of PLplot and the install-tree
> version of PLplot (see plplot_test/test_pdl.sh(.in).

Oops!  I failed to check Perl/PDL with a clean build.  Once I did
that, it turns out we have a classic "chicken/egg" issue if you have
built your own PDL::Graphics::PLplot module following the previous
cookbook.  That cookbook means PDL::Graphics::PLplot will depend on
soversion 10 of libplplotd.  If you do a clean build with the install
tree removed; then libplplotd (soversion 10) will not (yet) be
accessible at cmake time, our CMake tests for the existence of
PDL::Graphics::PLplot fails, and Perl/PDL testing is disabled.  This
is obviously not the desired outcome!

To get around this difficulty, I have just (revision 11261) implemented

option(SKIP_PDL_CHECK "SKIP all PDL checks because libplplotd not yet
available at cmake time" OFF)

Of course, you should only use this option if you know what you are
doing; e.g., you already _know_ that you have PDL-Graphics-PLplot
installed with the PDL-Graphics-PLplot version
>= 0.47 (see previous cookbook for how to do that).  I have just
done a clean build and test with -DSKIP_PDL_CHECK=ON, and all seems well
with PDL::Graphics::PLplot except for the TLC issues I mentioned in
my previous post.

Although I haven't tested it (because I am not interested in the
behaviour of old versions of PDL::Graphics::PLplot and it is laborious
to switch from the new to old version), I believe the default
SKIP_PDL_CHECK=OFF behaviour should "just work" for those who are
satisfied with the unmodified system version of PDL which normally
contains an old version of PDL-Graphics-PLplot which only allows a
very limited selection of the PDL examples to be run.

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 libLASi project (unifont.org/lasi); the Loads of
Linux Links project (loll.sf.net); and the Linux Brochure Project
(lbproject.sf.net).
__________________________

Linux-powered Science
__________________________

------------------------------------------------------------------------------
Download new Adobe(R) Flash(R) Builder(TM) 4
The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly 
Flex(R) Builder(TM)) enable the development of rich applications that run
across multiple browsers and platforms. Download your free trials today!
http://p.sf.net/sfu/adobe-dev2dev
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to