pocketsphinx-go
pocketsphinx-go copied to clipboard
The installation is incomplet
I cannot get gortana to install. I had to install portaudio, but now i get
$ go get github.com/xlab/pocketsphinx-go/example/gortana
# github.com/xlab/portaudio-go/portaudio
/usr/bin/ld: $WORK/b052/_x004.o: in function `_cgo_129d56cda4dc_Cfunc_Pa_GetDefaultHostApi':
/tmp/go-build/cgo-gcc-prolog:87: undefined reference to `Pa_GetDefaultHostApi'
/usr/bin/ld: $WORK/b052/_x004.o: in function `_cgo_129d56cda4dc_Cfunc_Pa_GetDefaultInputDevice':
/tmp/go-build/cgo-gcc-prolog:104: undefined reference to `Pa_GetDefaultInputDevice'
/usr/bin/ld: $WORK/b052/_x004.o: in function `_cgo_129d56cda4dc_Cfunc_Pa_GetDefaultOutputDevice':
/tmp/go-build/cgo-gcc-prolog:121: undefined reference to `Pa_GetDefaultOutputDevice'
/usr/bin/ld: $WORK/b052/_x004.o: in function `_cgo_129d56cda4dc_Cfunc_Pa_GetDeviceCount':
/tmp/go-build/cgo-gcc-prolog:138: undefined reference to `Pa_GetDeviceCount'
/usr/bin/ld: $WORK/b052/_x004.o: in function `_cgo_129d56cda4dc_Cfunc_Pa_GetHostApiCount':
/tmp/go-build/cgo-gcc-prolog:191: undefined reference to `Pa_GetHostApiCount'
/usr/bin/ld: $WORK/b052/_x004.o: in function `_cgo_129d56cda4dc_Cfunc_Pa_GetHostApiInfo':
/tmp/go-build/cgo-gcc-prolog:209: undefined reference to `Pa_GetHostApiInfo'
/usr/bin/ld: $WORK/b052/_x004.o: in function `_cgo_129d56cda4dc_Cfunc_Pa_GetLastHostErrorInfo':
/tmp/go-build/cgo-gcc-prolog:226: undefined reference to `Pa_GetLastHostErrorInfo'
/usr/bin/ld: $WORK/b052/_x004.o: in function `_cgo_129d56cda4dc_Cfunc_Pa_GetStreamCpuLoad':
/tmp/go-build/cgo-gcc-prolog:262: undefined reference to `Pa_GetStreamCpuLoad'
/usr/bin/ld: $WORK/b052/_x004.o: in function `_cgo_129d56cda4dc_Cfunc_Pa_GetStreamInfo':
/tmp/go-build/cgo-gcc-prolog:280: undefined reference to `Pa_GetStreamInfo'
/usr/bin/ld: $WORK/b052/_x004.o: in function `_cgo_129d56cda4dc_Cfunc_Pa_GetStreamReadAvailable':
/tmp/go-build/cgo-gcc-prolog:298: undefined reference to `Pa_GetStreamReadAvailable'
/usr/bin/ld: $WORK/b052/_x004.o: in function `_cgo_129d56cda4dc_Cfunc_Pa_GetStreamTime':
/tmp/go-build/cgo-gcc-prolog:316: undefined reference to `Pa_GetStreamTime'
/usr/bin/ld: $WORK/b052/_x004.o: in function `_cgo_129d56cda4dc_Cfunc_Pa_GetStreamWriteAvailable':
/tmp/go-build/cgo-gcc-prolog:334: undefined reference to `Pa_GetStreamWriteAvailable'
/usr/bin/ld: $WORK/b052/_x004.o: in function `_cgo_129d56cda4dc_Cfunc_Pa_GetVersion':
/tmp/go-build/cgo-gcc-prolog:351: undefined reference to `Pa_GetVersion'
/usr/bin/ld: $WORK/b052/_x004.o: in function `_cgo_129d56cda4dc_Cfunc_Pa_GetVersionText':
/tmp/go-build/cgo-gcc-prolog:368: undefined reference to `Pa_GetVersionText'
/usr/bin/ld: $WORK/b052/_x004.o: in function `_cgo_129d56cda4dc_Cfunc_Pa_HostApiDeviceIndexToDeviceIndex':
/tmp/go-build/cgo-gcc-prolog:387: undefined reference to `Pa_HostApiDeviceIndexToDeviceIndex'
/usr/bin/ld: $WORK/b052/_x004.o: in function `_cgo_129d56cda4dc_Cfunc_Pa_HostApiTypeIdToHostApiIndex':
/tmp/go-build/cgo-gcc-prolog:405: undefined reference to `Pa_HostApiTypeIdToHostApiIndex'
/usr/bin/ld: $WORK/b052/_x004.o: in function `_cgo_129d56cda4dc_Cfunc_Pa_IsFormatSupported':
/tmp/go-build/cgo-gcc-prolog:442: undefined reference to `Pa_IsFormatSupported'
/usr/bin/ld: $WORK/b052/_x004.o: in function `_cgo_129d56cda4dc_Cfunc_Pa_IsStreamActive':
/tmp/go-build/cgo-gcc-prolog:460: undefined reference to `Pa_IsStreamActive'
/usr/bin/ld: $WORK/b052/_x004.o: in function `_cgo_129d56cda4dc_Cfunc_Pa_IsStreamStopped':
/tmp/go-build/cgo-gcc-prolog:478: undefined reference to `Pa_IsStreamStopped'
/usr/bin/ld: $WORK/b052/_x004.o: in function `_cgo_129d56cda4dc_Cfunc_Pa_ReadStream':
/tmp/go-build/cgo-gcc-prolog:548: undefined reference to `Pa_ReadStream'
/usr/bin/ld: $WORK/b052/_x004.o: in function `_cgo_129d56cda4dc_Cfunc_Pa_SetStreamFinishedCallback':
/tmp/go-build/cgo-gcc-prolog:567: undefined reference to `Pa_SetStreamFinishedCallback'
/usr/bin/ld: $WORK/b052/_x004.o: in function `_cgo_129d56cda4dc_Cfunc_Pa_WriteStream':
/tmp/go-build/cgo-gcc-prolog:652: undefined reference to `Pa_WriteStream'
collect2: error: ld returned 1 exit status
It looks that your linker is broken or dependencies could not be found for portaudio libs. This is an example app and it's not part of Sphinx, so I decided to skip instructions.
would you have a link I could follow to get out of this issue, I have not found a solution. Where could I find instructions on this? thanks
brew install portaudio
for macOS.
I'm on Linux
On a raspberry pi to be precise
apt-get install portaudio19-dev