build 2.4.2 into PPA

Hi, I’m the maintainer of ppa:ubuntuhandbook1/audacity.

Just noticed that Audacity has switched to cmake. And I’ve read steve’s post about building on Ubuntu 20.04.

However, the launchpad builders do not have internet connection while the build process requires cloning wxwidgets from github.

:frowning: I’m not a programmer , has no skill to hack on the cmake file. So I’m here to ask if possible to upload wxwidgets (grab from github/audacity/wxwidgets) along with Audacity source into launchpad. More detailed instructions would be appreciated.

Hi, did you see my reply here: https://forum.audacityteam.org/t/installation-packages-for-linux/57780/8
Does that help?

Thanks steve, I’ve figured out building wxwidgets. However, I’m running into another issue. I’ve seen similar issue in github bug reporting page, though I don’t know exactly where to add --no-undefined flag.

/usr/bin/ld: ./obj-x86_64-linux-gnu/modules/mod-script-pipe/./modules/mod-script-pipe/ScripterCallback.cpp:128: undefined reference to wxString::Replace(wxString const&, wxString const&, bool)' /usr/bin/ld: ./obj-x86_64-linux-gnu/modules/mod-script-pipe/./modules/mod-script-pipe/ScripterCallback.cpp:129: undefined reference to wxEmptyString’
/usr/bin/ld: ./obj-x86_64-linux-gnu/modules/mod-script-pipe/./modules/mod-script-pipe/ScripterCallback.cpp:134: undefined reference to wxArrayString::Clear()' /usr/bin/ld: ./obj-x86_64-linux-gnu/modules/mod-script-pipe/./modules/mod-script-pipe/ScripterCallback.cpp:141: undefined reference to wxString::Mid(unsigned long, unsigned long) const’
/usr/bin/ld: ./obj-x86_64-linux-gnu/modules/mod-script-pipe/./modules/mod-script-pipe/ScripterCallback.cpp:141: undefined reference to operator+(wxString const&, wchar_t const*)' /usr/bin/ld: ./obj-x86_64-linux-gnu/modules/mod-script-pipe/./modules/mod-script-pipe/ScripterCallback.cpp:141: undefined reference to wxArrayString::Add(wxString const&, unsigned long)’

Full build log: https://launchpadlibrarian.net/486198524/buildlog_ubuntu-focal-amd64.audacity_2.4.2-0tesu3~ubuntu20.04_BUILDING.txt.gz

Could you post a link to that/those issues.

Seems to be:

https://github.com/audacity/audacity/issues/552

Though I’m building for Ubuntu.

I think the problem is that mod-script-pipe requires wxWidgets but for some reason it isn’t found when building the module.
Are you setting LD_LIBRARY_PATH, and if not, how does cmake know where to find wxWidgets?