Compiling Audacity 4 on Linux (Ubuntu 24.0.3) Fails

I posted on this Discord, crossposting here.

I was interested in maybe contributing to Audacity 4 or just dabbling with it. I have run into an error when trying to build however. It’s been a little painful trying to get it all running, I am wondering what I am doing wrong–probably something stupid.

I know in BUILDING.md it says to add all the relevant tools to PATH, but I wasn’t quite sure what to put? I configured the CMakeCache to use Ninja and Qt, as far as I can tell, but I am running into issues. I compiled my process here:

https://docs.google.com/document/d/1TYsAQmlX61o2xFBe02UInIVvW-O4novH1qsUKyk8mEc/edit?usp=sharing

TLDR: Need ALSA? But it can’t find it. When I force it to, then I have a new issue.

My main issue is having to do with installing a lot of dependencies to get this working, which makes me think I need to modify my PATH. Not sure exactly what to update it to though?

Hey it’s working now, I talked with user copicraft on Discord.

Here’s everything I did to get my build working:

I needed to install:

libgl1-mesa-dev

libasound2-dev

gtk2.0

and removed

PRIVATE Qt${Qt_VERSION_MAJOR}::GuiPrivate

from line 298 in

/home/twerp/repos/audacity/muse_framework/framework/dockwindow/thirdparty/KDDockWidgets/src/CMakeLists.txt

Ope wait never mind, removing that from the CMake broke KDDockWidget

Current issue:

general_messages.txt (12.3 KB)

Bumping this since I am still having the issue

This is unresolved if anyone knows anything. Removing GuiPrivate results in a build failure, but allows the CMake to generate.

Resolved the build issue.
Ninja just didn’t install the deps. The CMake error was making it out to be a bigger problem than it was. Was missing another dep. Ran source your/directory/for/audacity/buildscripts/ci/linux/setup.sh and this fixed the CMake error and the build error.

Have a new error on runtime where it doesn’t seem to actually run? I’ll update with more info.