Building PortAudio and PyAudio on Mac running Snow Leopard (arch issues)

家住魔仙堡 提交于 2019-12-04 11:29:23
physicsmichael

Thanks to PyAudio's author's speedy response to my inquiries, I now have a nicely installed copy. His directions are posted below for anyone who has similar issues.

Hi Michael,

Try this:

1) Make sure your directory layout is like:

./foo/pyaudio/portaudio-v19/ ./foo/pyaudio/

2) Build portaudio-v19 from sources, as you have done

3) cd ./foo/pyaudio/ 4) python setup.py build --static-link

(See the comments at the top of setup.py for more info on --static-link)

If all goes well, inside ./foo/pyaudio/build/lib.macosx-10.6-.../, you'll find the built (fat) objects comprising i386, ppc, and x86_64 binaries. You can also do a "python setup.py install" if you like.

Best, Hubert

John Papier

I'm on Mac 10.5.8 Intel Core 2 duo and hitting the same issue. The directory layout you need is

./foo/pyaudio/portaudio-v19/
./foo/pyaudio

The reason is setup.py has the following: portaudio_path = os.environ.get("PORTAUDIO_PATH", "./portaudio-v19")

alternatively, you should be able to set PORTAUDIO_PATH env variable and get it to work.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!