error compiling audiostream on OSX

82 views
Skip to first unread message

Joel

unread,
Apr 29, 2013, 11:20:21 PM4/29/13
to kivy-...@googlegroups.com

I'm getting the following error. I've done a brew install for sdl, but that doesn't seem to help it find the source I guess.

Also, does audiostream have "hooks" to read output from PD? I'd like to be able to use fiddle~ for example, feed it mic input, and get midi output.



building 'audiostream.core' extension
/usr/bin/gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -Os -pipe -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/include/SDL -I. -I/usr/include/SDL -I/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c audiostream/core.c -o build/temp.macosx-10.6-x86_64-2.7/audiostream/core.o -ggdb -O2
audiostream/core.c:303:17: error: SDL.h: No such file or directory
audiostream/core.c:304:23: error: SDL_mixer.h: No such file or directory

Joel

unread,
Apr 29, 2013, 11:25:04 PM4/29/13
to kivy-...@googlegroups.com
okay, that wasn't too hard after I figured out where SDL.H resided, it was in my /usr/local/include, i changed setup.py to reflect that and it appears to have compiled now. still curious on second part of question though.

Joel

unread,
Apr 29, 2013, 11:50:20 PM4/29/13
to kivy-...@googlegroups.com
A couple of examples work, but the PD and multiplesin examples give me this when running kivy main.py

Traceback (most recent call last):
  File "main.py", line 1, in <module>
    from audiostream import AudioStream, AudioSample
ImportError: cannot import name AudioStream

Joel

unread,
Apr 30, 2013, 12:14:49 AM4/30/13
to kivy-...@googlegroups.com
Seems the examples are out of whack with the audiostream library itself. Changing occurrences of AudioStream(...) to AudioOutput(...) seems to allow the examples to run.

J

Gabriel Pettier

unread,
Apr 30, 2013, 7:31:01 AM4/30/13
to kivy-...@googlegroups.com
Hi

Don't hesitate to do a pull request for updates of the build and the
examples.

thanks :)
> --
> You received this message because you are subscribed to the Google Groups "Kivy users support" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
Reply all
Reply to author
Forward
0 new messages