rust-portaudio
rust-portaudio copied to clipboard
Solution for build issue on OS X
I experienced an issue where portaudio is not detected during the build process (even if pkgconfig and portaudio), which results in an attempt to build portaudio, which fails on systems with newer versions of xcode installed. Having been chasing myself around in circles for a few hours, I have determined that the issue was that PKG_CONFIG_PATH was not properly set, meaning that pkgconfig could not find the version of portaudio installed by brew. This problem was solved by setting PKG_CONFIG_PATH=/usr/local/lib/pkgconfig. It might be useful to either set this in the build script, or to mention it as a solution in the documentation.
Experiencing the same issue when I try to install on a mac. @cassm Did you make any headway?
For now I'm using portaudio-rs, I'll comment on any progress I make in coming back to this library.
I have managed to use this on mac but I think I installed pkgconfig through brew as well.
Worked for me as well just run export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
in the terminal before running cargo run
.