kcat / alure

Alure is a utility library for OpenAL, providing a C++ API and managing common tasks that include file loading, caching, and streaming
zlib License
70 stars 20 forks source link

Add complete build instruction for macOS to README and Travis config #40

Closed McSinyx closed 4 years ago

McSinyx commented 4 years ago

Changes to .travis.yml includes:

I am unsure how to get CMake to choose OpenAL Soft over the builtin so currently alure is build against the Core Audio version.

kcat commented 4 years ago

I am unsure how to get CMake to choose OpenAL Soft over the builtin so currently alure is build against the Core Audio version.

You could try setting the OPENALDIR env var to wherever Homebrew installs it. Env vars like that are normally supposed to override the default detection, although CMake's FindOpenAL module says "On OS X, this will prefer the Framework version (if found) over others", so I don't know if that will actually work or not. Alternatively, you can try specifying something like -DOPENAL_LIBRARY=/path/to/hbrew/lib/libopenal.dylib -DOPENAL_INCLUDE_DIR=/path/to/hbrew/include/AL to cmake, but I don't know if that will actually work either.

McSinyx commented 4 years ago

That does not seem to be work. I've opened a issue on the CMake side. I guess this should be put on hold for a while until we find out how.

McSinyx commented 4 years ago

I think this is ready for review now @kcat.

kcat commented 4 years ago

Looks good. Thanks!