Arjen Markus wrote:
> I have a question about deploying a program that uses PLplot:
> 1. On Linux, the program uses dynamically loadable drivers
> 2. It should be installed on other machines at clients' site
> I have tried, but the problem is that unless I have my original
> directory with the libraries and drivers available, loading,
> say, the xwin driver will fail.
> I have done the following:
> - Set PLPLOT_DRV_DIR to a directory that I can be sure of will
> exist on the clients' site.
> - Put the .so and .la files there
> - Adjusted the .la file (manually for the moment) so that
> they point to that directory.
> But via the debugger I have seen that ultimately dlopen()
> fails. It will not fail if the original directory is
> available, but that is an unacceptable situation.
> What can I do about this? Should I use some link flag to
> get the LD_LIBRARY_PATH mechanism to work properly? Or
> what other solution is there?
Okay, it seems solved: I have used the shared library
instead of the static library and now things are working
correctly. I still feel a bit uneasy about it, but at
least there seems to be a way forward.