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?


On Thursday, 7 March 2019 22:08:50 UTC+1, ma...@eliasnaur.com wrote:
>
>
> I don't use the openal package myself, but I believe you need to set 
> CGO_CFLAGS=-I/usr/local/opt/openal-soft/include.
>
> - 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