Dependencies to Compile Audacity on Ubuntu

Compiling Audacity from source on Ubuntu requires a collection of core build tools, graphical toolkit libraries, and audio processing packages to complete the configuration and build process successfully. This guide provides a clear, categorized breakdown of every dependency that must be pre-installed via the Ubuntu package manager before running CMake to build the software.

1. Essential Build Tools

Before configuring Audacity, your system must have the standard C/C++ compilation toolchain, version control, and build automation software installed:

2. Graphical Toolkit and Desktop Libraries

Audacity uses wxWidgets with a GTK+ 3 backend for its graphical interface, as well as desktop integration libraries:

3. Audio System and Driver Interfaces

To interact with Linux audio subsystems, you must install the development packages for ALSA and JACK:

4. Audio Formats and Processing Libraries

Audacity relies on specialized libraries to decode, encode, and manipulate various audio formats:

Complete Installation Command

You can install the entire set of required build tools and libraries on modern Ubuntu releases by running the following command in the terminal:

sudo apt update
sudo apt install -y \
    build-essential \
    cmake \
    git \
    pkg-config \
    python3 \
    python3-pip \
    libwxgtk3.2-dev \
    libgtk-3-dev \
    libglib2.0-dev \
    libasound2-dev \
    libjack-jackd2-dev \
    libsndfile1-dev \
    libsoxr-dev \
    libflac-dev \
    libogg-dev \
    libvorbis-dev \
    libmpg123-dev \
    libid3tag0-dev \
    libsoundtouch-dev \
    libtwolame-dev

Once these packages are installed, your Ubuntu system will be prepared to clone the Audacity repository and proceed with CMake configuration and compilation.