You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm getting a build error on macOS 10.14 due to a missing <cmath> header in WaveClip.cpp.
Steps to reproduce
Build the program
Expected behavior
Builds successfully
Actual behavior
/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_audio_audacity/audacity/work/audacity-sources-3.5.1/libraries/lib-wave-track/WaveClip.cpp:1325:11: error: no member named 'round' in namespace 'std'; did you mean 'roundl'?
return std::round(t * mRate) / mRate;
^~~~~~~~~~
roundl
/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/math.h:477:20: note: 'roundl' declared here
extern long double roundl(long double);
^
/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_audio_audacity/audacity/work/audacity-sources-3.5.1/libraries/lib-wave-track/WaveClip.cpp:1372:16: error: no member named 'floor' in namespace 'std'
return std::floor(GetPlayDuration() * mRate + 0.5) < 2.0;
~~~~~^
/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_audio_audacity/audacity/work/audacity-sources-3.5.1/libraries/lib-wave-track/WaveClip.cpp:1436:12: error: no member named 'ceil' in namespace 'std'
std::ceil(quarters * secondsPerQuarter * GetRate()) / GetRate();
~~~~~^
LWinterberg
added
community build bugs
Bug in non-official builds, such as distro-repos or self-compiled ones
and removed
bug
An error, undesired behaviour, or missed functionality
labels
May 13, 2024
Bug description
I'm getting a build error on macOS 10.14 due to a missing
<cmath>
header in WaveClip.cpp.Steps to reproduce
Expected behavior
Builds successfully
Actual behavior
Audacity Version
other
Operating system
macOS
Additional context
Full log
The text was updated successfully, but these errors were encountered: