yanel / go-rtaudio

RTAudio bindings for go - with asio support on Windows
3 stars 2 forks source link

[Question] Compiled APIs discovery #1

Open AOreshin opened 2 years ago

AOreshin commented 2 years ago

Howdy! I'm having trouble with discovery of compiled apis

  1. I've compiled rtaudio as described in the readme

    
    PS C:\Users\User\IdeaProjects\go-rtaudio\src\_buildmsys> cmake -G 'MinGW Makefiles' -DRTAUDIO_API_ASIO=ON -DRTAUDIO_API_DS=ON ..
    CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
    Compatibility with CMake < 2.8.12 will be removed from a future version of
    CMake.
    
    Update the VERSION argument <min> value or use a ...<max> suffix to tell
    CMake that the project does not need compatibility with older versions.

-- Using Windows WASAPI CMake Deprecation Warning at CMakeLists.txt:118 (cmake_policy): The OLD behavior for policy CMP0042 will be removed from a future version of CMake.

The cmake-policies(7) manual explains that the OLD behaviors of all policies are deprecated and that a policy should be set to OLD only under specific short-term circumstances. Projects should be ported to the NEW behavior and not rely on setting a policy to OLD.

-- Configuring done -- Generating done -- Build files have been written to: C:/Users/User/IdeaProjects/go-rtaudio/src/_buildmsys

PS C:\Users\User\IdeaProjects\go-rtaudio\src_buildmsys> mingw32-make.exe install prefix=/mingw64 [ 15%] Built target rtaudio [ 30%] Built target rtaudio_static [ 40%] Built target audioprobe [ 50%] Built target playsaw [ 60%] Built target playraw [ 70%] Built target record [ 80%] Built target duplex [ 90%] Built target testall [100%] Built target teststops Install the project... -- Install configuration: "" -- Up-to-date: C:/Program Files (x86)/RtAudio/lib/librtaudio.dll.a -- Up-to-date: C:/Program Files (x86)/RtAudio/bin/librtaudio.dll -- Up-to-date: C:/Program Files (x86)/RtAudio/lib/librtaudio_static.a -- Up-to-date: C:/Program Files (x86)/RtAudio/include/RtAudio.h -- Installing: C:/Program Files (x86)/RtAudio/lib/pkgconfig/rtaudio.pc

2. My `rtaudio.pc` looks like this

prefix=C:/Program Files (x86)/RtAudio exec_prefix=${prefix} libdir=${exec_prefix}/lib includedir=${prefix}/include/rtaudio

Name: librtaudio Description: RtAudio - a set of C++ classes that provide a common API for realtime audio input/output Version: 5.0.0 Requires:
Libs: -L${libdir} -lrtaudio Libs.private: -lpthread Cflags: -pthread -I${includedir}

3. There's no asio API when running tests 

RtAudio version: 5.0.0 Compiled API: wasapi


Could you please tell me what's missing? :)
yanel commented 2 years ago

It seems like your DLLs are not included in the windows system / user path.