Menu

RtAudio missing references

Help
gio
2010-05-28
2012-09-17
  • gio

    gio - 2010-05-28

    Hi everyone!

    I tried to compile a version of marsyas obtained by svn command om my ubuntu
    lucid distro.

    After a while during the "make" command is launched i got this problem:

    /home/gio/Scrivania/marsyas-0.3.7/src/otherlibs/RtAudio/RtAudio.cpp:6291:23:
    error: soundcard.h: Nessun file o directory

    /home/gio/Scrivania/marsyas-0.3.7/src/otherlibs/RtAudio/RtAudio.cpp: In member
    function ‘virtual unsigned int RtApiOss::getDeviceCount()’:

    /home/gio/Scrivania/marsyas-0.3.7/src/otherlibs/RtAudio/RtAudio.cpp:6328:
    error: ‘oss_sysinfo’ was not declared in this scope

    /home/gio/Scrivania/marsyas-0.3.7/src/otherlibs/RtAudio/RtAudio.cpp:6328:
    error: expected ‘;’ before ‘sysinfo’

    /home/gio/Scrivania/marsyas-0.3.7/src/otherlibs/RtAudio/RtAudio.cpp:6329:
    error: ‘SNDCTL_SYSINFO’ was not declared in this scope

    /home/gio/Scrivania/marsyas-0.3.7/src/otherlibs/RtAudio/RtAudio.cpp:6329:
    error: ‘sysinfo’ was not declared in this scope

    /home/gio/Scrivania/marsyas-0.3.7/src/otherlibs/RtAudio/RtAudio.cpp:6337:
    error: ‘sysinfo’ was not declared in this scope

    /home/gio/Scrivania/marsyas-0.3.7/src/otherlibs/RtAudio/RtAudio.cpp: In member
    function ‘virtual RtAudio::DeviceInfo RtApiOss::getDeviceInfo(unsigned int)’:

    /home/gio/Scrivania/marsyas-0.3.7/src/otherlibs/RtAudio/RtAudio.cpp:6352:
    error: ‘oss_sysinfo’ was not declared in this scope

    /home/gio/Scrivania/marsyas-0.3.7/src/otherlibs/RtAudio/RtAudio.cpp:6352:
    error: expected ‘;’ before ‘sysinfo’

    /home/gio/Scrivania/marsyas-0.3.7/src/otherlibs/RtAudio/RtAudio.cpp:6353:
    error: ‘SNDCTL_SYSINFO’ was not declared in this scope

    /home/gio/Scrivania/marsyas-0.3.7/src/otherlibs/RtAudio/RtAudio.cpp:6353:
    error: ‘sysinfo’ was not declared in this scope

    /home/gio/Scrivania/marsyas-0.3.7/src/otherlibs/RtAudio/RtAudio.cpp:6374:
    error: ‘oss_audioinfo’ was not declared in this scope

    /home/gio/Scrivania/marsyas-0.3.7/src/otherlibs/RtAudio/RtAudio.cpp:6374:
    error: expected ‘;’ before ‘ainfo’

    /home/gio/Scrivania/marsyas-0.3.7/src/otherlibs/RtAudio/RtAudio.cpp:6375:
    error: ‘ainfo’ was not declared in this scope

    /home/gio/Scrivania/marsyas-0.3.7/src/otherlibs/RtAudio/RtAudio.cpp:6376:
    error: ‘SNDCTL_AUDIOINFO’ was not declared in this scope

    /home/gio/Scrivania/marsyas-0.3.7/src/otherlibs/RtAudio/RtAudio.cpp:6386:
    error: ‘PCM_CAP_OUTPUT’ was not declared in this scope

    /home/gio/Scrivania/marsyas-0.3.7/src/otherlibs/RtAudio/RtAudio.cpp:6387:
    error: ‘PCM_CAP_INPUT’ was not declared in this scope

    /home/gio/Scrivania/marsyas-0.3.7/src/otherlibs/RtAudio/RtAudio.cpp:6388:
    error: ‘PCM_CAP_DUPLEX’ was not declared in this scope

    /home/gio/Scrivania/marsyas-0.3.7/src/otherlibs/RtAudio/RtAudio.cpp:6395:
    error: ‘AFMT_S16_LE’ was not declared in this scope

    /home/gio/Scrivania/marsyas-0.3.7/src/otherlibs/RtAudio/RtAudio.cpp:6395:
    error: ‘AFMT_S16_BE’ was not declared in this scope

    /home/gio/Scrivania/marsyas-0.3.7/src/otherlibs/RtAudio/RtAudio.cpp:6397:
    error: ‘AFMT_S8’ was not declared in this scope

    /home/gio/Scrivania/marsyas-0.3.7/src/otherlibs/RtAudio/RtAudio.cpp:6399:
    error: ‘AFMT_S32_LE’ was not declared in this scope

    /home/gio/Scrivania/marsyas-0.3.7/src/otherlibs/RtAudio/RtAudio.cpp:6399:
    error: ‘AFMT_S32_BE’ was not declared in this scope

    /home/gio/Scrivania/marsyas-0.3.7/src/otherlibs/RtAudio/RtAudio.cpp:6401:
    error: ‘AFMT_FLOAT’ was not declared in this scope

    /home/gio/Scrivania/marsyas-0.3.7/src/otherlibs/RtAudio/RtAudio.cpp:6403:
    error: ‘AFMT_S24_LE’ was not declared in this scope

    /home/gio/Scrivania/marsyas-0.3.7/src/otherlibs/RtAudio/RtAudio.cpp:6403:
    error: ‘AFMT_S24_BE’ was not declared in this scope

    /home/gio/Scrivania/marsyas-0.3.7/src/otherlibs/RtAudio/RtAudio.cpp: In member
    function ‘virtual bool RtApiOss::probeDeviceOpen(unsigned int,
    RtApi::StreamMode, unsigned int, unsigned int, unsigned int, RtAudioFormat,
    unsigned int, RtAudio::StreamOptions)’:

    /home/gio/Scrivania/marsyas-0.3.7/src/otherlibs/RtAudio/RtAudio.cpp:6459:
    error: ‘oss_sysinfo’ was not declared in this scope

    /home/gio/Scrivania/marsyas-0.3.7/src/otherlibs/RtAudio/RtAudio.cpp:6459:
    error: expected ‘;’ before ‘sysinfo’

    /home/gio/Scrivania/marsyas-0.3.7/src/otherlibs/RtAudio/RtAudio.cpp:6460:
    error: ‘SNDCTL_SYSINFO’ was not declared in this scope

    /home/gio/Scrivania/marsyas-0.3.7/src/otherlibs/RtAudio/RtAudio.cpp:6460:
    error: ‘sysinfo’ was not declared in this scope

    /home/gio/Scrivania/marsyas-0.3.7/src/otherlibs/RtAudio/RtAudio.cpp:6482:
    error: ‘oss_audioinfo’ was not declared in this scope

    /home/gio/Scrivania/marsyas-0.3.7/src/otherlibs/RtAudio/RtAudio.cpp:6482:
    error: expected ‘;’ before ‘ainfo’

    /home/gio/Scrivania/marsyas-0.3.7/src/otherlibs/RtAudio/RtAudio.cpp:6483:
    error: ‘ainfo’ was not declared in this scope

    /home/gio/Scrivania/marsyas-0.3.7/src/otherlibs/RtAudio/RtAudio.cpp:6484:
    error: ‘SNDCTL_AUDIOINFO’ was not declared in this scope

    /home/gio/Scrivania/marsyas-0.3.7/src/otherlibs/RtAudio/RtAudio.cpp:6493:
    error: ‘PCM_CAP_OUTPUT’ was not declared in this scope

    /home/gio/Scrivania/marsyas-0.3.7/src/otherlibs/RtAudio/RtAudio.cpp:6494:
    error: ‘PCM_CAP_INPUT’ was not declared in this scope

    /home/gio/Scrivania/marsyas-0.3.7/src/otherlibs/RtAudio/RtAudio.cpp:6512:
    error: ‘PCM_CAP_DUPLEX’ was not declared in this scope

    /home/gio/Scrivania/marsyas-0.3.7/src/otherlibs/RtAudio/RtAudio.cpp:6567:
    error: ‘SNDCTL_DSP_CHANNELS’ was not declared in this scope

    /home/gio/Scrivania/marsyas-0.3.7/src/otherlibs/RtAudio/RtAudio.cpp:6578:
    error: ‘SNDCTL_DSP_GETFMTS’ was not declared in this scope

    /home/gio/Scrivania/marsyas-0.3.7/src/otherlibs/RtAudio/RtAudio.cpp:6591:
    error: ‘AFMT_S8’ was not declared in this scope

    /home/gio/Scrivania/marsyas-0.3.7/src/otherlibs/RtAudio/RtAudio.cpp:6597:
    error: ‘AFMT_S16_NE’ was not declared in this scope

    /home/gio/Scrivania/marsyas-0.3.7/src/otherlibs/RtAudio/RtAudio.cpp:6601:
    error: ‘AFMT_S16_OE’ was not declared in this scope

    /home/gio/Scrivania/marsyas-0.3.7/src/otherlibs/RtAudio/RtAudio.cpp:6608:
    error: ‘AFMT_S24_NE’ was not declared in this scope

    /home/gio/Scrivania/marsyas-0.3.7/src/otherlibs/RtAudio/RtAudio.cpp:6612:
    error: ‘AFMT_S24_OE’ was not declared in this scope

    /home/gio/Scrivania/marsyas-0.3.7/src/otherlibs/RtAudio/RtAudio.cpp:6619:
    error: ‘AFMT_S32_NE’ was not declared in this scope

    /home/gio/Scrivania/marsyas-0.3.7/src/otherlibs/RtAudio/RtAudio.cpp:6623:
    error: ‘AFMT_S32_OE’ was not declared in this scope

    /home/gio/Scrivania/marsyas-0.3.7/src/otherlibs/RtAudio/RtAudio.cpp:6632:
    error: ‘AFMT_S16_NE’ was not declared in this scope

    /home/gio/Scrivania/marsyas-0.3.7/src/otherlibs/RtAudio/RtAudio.cpp:6636:
    error: ‘AFMT_S32_NE’ was not declared in this scope

    /home/gio/Scrivania/marsyas-0.3.7/src/otherlibs/RtAudio/RtAudio.cpp:6640:
    error: ‘AFMT_S24_NE’ was not declared in this scope

    /home/gio/Scrivania/marsyas-0.3.7/src/otherlibs/RtAudio/RtAudio.cpp:6644:
    error: ‘AFMT_S16_OE’ was not declared in this scope

    /home/gio/Scrivania/marsyas-0.3.7/src/otherlibs/RtAudio/RtAudio.cpp:6649:
    error: ‘AFMT_S32_OE’ was not declared in this scope

    /home/gio/Scrivania/marsyas-0.3.7/src/otherlibs/RtAudio/RtAudio.cpp:6654:
    error: ‘AFMT_S24_OE’ was not declared in this scope

    /home/gio/Scrivania/marsyas-0.3.7/src/otherlibs/RtAudio/RtAudio.cpp:6659:
    error: ‘AFMT_S8’ was not declared in this scope

    /home/gio/Scrivania/marsyas-0.3.7/src/otherlibs/RtAudio/RtAudio.cpp:6675:
    error: ‘SNDCTL_DSP_SETFMT’ was not declared in this scope

    /home/gio/Scrivania/marsyas-0.3.7/src/otherlibs/RtAudio/RtAudio.cpp:6697:
    error: ‘SNDCTL_DSP_SETFRAGMENT’ was not declared in this scope

    /home/gio/Scrivania/marsyas-0.3.7/src/otherlibs/RtAudio/RtAudio.cpp:6712:
    error: ‘SNDCTL_DSP_SPEED’ was not declared in this scope

    /home/gio/Scrivania/marsyas-0.3.7/src/otherlibs/RtAudio/RtAudio.cpp: In member
    function ‘virtual void RtApiOss::closeStream()’:

    /home/gio/Scrivania/marsyas-0.3.7/src/otherlibs/RtAudio/RtAudio.cpp:6900:
    error: ‘SNDCTL_DSP_HALT’ was not declared in this scope

    /home/gio/Scrivania/marsyas-0.3.7/src/otherlibs/RtAudio/RtAudio.cpp:6902:
    error: ‘SNDCTL_DSP_HALT’ was not declared in this scope

    /home/gio/Scrivania/marsyas-0.3.7/src/otherlibs/RtAudio/RtAudio.cpp: In member
    function ‘virtual void RtApiOss::stopStream()’:

    /home/gio/Scrivania/marsyas-0.3.7/src/otherlibs/RtAudio/RtAudio.cpp:6998:
    error: ‘SNDCTL_DSP_HALT’ was not declared in this scope

    /home/gio/Scrivania/marsyas-0.3.7/src/otherlibs/RtAudio/RtAudio.cpp:7008:
    error: ‘SNDCTL_DSP_HALT’ was not declared in this scope

    /home/gio/Scrivania/marsyas-0.3.7/src/otherlibs/RtAudio/RtAudio.cpp: In member
    function ‘virtual void RtApiOss::abortStream()’:

    /home/gio/Scrivania/marsyas-0.3.7/src/otherlibs/RtAudio/RtAudio.cpp:7044:
    error: ‘SNDCTL_DSP_HALT’ was not declared in this scope

    /home/gio/Scrivania/marsyas-0.3.7/src/otherlibs/RtAudio/RtAudio.cpp:7054:
    error: ‘SNDCTL_DSP_HALT’ was not declared in this scope

    /home/gio/Scrivania/marsyas-0.3.7/src/otherlibs/RtAudio/RtAudio.cpp: In member
    function ‘void RtApiOss::callbackEvent()’:

    /home/gio/Scrivania/marsyas-0.3.7/src/otherlibs/RtAudio/RtAudio.cpp:7140:
    error: ‘SNDCTL_DSP_SETTRIGGER’ was not declared in this scope

    /home/gio/Scrivania/marsyas-0.3.7/src/otherlibs/RtAudio/RtAudio.cpp:7142:
    error: ‘PCM_ENABLE_INPUT’ was not declared in this scope

    /home/gio/Scrivania/marsyas-0.3.7/src/otherlibs/RtAudio/RtAudio.cpp:7142:
    error: ‘PCM_ENABLE_OUTPUT’ was not declared in this scope

    make: *** Errore 1

    make: *** Errore 2

    make: *** Errore 2

    did someone have the same issues? is it a problem of the version? which is the
    stable and working versione or how can i solve this problem?

    Thanks a lot.

    Gio.

     
  • George Tzanetakis

    I believe the problem is that you need to install the alsa development
    library. I think it is something like

    libasound-2 in Ubuntu even though I haven't tried in the more recent version.

    George

     
  • gio

    gio - 2010-05-28

    Hello George,

    thanks for the super fast answer! I've checked right now on synaptic and i
    have that library installed on. Maybe there could be another kind of issue? or
    better i install another version of marsyas?

    Thanks for your help.

    Gio.

     
  • George Tzanetakis

    Looking more carefully it seems that for some reason it tries to compile the
    OSS version of RtAudio rather than the ALSA version. Not sure why - you can
    probably get it to compile by disabling MARSYA_AUDIO in cmake but then you
    will not have audio input/output just sounfile IO. Not sure.

     
  • gio

    gio - 2010-05-29

    Ok, now i will try that. But havein no I/O in Marsyas...does it mean i will
    not be able to use input/output functions such as the audiosinks, and all that
    stuff? :( I will let u know soon, thanks a lot for the availability.

     
  • gio

    gio - 2010-05-29

    Ok, these are the options which I'm using now to "ccmake" the build:

    Page 1 of 2

    CMAKE_BUILD_TYPE *Release

    CMAKE_INSTALL_PREFIX */usr/local

    MARSYAS_ASSERTS *OFF

    MARSYAS_AUDIOIO *ON

    MARSYAS_DEBUG *OFF

    MARSYAS_LOG2FILE *OFF

    MARSYAS_LOG2STDOUT *ON

    MARSYAS_LOG_DEBUGS *OFF

    MARSYAS_LOG_DIAGNOSTICS *OFF

    MARSYAS_LOG_WARNINGS *ON

    MARSYAS_MIDIIO *ON

    MARSYAS_PROFILING *OFF

    MARSYAS_TESTS *OFF

    OSS *OFF

    WITH_MAD *OFF

    WITH_MATLAB *OFF

    WITH_OPENGL *ON

    Page 2 of 2

    WITH_PNG *ON

    WITH_QT *OFF

    WITH_SWIG *OFF

    WITH_VAMP *OFF

    WITH_VORBIS *OFF

    Everything goes ok from building to installation, but then when I run the
    "hello world" project under eclipse it say the following:

    /home/gio/workspace/MX-mar/Debug/MX-mar: error while loading shared libraries:
    libmarsyas.so: cannot open shared object file: No such file or directory

    I included the path of libmarsyas.o and the library name inside the linker's
    options, but still doesn't recognize it.

    I'm thinking to work on another machine maybe

     
  • gio

    gio - 2010-05-30

    Hi,

    I think I solved the problem, I compiled marsyas on another laptop with a 64
    bits system. The only problem is that i cannot compile it with png library, it
    creates an error, but without it, works even under eclipse.

    :)

     
  • George Tzanetakis

    That's good to know. In general we don't use the forum much so for further
    questions about Marsyas

    please use the mailing lists (marsyas-develoeprs, marsyas-users)

    thanks,

    George

     

Log in to post a comment.