On Thursday, March 7, 2019 at 7:13:56 PM UTC+1, whiteh...@googlemail.com wrote: > > go1.12 macos 10.12.4 > > I haven't been able to find a Go example of this being used so far. > However I found a C example that I'm porting over to Go that access the > microphone. > > All I'm doing so far is 'al.OpenDevice()' > > running 'gomobile build' generates this error: > > ...golang.org/x/mobile/exp/audio/al/al_android.go:13:10: fatal error: > 'AL/al.h' file not found > > Working on the assumption that the openal might be missing on my system, I > have run this: 'brew install openal-soft' > > That hasn't solved the problem. I took note of the following when doing > the brew install, but it also hasn't helped. > > For compilers to find openal-soft you may need to set: > export LDFLAGS="-L/usr/local/opt/openal-soft/lib" > export CPPFLAGS="-I/usr/local/opt/openal-soft/include" > > > Any tips please? the file does appear to be in that location. > > btw Since I'm new here, is it okay to ask for help here? or do you prefer > stackoverflow? > > >
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.