I try to get portaudio-go
running under Mac OS X 10.8. I installed portaudio via
sudo port install portaudio
so that now portaudio.h
is located in /opt/local/include
. Since the folder is not a default location for header-files, when running
go get code.google.com/p/portaudio-go/portaudio
I get an error saying that the portaudio.h
could not be found. Is there something equivalent to -I /opt/local/include
I could use for go?
/edit: Answered
I modified the first lines of portaudio.go
:
package portaudio
/*
#cgo CFLAGS: -I/opt/local/include
#cgo LDFLAGS: -L/opt/local/lib -lportaudio
Now everything works fine, thank you!