Audacity 2.4.2: build failure on antix 4.9.160 32-bit [SOLVED]

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
rachdatu
Posts: 12
Joined: Thu Jun 25, 2020 12:18 pm
Operating System: Windows 7

Re: Audacity 2.4.2: build failure on antix 4.9.160

Post by rachdatu » Tue Aug 25, 2020 12:25 pm

Thanks again for your help.
I have 2 iso images I am using:

antiX-17.4_386-full.iso from https://distrowatch.com/?newsid=10487
antiX-19.2_386-full.iso from https://distrowatch.com/?newsid=10860

I would just use the latest one.

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

Re: Audacity 2.4.2: build failure on antix 4.9.160

Post by steve » Tue Aug 25, 2020 4:53 pm

What a horrible distro.

How did you install cmake 17?
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

rachdatu
Posts: 12
Joined: Thu Jun 25, 2020 12:18 pm
Operating System: Windows 7

Re: Audacity 2.4.2: build failure on antix 4.9.160

Post by rachdatu » Tue Aug 25, 2020 7:08 pm

How did you install cmake 17?
I installed it from the sources

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

Re: Audacity 2.4.2: build failure on antix 4.9.160

Post by steve » Wed Aug 26, 2020 3:13 pm

rachdatu wrote:
Tue Aug 25, 2020 7:08 pm
I installed it from the sources
Please be more precise. I'm trying to reproduce your setup.
The recommended way to install the latest stable version of Cmake is to download and run the cmake ".sh" file, but that's only available for 64-bit OS, so I'm not clear how you installed Cmake.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

rachdatu
Posts: 12
Joined: Thu Jun 25, 2020 12:18 pm
Operating System: Windows 7

Re: Audacity 2.4.2: build failure on antix 4.9.160

Post by rachdatu » Thu Aug 27, 2020 8:11 am

Run: (note it's without cmake)

Code: Select all

sudo apt install build-essential gcc libgtk2.0-dev libasound2-dev python3-minimal libavformat-dev libjack-jackd2-dev
Go to https://cmake.org/download/ , download cmake-3.17.4.tar.gz and unpack it.

Go to the folder that contains the file "bootstrap" and type:

Code: Select all

./bootstrap -- -DCMAKE_USE_OPENSSL=OFF
OPENSSL is not installed by default. That's why you have to turn this option OFF. You can as well just run ./bootstrap. After a few minutes, you should get a message telling you to add that option or install openssl. I don't need openssl, so I didn't install it.

then:

Code: Select all

make
then:

Code: Select all

sudo make install
cmake will be installed in /usr/local/share

Then continue from viewtopic.php?f=19&t=111755 without reinstalling all the packages.
You will just need git.

Maybe I should modify the title of this thread because it's not antix 4.9.160. Let me know. Thanks

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

Re: Audacity 2.4.2: build failure on antix 4.9.160

Post by steve » Fri Aug 28, 2020 11:37 am

I can reproduce the problem on Antix.

I'm now looking to see if this is a general problem for 32-bit Linux, or if it is specific to Antix. If it's a general problem, then I expect that it can be fixed at our end. If it's specific to Antix then I'd guess that it's due to some missing dependency.

Unfortunately I've hit a problem setting up 32-bit Ubuntu due to a bug in VirtualBox Guest Additions. I'm currently trying to work around this problem.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

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

Re: Audacity 2.4.2: build failure on antix 4.9.160

Post by steve » Sat Aug 29, 2020 1:52 pm

I'm getting the same error with Ubuntu 18.04 32-bit.
I can see where the problem lies, but not how to fix it, so I've sent an enquiry to the Audacity developers. I'll update here when I have more info.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

rachdatu
Posts: 12
Joined: Thu Jun 25, 2020 12:18 pm
Operating System: Windows 7

Re: Audacity 2.4.2: build failure on antix 4.9.160

Post by rachdatu » Mon Aug 31, 2020 7:15 am

Thanks for your help

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

Re: Audacity 2.4.2: build failure on antix 4.9.160

Post by steve » Mon Aug 31, 2020 6:28 pm

One of the developers is looking into it and has identified the cause - He's now looking for the best way to fix it.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

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

Re: Audacity 2.4.2: build failure on antix 4.9.160

Post by steve » Sun Sep 06, 2020 3:40 pm

We have a fix.
cmake.patch
(3.27 KiB) Downloaded 46 times
Download the "cmake.patch" file, and put it in the root of your Audacity source code (If you're using the official audacity-minsrc-2.4.2.tar.gz, then that will be the "audacity-minsrc-2.4.2/" folder.)

Open a terminal window and navigate to the "audacity-minsrc-2.4.2" folder.

Apply the patch:

Code: Select all

patch -p1 < cmake.patch
Delete the contents of your build folder, and run your cmake command followed by "make".
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Locked