Static Libraries
2 posts
• Page 1 of 1
Static Libraries
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.
Thanks
--Karthik
Thanks
--Karthik

Senior Developer, AccelerEyes
PhD Student, Dept. of ECE,
UC Santa Barbara
- jrk1982
- Posts: 26
- Joined: Thu Aug 13, 2009 8:48 pm
Re:Static Libraries
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. # myprog.sh (in the same directory as myprog.bin)
export LD_LIBRARY_PATH=`dirname $0`
./myprog.bin
I hope these answers provide a solution to your problem,
Dan
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. # myprog.sh (in the same directory as myprog.bin)
export LD_LIBRARY_PATH=`dirname $0`
./myprog.bin
I hope these answers provide a solution to your problem,
Dan
- dan
- Administrator
- Posts: 61
- Joined: Thu Jul 23, 2009 2:29 pm
2 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 2 guests