c++ - How do I include shared-library dependencies with my binary (w/o using a .deb or .rpm), and/or statically link against PulseAudio? -
i'm having hard times in building command line tools, written in c++, executed both i386 , amd64 versions of ubuntu (ideally other distros well, that's not important). distributed on usb key, have no control packaging.
my command line tool should play audio buffer well, , i'm using pulseaudio simple in order play audio buffers.
please note executable runs fine on development machine. problems arises when copy on usb key , run on other machines. there, launch executable, "file not found" error bash; have learned, should because of missing libpulse-dev package (and library, dynamically linked) on target machine.
so, i'm kindly asking: i'm supposed do? tried build 32bit static pulseaudio can't compile, , don't know else try. there way, apart static linking, deploy shared libraries application in usb key?
thanks
- please include relevant shared libraries on stick. that, run
ldd your_app
list of relevant libraries. make preferable posix shell script invoke application
in script point libraries setting ld_library_path appropriatly
Comments
Post a Comment