From: Alan W. Irwin <irwin@be...> - 2009-06-03 00:50:09
The new build system for the installed examples has been completed with
revision 10027. All functionality (and more) that is currently available
with the more traditional Makefile+pkg-config approach for the installed
examples is now implemented for the new build system.
To run the new build system simply build PLplot as per normal and install it.
Then cd to an initially empty build tree. Then
where relative_path is the relative path between your build tree for the
installed examples and the top of the installed examples tree (currently
located at $prefix/share/plplot5.9.4/examples, where $prefix is your
installation prefix for the general PLplot build). N.B. cmake-2.6.4 is
a requirement for this new build system.
The new build system for the installed examples works well for me. CMake is
really smart so if you repeat a "make install" step for the core build only
the files that are actually changed are installed. This has two beneficial
effects. (1) Second and subsequent "make install" commands only require
trivial amounts of time to complete if you are changing (say) just one file
and want to get that change tested immediately with the installed examples
build. (2) The new build system for the installed examples only rebuilds
what is necessary. For example, if you are updating just one of the C++
examples, then the corresponding installed example is the only example that
gets rebuilt by the new build system. This minimal rebuilding, the parallel
build capabilities I have mentioned before, the logical layout of files in
the install tree, and the possibility of using all the CMake generator
flexibility on Windows and Mac OS X should make the new build system for the
installed examples a pleasure to use. However, the new build system does
need testing on more than just my Debian Lenny platform so please do that
(!) so we can have some assurance there are few or no cross-platform bugs
with this new approach. Once we gain experience with this new
build system on more platforms, I plan to write it up in our Wiki
as the preferred choice for testing PLplot using the installed examples.
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