Opus-1.6.1

#### Gaming Linux® From Scratch - Version 13.0

### Chapter 7. Audio

- Prev

  FLAC-1.5.0

- Next

  Speex-1.2.1

- Up
- Home

# Opus-1.6.1

## Introduction to Opus

Opus is a lossy audio compression format developed by the Internet Engineering Task Force (IETF) that is particularly suitable for interactive speech and audio transmission over the Internet. This package provides the Opus development library and headers.

### Important

For the lib32 installation instructions, they require new Meson cross files from MLFS, as `--libdir=/usr/lib32` has been moved to the cross files and no longer appear in the instructions. Install the new cross files so that 32-bit libraries don't get installed in `/usr/lib`.

- Download: https://downloads.xiph.org/releases/opus/opus-1.6.1.tar.gz

Optional
doxygen and texlive (or install-tl-unx)

## Installation of Opus

Install Opus by running the following commands:

    mkdir build &&
    cd    build &&

    meson setup --prefix=/usr        \
                --buildtype=release  \
                -D docdir=/usr/share/doc/opus-1.6.1 \
                .. &&

    ninja

Now, as the `root` user:

    ninja install

## lib32 Installation of Opus

Install lib32-Opus by running the following commands:

    rm -rf * &&
    meson setup --prefix=/usr       \
                --buildtype=release \
                --cross-file=lib32  \
                .. &&

    ninja

Now, as the `root` user:

    DESTDIR=$PWD/DESTDIR ninja install    &&
    cp -vr DESTDIR/usr/lib32/* /usr/lib32 &&
    rm -rf DESTDIR                        &&
    ldconfig

## Command Explanations

### Note

Inspect `meson_options.txt` or `meson.options` for a full list of options.

`--buildtype=release`: Specify a buildtype suitable for stable releases of the package, as the default may produce unoptimized binaries.

## Contents

Installed Programs: None
Installed Library: libopus
Installed Directory: /usr/include/opus and /usr/share/doc/opus-1.6.1

### Short Descriptions

`libopus` | provides the functions used to read and write Opus format

- Prev

  FLAC-1.5.0

- Next

  Speex-1.2.1

- Up
- Home