[LAU] Commenting OGG and MP3 on a remote computer without downloading (full files)

jonetsu jonetsu at teksavvy.com
Wed Jun 6 17:43:06 CEST 2018


On Wed, 6 Jun 2018 15:20:08 +0200 (CEST)
"Jeanette C." <julien at mail.upb.de> wrote:

> I tried building vorbis-tools statically, but my system only provide
> dynamic libraries and I'd also love to avoid building a whole chain
> of dependencies. The remote system also is a 64bit Linux, but a
> different distro and I can't globally install software.

Looks like you have to build as a separate steps static versions of
libogg and libvorbis.  Probably like this:

#Create staging directory
STAGING=$HOME/staging/vorbis-tools
mkdir -p $STAGING

#Sources
SRC=$STAGING/src
mkdir -p $SRC

#Build artifacts
OUT=$STAGING/build
mkdir -p $OUT

#Build a static version of "libogg"
wget downloads.xiph.org/releases/ogg/libogg-1.3.1.tar.xz -qO-|tar -C
$SRC -xJ pushd $SRC/libogg*/
./configure --prefix=$OUT --disable-shared
make install
popd

#Build a static version of "libvorbis"
wget http://downloads.xiph.org/releases/vorbis/libvorbis-1.3.5.tar.xz
-qO-|tar -C $SRC -xJ pushd $SRC/libvorbis*/
./configure --prefix=$OUT LDFLAGS="-L$OUT/lib"
CPPFLAGS="-I$OUT/include" --disable-shared make install
popd

The vorbis-tools itself:

#Build "vorbis-tools"
wget downloads.xiph.org/releases/vorbis/vorbis-tools-1.4.0.tar.gz -qO-
| tar -C $SRC -xz
pushd $SRC/vorbis-tools*/
./configure LDFLAGS="-L$OUT/lib" CPPFLAGS="-I$OUT/include"
make
popd

Should yield something like:

ldd $SRC/vorbis-tools*/oggdec/oggdec

linux-vdso.so.1 (0x00007ffc85792000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fbcba839000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fbcba48e000)
/lib64/ld-linux-x86-64.so.2 (0x00007fbcbab3a000)


More information about the Linux-audio-user mailing list