From: <jca...@in...> - 2001-11-13 23:40:51
|
On Sunday 11 November 2001 23:25, Alan W. Irwin wrote: | Our java examples work only if LD_LIBRARY_PATH is set, but I | *really* dislike the necessity of having to set this variable. (I | believe Joao has also commented on this problem.) I don't recall it. The Octave bindings can't use (in a straighforward way) "-rpath", and=20 so I use LD_RUN_PATH instead of LD_LIBRARY_PATH. The difference is=20 that LD_RUN_PATH is stored in the executable. In cf/pkg_octave.in: # 'mkoctfile' does not accept -rpath, use LD_RUN_PATH plplot_octave.oct plplot_octave.o: plplot_octave.cc LD_RUN_PATH=3D`pwd` $(MKOCTFILE) -v -I. -L. plplot_octave.cc ... install_octave: ... =2E... LD_RUN_PATH=3D$(LIB_DIR) $(MKOCTFILE) -v -I. -L. plplot_... I don't know if this will work for the java demos, but I guess that=20 it will, Joao | Essentially, we | need some java equivalent to the -rpath option so that libplplot(d) | is always found by java. From the description I thought the | -extdirs option on javac command might do the job, but it doesn't | (according to my tests). Perhaps we need a command inside | PLStream.java? | | Once somebody informs me of the proper way to tell java permanently | how to find our library, I am willing to do the configuration work | so that this happens automatically both for the tmp directory and | the installed directory similarly to the way we handle rpath now. | | Alan | | email: ir...@be... | phone: 250-727-2902=09FAX: 250-721-7715 | snail-mail: | Dr. Alan W. Irwin | Department of Physics and Astronomy, | University of Victoria, P.O. Box 3055, | Victoria, British Columbia, Canada, V8W 3P6 | __________________________ | | Linux-powered astrophysics | __________________________ | | | _______________________________________________ | Plplot-devel mailing list | Plp...@li... | https://lists.sourceforge.net/lists/listinfo/plplot-devel |