thestk/rtaudio

meson build fails with non-matching version number

umlaeute opened this issue · 3 comments

with RtAudio-6.0.0 I do:

$ meson build
The Meson build system
Version: 1.2.0
Source dir: <<path>>/rtaudio
Build dir: <<path>>/rtaudio/build
Build type: native build
Project name: RtAudio
Project version: 6.0.0beta1
C++ compiler for the host machine: ccache c++ (gcc 13.1.0 "c++ (Debian 13.1.0-9) 13.1.0")
C++ linker for the host machine: c++ ld.bfd 2.40.90.20230720
Host machine cpu family: x86_64
Host machine cpu: x86_64

meson.build:30:0: ERROR: Assert failed: Meson's RtAudio version does not match the version in header file.

A full log can be found at <<path>>/rtaudio/build/meson-logs/meson-log.txt
WARNING: Running the setup command as `meson [options]` instead of `meson setup [options]` is ambiguous and deprecated.

most likely because RtAudio.h says that the version is 6.0.0

rtaudio/RtAudio.h

Lines 49 to 52 in 0e11b50

#define RTAUDIO_VERSION_MAJOR 6
#define RTAUDIO_VERSION_MINOR 0
#define RTAUDIO_VERSION_PATCH 0
#define RTAUDIO_VERSION_BETA 0
, whereas meson.build says 6.0.0beta1
version: '6.0.0beta1',

dvzrv commented

For 6.0.0 at least this appears fixed with 2f17e13

Yes, this was fixed, very soon after committing the version update, so I don't understand how this would persist.

dvzrv commented

Now fixed with 6.0.1. This can be closed.