ssfrr / AudioIO.jl

[UNMAINTAINED] - Simple Audio IO in Julia
MIT License
61 stars 24 forks source link

error compiling open_portaudio_stream on OSX #21

Closed notthetup closed 10 years ago

notthetup commented 10 years ago

On Julia 0.3-rc1 I'm seeing

ERROR: error compiling play: error compiling play: error compiling open_portaudio_stream: could not load module : dlopen(.dylib, 1): image not found

when I try to play(v).

The building of AudioIO seemed to have gone fine. I'm wondering why it can't seem to find the portaudio dylib?

I checked that libportaudio was indeed installed here ".julia/v0.3/Homebrew/deps/usr/lib/libportaudio.dy"

P.S. I don't have Homebrew installed my machine, so Julia only is using the interval version. Could that be an issue?

ssfrr commented 10 years ago

Do you have a full backtrace? I'm not sure whether it's libportaudio that it can't find or libportaudio_shim.dylib, which is a small c wrapper I wrote to handle the portaudio audio callback.

Also, try going into ~/.julia/AudioIO/deps/src and run make from the terminal. If it says make: Nothing to be done for 'all'., then delete ~/.julia/AudioIO/deps/usr/lib/libportaudio_shim.dylib and re-run make

Note that building the shim won't work if you don't have the XCode command line tools installed, which is why I recently switched over to shipping a precompiled version.

notthetup commented 10 years ago

Thanks @ssfrr. re-Making the shim fixed it. I had to restart Julia though.

ssfrr commented 10 years ago

Closing this though there are probably some fishy things with the binary I'm shipping. I need to bump up the priority on a pure Julia wrapper.