Files
2026-08-24 10:03:24 +08:00
..
2026-08-24 10:03:24 +08:00
2026-08-24 10:03:24 +08:00
2026-08-24 10:03:24 +08:00
2026-08-24 10:03:24 +08:00
2026-08-24 10:03:24 +08:00

README.md

Dependent Codec Libraries

Contents

  1. Downloading the opensource
  2. Building the libraries

Downloading the opensource

  1. opus
  2. fdk-aac
  3. flac

Please download the opensource and unzip to directory separately as following:

    opus/opus-1.4
    aac/fdk-aac-free-2.0.0
    flac/flac-1.4.2

Building the libraries

Prerequisites

  1. CMake version 3.6 or higher.
  2. Tool chains if need cross compiling.

Basic build

"build.sh" is an example to build, you can run it directly at your side.

Cross compiling

For the purposes of building the codec and applications and relative to the scope of this guide, all builds for architectures differing from the native host architecture will be considered cross compiles. The CMake build handles cross compiling via the use of toolchain files included in the repository. The toolchain files available at the time of this writing are:

  • arm64-ios.cmake
  • arm64-linux.cmake
  • x86_64-mingw.cmake
  • x86-macos.cmake

The following example demonstrates use of the x86-macos.cmake toolchain file on a x86_64 MacOS host:

    $ ./build.sh --x86-macos_toolchain