Page 1 of 1

Static Libraries

PostPosted: Tue Sep 15, 2009 1:04 pm
by jrk1982
Is it possible to put up static libraries for cula, in addition to dynamic libraries? These would be of great help, in integrating the cula libraries in an end user application, where we don't want the user to set the LD_LIBRARY_PATH etc.


Re:Static Libraries

PostPosted: Tue Sep 15, 2009 2:57 pm
by dan
Hi Karthik,

Releasing static libraries is not possible at this time. However, when shipping an end-user application, there are several approaches you can use to prevent the user from having to set any paths.

When running on windows, putting cula.dll and its dependencies in the same directory as a program's executable is enough to satisfy a run-time link.

On Linux, your program could be invoked through a helper script that sets the LD_LIBRARY_PATH appropriately before executing your program. In this way, from the user's perspective, the helper script is the executable, and they need not worry about any of the details as to how it is launched.

e.g. # (in the same directory as myprog.bin)
export LD_LIBRARY_PATH=`dirname $0`

I hope these answers provide a solution to your problem,