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

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -