Building a small wxWidgets library (linux)

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:
Mac OS X
GNU/Linux and Unix-like
Post Reply
Posts: 7
Joined: Mon Jan 29, 2018 8:40 pm
Operating System: OS X 10.6 Snow Leopard or earlier

Building a small wxWidgets library (linux)

Post by maabaum » Fri Jan 22, 2021 8:22 pm

Has anyone worked out a definitive list of the feature options that can be safely disabled in the Audacity-modified wxWidgets 3.1.3 libraries? In a mood of idle curiosity, I tried to compile a minimalist version using the suggested list of unnecessary features given in the instruction document: wxWidgets/docs/gtk/ . In retrospect, this might have been naive.

In any event, the make process rapidly blows up due to a variety of unmet requirements apparently set elsewhere in the config files, things like wxUSE_MIMETYPE, wxJoystick, wxUSE_SVG, usw. I had kind of thought the document might have been specifically tailored for building wxWidgets for use with Audacity, but maybe it's an artifact from earlier times.

Anyway, I wondered if anyone had ever worked out the minimal configuration for use with Audacity.

I was building this under Fedora linux (33) if that matters.


Site Admin
Posts: 81851
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Building a small wxWidgets library (linux)

Post by steve » Sat Jan 23, 2021 3:23 pm

Audacity needs:

The total size of these shared object files is about 14.3 MB.

These are built automatically when Audacity is configured with:

Code: Select all

On Ubuntu 18.04, I generally build Audacity with:

Code: Select all

cmake -DCMAKE_BUILD_TYPE=Release -Daudacity_use_ffmpeg=loaded -Daudacity_use_wxwidgets=local ..
make -j8
or for a debug build:

Code: Select all

cmake -DCMAKE_BUILD_TYPE=Debug -Daudacity_use_ffmpeg=loaded -Daudacity_use_wxwidgets=local ..
make -j8
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Post Reply