From: Alan W. I. <ai...@us...> - 2004-01-04 17:50:41
|
On 2004-01-04 16:46+0100 Rafael Laboissiere wrote: > As regards pkg-config, this tool is just a convenience for the users to link > programs against the installed PLplot libraries. This is what I get in my > system: > > $ pkg-config --cflags plplotd > -I/usr/include/plplot > $ pkg-config --libs plplotd > -lplplotd -lfreetype -lz -lcsirocsa -lcsironn -lqhull -lm -lltdl -ldl This just reminded me there is another alternative as well that works cross-platform, does not require the pkg-config package, and (unlike plplot_libtool) does not hijack the command-line . Please have a look at plplot-config. This was written by Maurice LeBrun as a convenient front-end for plplot_libtool, and it apparently works quite well. On my system: plplot-config --cflags --libs echos back -I/usr/local/plplot_at/include -I/usr/X11R6/include -L/usr/local/plplot_at/lib /usr/local/plplot_at/lib/libplplotd.so /usr/lib/libfreetype.so /usr/local/plplot_at/lib/libcsirocsa.so /usr/local/plplot_at/lib/libcsironn.so -lqhull -lm -ldl -Wl,--rpath -Wl,/usr/local/plplot_at/lib -Wl,--rpath -Wl,/usr/local/plplot_at/lib Of course --cflags and --libs can be used separately and there are --with-c++, --with-g77, and --with-tcl options as well that modify the --cflags and --libs output. So it has all the benefits of plplot_libtool (well-tested cross-platform support using exactly the same libtool script that is automatically used by make check to build the examples in the build tree) without the drawback of hijacking the command line. I had completely forgotten about this script, but now I am reminded of it I intend to change over the various Makefile.examples.in files to use it to replace the raw plplot_libtool commands found there. Don't hold the cvs snapshot tarball for this since it is only a design issue and has no direct practical impact. This change will take me some extra time today because I notice that plplot-config.in does not yet take advantage of the TCLINCCMD, TKINCCMD, and INCLUDE_DIR_CMD configuration variables. Alan __________________________ Alan W. Irwin email: ir...@be... phone: 250-727-2902 Astronomical research affiliation with Department of Physics and Astronomy, University of Victoria (astrowww.phys.uvic.ca). Programming affiliations with the 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 __________________________ |