On 2011-03-11 11:47-0500 Robbeloth, Michael C CTR USAF AFMC AFRL/RBSD wrote:

> 
> Everyone,
> 
>  
> 
> If I am building Plplot from source, what is the recommended strategy for 
> incorporating plplot
> into my Java program if my users do not possess root|Administrator access to 
> their
> Linux|Mac|Windows systems. I have read some material in the plplot manual, 
> but  the information
> is based on configure scripts, not cmake scripts. If the strategy is similar, 
> that’s fine, just
> wanted to get everyone’s thoughts. If it helps, this application runs on an 
> internal network
> isolated from the outside Internet due to security restrictions.  Like I 
> said, the users do not
> have root|administrator access and the certification process to have a 
> library, application,
> etc., capable of being installed into /usr/lib, etc., is extensive (i.e., 
> painful). It would be
> nice if I could key off the user’s home directory without the use of 
> environmental variables,
> but the cmake process seems to leave hard coded rpaths in the libs which 
> aren’t easily modified
> if you’re not using some combination of ant and patchelf, etc.  

CMake allows build system designers to make any rpath choice they
like.  For the PLplot build-system case, we decided to use rpath (for
platforms that support it) for the build tree because that makes
developer use of the build tree for testing purposes much more
convenient.  For the install tree (created by "make install" and the
recommended way to use PLplot for general use), rpath is on by
default, but if a user doesn't want that result for the install tree
(say if they wanted to copy/move that tree after it was installed)
they can specify the -DUSE_RPATH=OFF cmake option.

Is that (wanting to copy the install tree to various places) your use
case?  If so, the first step is the -DUSE_RPATH=OFF cmake option
(while setting LD_LIBRARY_PATH so the run-time loader can find the
PLplot libraries assuming Linux is your platform). There are a few
other environment variables you have to set as well so that PLplot can
find internal data in the moved/copied install tree that it needs, but
we can advise you on that once you have described your use case more
clearly.

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
__________________________

------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to