Building latest git under latest Arch Linux (ATTOW)

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
farmboy
Posts: 3
Joined: Sat Sep 04, 2021 3:12 pm
Operating System: GNU/Linux other

Building latest git under latest Arch Linux (ATTOW)

Post by farmboy » Sat Sep 04, 2021 3:24 pm

Hello, I am trying to build according to these compilation knobs: https://aur.archlinux.org/cgit/aur.git/ ... dacity-git

The reason I am rebuilding is I use Wayland and would like to get an audacity version working with GTK3, because the play cursor is sloppy with stock with GTK2.

My build failed at the configuring stage:

....
[ 76%] Building C object source_subfolder/src/flac/CMakeFiles/flacapp.dir/decode.c.o
[ 77%] Building C object source_subfolder/src/flac/CMakeFiles/flacapp.dir/encode.c.o
[ 78%] Building C object source_subfolder/src/flac/CMakeFiles/flacapp.dir/foreign_metadata.c.o
[ 80%] Building C object source_subfolder/src/flac/CMakeFiles/flacapp.dir/main.c.o
[ 81%] Building C object source_subfolder/src/flac/CMakeFiles/flacapp.dir/local_string_utils.c.o
[ 82%] Building C object source_subfolder/src/flac/CMakeFiles/flacapp.dir/utils.c.o
[ 83%] Building C object source_subfolder/src/flac/CMakeFiles/flacapp.dir/vorbiscomment.c.o
[ 85%] Linking C executable ../../../bin/flac
[ 85%] Built target flacapp
make: *** [Makefile:156: all] Error 2
flac/1.3.3:
flac/1.3.3: ERROR: Package '2e198b8f5694d68dae7c7264d91b82e6e9469b96' build failed
flac/1.3.3: WARN: Build folder /home/a/.conan/data/flac/1.3.3/_/_/build/2e198b8f5694d68dae7c7264d91b82e6e9469b96
ERROR: flac/1.3.3: Error in build() method, line 65
cmake.build()
ConanException: Error 2 while executing cmake --build '/home/a/.conan/data/flac/1.3.3/_/_/build/2e198b8f5694d68dae7c7264d91b82e6e9469b96' '--' '-j2'
CMake Error at cmake-proxies/cmake-modules/conan.cmake:631 (message):
Conan install failed='1'
Call Stack (most recent call first):
cmake-proxies/cmake-modules/AudacityDependencies.cmake:261 (conan_cmake_install)
cmake-proxies/cmake-modules/AudacityDependencies.cmake:283 (_conan_install)
CMakeLists.txt:531 (resolve_conan_dependencies)


-- Configuring incomplete, errors occurred!
See also "/home/a/down/audacity-git/src/audacity/build/CMakeFiles/CMakeOutput.log".
See also "/home/a/down/audacity-git/src/audacity/build/CMakeFiles/CMakeError.log".


I am attaching the LOG files. The first error is:

nasm: error: unrecognised option `-V'

I am running nasm 2.15.05 and indeed there is no -V option, but it is actually -v if that was intended. Could it be such a gross mistake preventing my compilation? How to fix that?
Attachments
CMakeError.log
(17.19 KiB) Downloaded 43 times
CMakeOutput.log
(146.68 KiB) Downloaded 38 times

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

Re: Building latest git under latest Arch Linux (ATTOW)

Post by steve » Sat Sep 04, 2021 5:24 pm

Does Audacity build correctly if you follow the official building instructions? https://github.com/audacity/audacity/bl ... UILDING.md
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

farmboy
Posts: 3
Joined: Sat Sep 04, 2021 3:12 pm
Operating System: GNU/Linux other

Re: Building latest git under latest Arch Linux (ATTOW)

Post by farmboy » Sun Sep 05, 2021 3:09 pm

I have just tried to compile using official building instruction. I run into the same problem. It looks like recent NASM version are not recognized (please see attached CMakeError.log file). What should I do? Open a ticket?

/include/wx/gtk/private.h:14,
from /home/a/.conan/data/wxwidgets/3.1.3.1-audacity/_/_/build/10f2526f12f71d8eb85afe3a18060ca4da9e690e/source_subfolder/src/gtk/assertdlg_gtk.cpp:13:
/home/a/.conan/data/wxwidgets/3.1.3.1-audacity/_/_/build/10f2526f12f71d8eb85afe3a18060ca4da9e690e/source_subfolder/include/wx/gtk/private/wrapgtk.h:14:10: fatal error: gtk/gtk.h: No such file or directory
14 | #include <gtk/gtk.h>
| ^~~~~~~~~~~
compilation terminated.
[147/596] Building CXX precompiled header source_subfolder/libs/aui/cotire/aui_CXX_prefix.hxx.gch
ninja: build stopped: subcommand failed.
wxwidgets/3.1.3.1-audacity:
wxwidgets/3.1.3.1-audacity: ERROR: Package '10f2526f12f71d8eb85afe3a18060ca4da9e690e' build failed
wxwidgets/3.1.3.1-audacity: WARN: Build folder /home/a/.conan/data/wxwidgets/3.1.3.1-audacity/_/_/build/10f2526f12f71d8eb85afe3a18060ca4da9e690e
ERROR: wxwidgets/3.1.3.1-audacity: Error in build() method, line 256
cmake.build()
ConanException: Error 1 while executing cmake --build '/home/a/.conan/data/wxwidgets/3.1.3.1-audacity/_/_/build/10f2526f12f71d8eb85afe3a18060ca4da9e690e/build_subfolder' '--' '-j2'
CMake Error at cmake-proxies/cmake-modules/conan.cmake:631 (message):
Conan install failed='1'
Call Stack (most recent call first):
cmake-proxies/cmake-modules/AudacityDependencies.cmake:261 (conan_cmake_install)
cmake-proxies/cmake-modules/AudacityDependencies.cmake:283 (_conan_install)
CMakeLists.txt:531 (resolve_conan_dependencies)


-- Configuring incomplete, errors occurred!
See also "/home/a/down/build/CMakeFiles/CMakeOutput.log".
See also "/home/a/down/build/CMakeFiles/CMakeError.log".
[[email protected] build]$ less /home/a/down/build/CMakeFiles/CMakeError.log
Attachments
CMakeError.log
(15.7 KiB) Downloaded 38 times
CMakeOutput.log
(105.18 KiB) Downloaded 250 times

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

Re: Building latest git under latest Arch Linux (ATTOW)

Post by steve » Sun Sep 05, 2021 3:44 pm

farmboy wrote:
Sun Sep 05, 2021 3:09 pm
What should I do?
Probably your best option for a quick response is to ask in the "Compiling Audacity #Linux" section of Discord: https://discord.gg/BA8227rj
(Note that the link / invite only remains open for a while, so don't leave it too long to visit).
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

farmboy
Posts: 3
Joined: Sat Sep 04, 2021 3:12 pm
Operating System: GNU/Linux other

Re: Building latest git under latest Arch Linux (ATTOW)

Post by farmboy » Mon Sep 06, 2021 9:04 am

I tried to sign up there but had no luck. I got the code by SMS, entered it, chose a password and then it got stuck. Verifying the account by email did not work too, no email was receveid (none in the Spam folder too). I am quite sure this is a trivial issue about checks failing with newer version of nasm, but I am not well versed into cmake to fix it by myself. And even if I did there could be more trouble later too.

BTW Arch Linux provided Audacity 2.4.1, quite and old version. It has been marked as outdated since long time ,but nobody fixed, I guess for a reason. This does not work well under Wayland unfortunately.

jademan
Forum Crew
Posts: 1776
Joined: Fri Jul 17, 2009 10:11 pm
Operating System: Windows 10

Re: Building latest git under latest Arch Linux (ATTOW)

Post by jademan » Mon Sep 06, 2021 12:35 pm

farmboy wrote:
Mon Sep 06, 2021 9:04 am
I tried to sign up there but had no luck.
It looks as though you were finally successful at least at logging in.
farmboy wrote:
Sun Sep 05, 2021 3:09 pm
ninja: build stopped: subcommand failed.
This is an error that some Windows users have reported. The work-around for them is to use a different generator (other than ninja). I don't know if this applies to Linux.

Post Reply