I am trying to write a go program to capture audio to an array using portaudio.
I am doing this on a chromebook using Termux with go installed.
When I get GitHub - gordonklaus/portaudio: Go bindings for the PortAudio audio I/O library the package appears under the src folder. However if I try to import the package in a program, or if a try to build or install the package, I get:
~/go $ go run myprogram.go
pkg-config --cflags – portaudio-2.0
Package portaudio-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `portaudio-2.0.pc’
to the PKG_CONFIG_PATH environment variable
No package ‘portaudio-2.0’ found
pkg-config: exit status 1
~/go $