|
From: Rafael L. <lab...@ps...> - 2003-03-14 14:50:30
|
* Christophe TROESTLER <deb...@ti...> [2003-03-14 14:49]:
> When I try to compile the "c" examples with "make" I get
>
> plplot_libtool --mode=link gcc x01c.c -I/usr/include/plplot -L/usr/lib -lplplotd -o x01c
> plplot_libtool: link: cannot find the library `/usr/lib/libqhull.la'
> make: *** [x01c] Error 1
>
> What is the matter? I got
>
> ii libplplot-dev 5.2.0.cvs.20030307-1
> ii libplplot5 5.2.0.cvs.20030307-1 Scientific plotting library
> ii plplot-doc 5.2.0.cvs.20030307-1
> ii plplot-gd 5.2.0.cvs.20030307-1
> ii plplot-tcl 5.2.0.cvs.20030307-1
> ii plplot-xwin 5.2.0.cvs.20030307-1
> ii libqhull4 2002.1-3 Calculate convex hulls and related structure
>
> installed, but they do not contain anything like libqhull.la !
> ^^
Short answer: apt-get install libqhull-dev (Oh, I love Debian! :-).
Long answer: This is a bad side-effect of using plplot_libtool, instead of a
full-fledged solution with the right libraries put in the Makefile. The
problem comes from here:
$ grep libqhull /usr/lib/libplplotd.la
dependency_libs='/usr/lib/libfreetype.la -lz /usr/lib/libcsa.la
/usr/lib/libnn.la /usr/lib/libqhull.la -lm -ldl'
I may try to find a way to force the use of "-lqhull" instead of
"/usr/lib/libqhull.la" in that file, because libqhull is not provided by the
PLplot pakcage. Same thing for -lfreetype. I dunno if this is possible
with libtool, but I will look at it.
Otherwise, I will probably add a dependency on libqhull-dev and
libfreetype6-dev to libplplot-dev. For now, since you are doing compilation
(i.e., development) it is appropriate to install the libqhull-dev package,
as suggested in the short answer above. Install also libfreetype6-dev, just
in case.
Last comment: The next time you find a problem in a Debian package
(specially if it is only related to the Debian packages themselves), please
send a bug report to the Debian BTS (Bug Tracking System). You will always
be able to Cc: to plplot-devel, if you wish. If you do not know what I am
talking about:
apt-get install reportbug
--
Rafael
|