On 2010-01-12 23:12-0800 David MacMahon wrote:

> I recently built and installed plplot from subversion.  I then tried
> to rebuild the examples and discovered that "pkg-config --libs"
> outputs insufficient information...
>
> $ make x01c
> /usr/bin/cc x01c.c -o x01c  `PKG_CONFIG_PATH=/Users/davidm/local/lib/
> pkgconfig pkg-config --cflags --libs plplotd`
> /usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld: can't locate file for: -
> lqhull
> collect2: ld returned 1 exit status
> make: *** [x01c] Error 1
>
> Prior to building from subversion, I had installed plplot via
> macports, which installs into /opt/local/....  I also have qhull
> installed in this same are too (also via macports).  Now that I have
> built/installed plplot from subversion into ~/local/..., get this
> output from pkg-config...
>
> $ pkg-config --libs plplotd
> -L/Users/davidm/local/lib -lplplotd -lltdl -ldl -lm -lcsirocsa -
> lcsironn -lqhull -lqsastime
>
> This should also have "-L/opt/local/lib" in it.  Of course, when
> installed via macports, it did have this because libplplotd happened
> also to be installed in /opt/local/lib.
>
> I think this should be pretty easy to fix in the cmake build files,
> but I'm afraid I'm too new to cmake to figure out where/how to fix this.
>
> Does anyone have any ideas?  I can work around it (at least on Macs)
> by adding "LD_LIBRAY_PATH=/opt/local/bin" to the make command line,
> but I'd prefer to avoid doing that.

Hi David:

As a temporary workaround, please try the new CMake-based build system
for the installed examples.  It's undocumented for now, but the steps
(after "make install" for the core build sets up that build system) is
to cd to an initially empty build directory, then  run

cmake $prefix/share/plplot5.9.5/examples
make

We also want to continue to maintain the traditional pkg-config + raw
Makefile approach for building the installed examples because many of our
users love the simplicity of pkg-config.  There, the issue you have found is
simply a maintenance one -- making sure external libraries that are
installed in non-default (from the pkg-config perspective) locations have
the correct information propagated to pkg-config.  I will deal with that
issue shortly for the qhull case.

Thanks for your report.

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
__________________________

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to