ssfrr / AudioIO.jl

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

Fixes to work with BinDeps/Homebrew properly #18

Closed staticfloat closed 10 years ago

staticfloat commented 10 years ago

Use the auto-generated deps/deps.jl file which caches binary object locations. This is what gets created from Pkg.build(). Use those cached locations in your ccall's, as we don't mess around with global linker search paths that much anymore, since caching the full path is a lot faster.

Note that since you're creating a little shim this won't work on OSX machines that don't have a compiler. If you'd like to distribute binaries of your shim, (best-case scenario, write that in Julia as well, with the upcoming multithreading capabilities, if that turns out to be possible) I may be able to help you with that.

ssfrr commented 10 years ago

Thanks a lot for the PR.

As for the shim, I definitely would like to convert it to pure Julia at some point, and I think I can do it without the multithreading support as long as I write a thin callback that doesn't allocate any memory.

Pending that though, I think I'm just going to distribute binaries of the shim along with the package.