belangeo / pyo

Python DSP module
GNU Lesser General Public License v3.0
1.28k stars 130 forks source link

include dependency binaries in install docs #240

Closed zevaverbach closed 1 year ago

zevaverbach commented 2 years ago

Hi, I'm excited to play with pyo! However, on MacOS 12.4 there are several undocumented dependencies before it can run. Using homebrew I was able to install them with

> brew install pyo liblo portmidi

Without them I got these errors:

      src/_portaudiomodule.c:29:10: fatal error: 'portaudio.h' file not found
      #include "portaudio.h"
               ^~~~~~~~~~~~~
      1 error generated.
      error: command '/usr/bin/clang' failed with exit code 1
...
      include/md_portmidi.h:25:10: fatal error: 'portmidi.h' file not found
      #include "portmidi.h"
               ^~~~~~~~~~~~
      1 error generated.
      error: command '/usr/bin/clang' failed with exit code 1
...
      src/engine/osclistenermodule.c:26:10: fatal error: 'lo/lo.h' file not found
      #include "lo/lo.h"
               ^~~~~~~~~
      1 error generated.
      error: command '/usr/bin/clang' failed with exit code 1
andrewpearce0 commented 1 year ago

Thanks for sharing. This fixed the issue I was having trying to install this package on Python 3.10.5

belangeo commented 1 year ago

Dependencies are documented in "Compiling pyo from sources" documentation:

http://ajaxsoundstudio.com/pyodoc/compiling.html#macos-homebrew