xiph / vorbis-tools

Command-line tools for creating and playing Ogg Vorbis files.
GNU General Public License v2.0
73 stars 28 forks source link

Please write to the HACKING: how to make static build of ogg123? #12

Open vitaly-zdanevich opened 6 years ago

vitaly-zdanevich commented 6 years ago

I need it to run on AWS Lambda.

vitaly-zdanevich commented 6 years ago

I found an answer here https://unix.stackexchange.com/questions/398836/how-to-make-a-static-binary-build-of-vorbis-tools-ogg123

eblanca commented 6 years ago

In general, when you have to build a particular tool as static executable, every library it needs has to be static as well. As a stackexchange user already told, ogg123 has a bunch of dependencies which have to be already present on your system, and further they have to be static libraries. So, before building your static ogg123, you need static libs for speex, FLAC, ogg and vorbis (and something more, iirc). Also, ogg123 needs an audio output library (most likely libao) and it has to be static as well. It is quite a long process but if you develop on that particular platform, your collection of static libraries may save your time when building different tools.