c - Distribute .so file on linux? -


i have shared library application needs (a .so) , wondering best way distribute it?

it's not can apt-get installed , need in ld path's in order run application.

in past i've needed include separate "launcher script" user click on instead of clicking on linux executable directly. launcher script set ld_library_path include directory shared library stored, , launch executable. here's script, reference (it assumes executable , shared library hidden away in sub-folder named "bin", , executable's name same script's name except without ".sh" suffix):

#!/bin/bash appname=$(basename "$0" .sh) dirname=$(dirname "$0") cd "$dirname/bin" export ld_library_path=$(pwd):$ld_library_path ./$appname "$@" 

Comments

Popular posts from this blog

java - How to specify maven bin in eclipse maven plugin? -

Error while updating a record in APEX screen -

c++ - In an add-in in Excel, written in C(++), how does one get the name of the function which called into the addin? -