Building Audacity 2.4.2 on Debian 10 (with cmake 3.18)

Building and customizing Audacity from the source code.
Forum rules
If you require help using Audacity, please post on the forum board relevant to your operating system:
Windows
Mac OS X
GNU/Linux and Unix-like
Locked
steve
Site Admin
Posts: 81436
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Building Audacity 2.4.2 on Debian 10 (with cmake 3.18)

Post by steve » Sun Aug 16, 2020 5:04 pm

Audacity 2.4.2 requires cmake version 3.15 or later.
At time of writing, the Debian 10 repository version of cmake is 3.13.4-1, which is too old, so the first task is to install a more recent version of cmake.
  1. Uninstall any version of cmake currently installed:

    Code: Select all

    sudo apt purge cmake
  2. Download cmake-3.18.1-Linux-x86_64.sh from https://cmake.org/download/
  3. Copy cmake-3.18.1-Linux-x86_64.sh to /usr/local

    Code: Select all

    sudo cp cmake-3.18.1-Linux-x86_64.sh /usr/local
  4. Navigate to /usr/local and set the executable permission for cmake-3.18.1-Linux-x86_64.sh

    Code: Select all

    cd /usr/local
    sudo chmod +x cmake-3.18.1-Linux-x86_64.sh
    
  5. Run the installation script:

    Code: Select all

    sudo sh cmake-3.18.1-Linux-x86_64.sh
  6. Follow the on-screen instructions. Note that:
    1. You must respond "Y" when asked if you accept the license agreement
    2. Respond "n" when prompted:

      Code: Select all

      By default the CMake will be installed in:
        "/usr/local/cmake-3.18.1-Linux-x86_64"
      Do you want to include the subdirectory cmake-3.18.1-Linux-x86_64?
      Saying no will install in: "/usr/local" [Yn]:
      
  7. Check the cmake version

    Code: Select all

    cmake --version
Once cmake 3.18 is installed, follow the Ubuntu 20.04 instructions to install Audacity: viewtopic.php?p=398471#p398471

Locked