From: <jc...@fe...> - 2003-03-14 15:38:14
|
On Friday 14 March 2003 14:50, Rafael Laboissiere wrote: | * 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. But won't this happens in other non-debian systems that have qhull/freetype installed as archive and not shared libraries? And even if a shared library exists but it was not built with libtool? The configure test that checks for the presence of qhull just checks that a program can be compiled with -lqhull, it does not check if it is a shared/archive library. If latter in the configure process -lqhull is replaced with <absolute_path>/libqhull.la that will break the make. Does the current plplot configure scheme address this issue? I have only tested with shared libs. Joao PS-One of the reasons why I want to be able to build the plplot docbook is to be able to "make dist" in order to test this issue in other systems. | | 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 |