rust-portaudio icon indicating copy to clipboard operation
rust-portaudio copied to clipboard

Solution for build issue on OS X

Open cassm opened this issue 5 years ago • 3 comments

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.

cassm avatar Sep 25 '19 18:09 cassm

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.

colindjk avatar Dec 10 '19 01:12 colindjk

I have managed to use this on mac but I think I installed pkgconfig through brew as well.

wmedrano avatar Dec 03 '20 03:12 wmedrano

Worked for me as well just run export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig in the terminal before running cargo run.

sainteckes avatar Jul 26 '22 09:07 sainteckes