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

  1. please include relevant shared libraries on stick. that, run ldd your_app list of relevant libraries.
  2. make preferable posix shell script invoke application

  3. in script point libraries setting ld_library_path appropriatly


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -