pocketsphinx-go icon indicating copy to clipboard operation
pocketsphinx-go copied to clipboard

The installation is incomplet

Open wlwatkins opened this issue 4 years ago • 6 comments

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

wlwatkins avatar Jun 22 '20 20:06 wlwatkins

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.

xlab avatar Jun 28 '20 12:06 xlab

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

wlwatkins avatar Jun 28 '20 13:06 wlwatkins

brew install portaudio for macOS.

xlab avatar Jun 29 '20 21:06 xlab

I'm on Linux

wlwatkins avatar Jun 30 '20 06:06 wlwatkins

On a raspberry pi to be precise

wlwatkins avatar Jun 30 '20 06:06 wlwatkins

apt-get install portaudio19-dev

xlab avatar Jun 30 '20 10:06 xlab