Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The installation is incomplet #21

Open
wlwatkins opened this issue Jun 22, 2020 · 6 comments
Open

The installation is incomplet #21

wlwatkins opened this issue Jun 22, 2020 · 6 comments

Comments

@wlwatkins
Copy link

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

@xlab
Copy link
Owner

xlab commented Jun 28, 2020

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.

@wlwatkins
Copy link
Author

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

@xlab
Copy link
Owner

xlab commented Jun 29, 2020

brew install portaudio for macOS.

@wlwatkins
Copy link
Author

I'm on Linux

@wlwatkins
Copy link
Author

On a raspberry pi to be precise

@xlab
Copy link
Owner

xlab commented Jun 30, 2020

apt-get install portaudio19-dev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants