On Thu, Mar 7, 2019 at 11:11 PM whitehexagon via golang-nuts
<golang-nuts@googlegroups.com> wrote:
>
> Thanks! That got me some steps further down the rabbit hole :)
>
> gomobile: the Android requires the golang.org/x/mobile/exp/audio/al, but the 
> OpenAL libraries was not found. Please run gomobile init with the -openal 
> flag pointing to an OpenAL source directory.
>
> So first I tried 'brew reinstall --build-from-source openal-soft'  but there 
> were still no sources in that directory (although everything built fine).
>
> Next I located the downloaded brew .bz2 file, which was located in: 
> '~/Library/Caches/Homebrew' and using a symlink of 
> 'openal-soft--1.19.1.tar.bz2'
>
> Manually unpacking that, and then running a new gomobile init pointing to 
> that directory got me some distance further before sadly failing.
>
> [  2%] Building C object CMakeFiles/common.dir/common/alcomplex.c.o
> In file included from /Users/me/openal-soft-1.19.1/common/alcomplex.c:5:
> /Users/me/openal-soft-1.19.1/common/math_defs.h:36:21: error: static 
> declaration of 'log2f' follows non-static declaration
> static inline float log2f(float f)
>                     ^
> /Users/me/go/pkg/gomobile/ndk-toolchains/arm/bin/../sysroot/usr/local/include/math.h:38:15:
>  note: previous declaration is here
> float         log2f(float);
>
> Is there anyway to bypass this step of having to rebuild OpenAL?
>
>

I don't think there's a way around it, unfortunately. As far as I
know, there are no prebuilt openal libraries for Android available.

I'm not even sure openal builds with a recent NDK where gcc is gone
and replaced with clang.

 - elias

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to