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:
Windows
Mac OS X
GNU/Linux and Unix-like
Post Reply
maabaum
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/install.md . 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 install.md 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.

tnx

steve
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:

libwx_baseu-3.1.so
libwx_baseu_net-3.1.so
libwx_baseu_xml-3.1.so
libwx_gtk2u_core-3.1.so
libwx_gtk2u_html-3.1.so
libwx_gtk2u_qa-3.1.so
suil_x11.so
suil_x11_in_gtk2.so
suil_x11_in_gtk3.so

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

-Daudacity_use_wxwidgets=local
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