thestk / rtaudio

A set of C++ classes that provide a common API for realtime audio input/output across Linux (native ALSA, JACK, PulseAudio and OSS), Macintosh OS X (CoreAudio and JACK), and Windows (DirectSound, ASIO, and WASAPI) operating systems.
Other
1.49k stars 317 forks source link

Tests fail to compile #403

Closed yurivict closed 1 year ago

yurivict commented 1 year ago
===>  Testing for rtaudio-6.0.0
-- Compiling with support for: jack alsa oss pulse
-- Configuring done (0.0s)
-- Generating done (0.0s)
-- Build files have been written to: /usr/ports/audio/rtaudio/work/.build
ninja: no work to do.
[  0% 1/1] cd /usr/ports/audio/rtaudio/work/.build && /usr/local/bin/ctest --force-new-ctest-process
Test project /usr/ports/audio/rtaudio/work/.build
    Start 1: apinames
1/1 Test #1: apinames .........................   Passed    0.01 sec

100% tests passed, 0 tests failed out of 1

Total Test time (real) =   0.01 sec
c++ -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing  -I/usr/ports/audio/rtaudio/work/stage/usr/local/include/rtaudio -isystem /usr/local/include   `pkg-config --libs jack` -fstack-protector-strong -L/usr/local/lib  test.cpp  -o test
test.cpp:44:11: error: unknown type name 'RtAudioError'; did you mean 'RtAudioErrorType'?
  catch ( RtAudioError& e ) {
          ^~~~~~~~~~~~
          RtAudioErrorType
/usr/ports/audio/rtaudio/work/stage/usr/local/include/rtaudio/RtAudio.h:228:6: note: 'RtAudioErrorType' declared here
enum RtAudioErrorType {
     ^
test.cpp:45:6: error: member reference base type 'RtAudioErrorType' is not a structure or union
    e.printMessage();
    ~^~~~~~~~~~~~~
test.cpp:56:10: error: unknown type name 'RtAudioError'; did you mean 'RtAudioErrorType'?
  catch (RtAudioError& e) {
         ^~~~~~~~~~~~
         RtAudioErrorType
/usr/ports/audio/rtaudio/work/stage/usr/local/include/rtaudio/RtAudio.h:228:6: note: 'RtAudioErrorType' declared here
enum RtAudioErrorType {
     ^
test.cpp:57:6: error: member reference base type 'RtAudioErrorType' is not a structure or union
    e.printMessage();
    ~^~~~~~~~~~~~~
4 errors generated.

Version: 6.0.0 clang-15 FreeBSD 13.2

garyscavone commented 1 year ago

I don't see a test.cpp file in the distribution.

yurivict commented 1 year ago

Sorry, there was a stray test.cpp file in the port, and that got picked up by make, weirdly.