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

could not determine kind of name for C.ps_search_iter_t from macOS High Sierra #14

Open
kai5263499 opened this issue May 7, 2018 · 3 comments

Comments

@kai5263499
Copy link

I'm getting an error from the cgo bindings when I try to run make install

$ make
c-for-go -maxmem 0x1fffffff pocketsphinx.yml
  processing pocketsphinx.yml done.
$ make install
cd pocketsphinx && go install
# github.com/xlab/pocketsphinx-go/pocketsphinx
./cgo_helpers.go:1033:29: could not determine kind of name for C.ps_search_iter_t
make: *** [install] Error 2
@xlab
Copy link
Owner

xlab commented May 7, 2018

@kai5263499
Copy link
Author

Initially, I used the instructions using brew to install portaudio but I went back installed sphinxbase and pocketspinx from source. They both compiled and installed ok and now I'm getting a different error when I go to install the gortana

$ go get github.com/xlab/pocketsphinx-go/example/gortana
../../../portaudio-go/portaudio/portaudio.go:148: cannot use cstream (type *_Ctype_void) as type *unsafe.Pointer in argument to func literal
../../../portaudio-go/portaudio/portaudio.go:163: cannot use cstream (type *_Ctype_void) as type *unsafe.Pointer in argument to func literal
../../../portaudio-go/portaudio/portaudio.go:170: cannot convert unsafe.Pointer(stream) (type unsafe.Pointer) to type _Ctype_void
../../../portaudio-go/portaudio/portaudio.go:171: cannot use cstream (type _Ctype_void) as type unsafe.Pointer in argument to func literal
../../../portaudio-go/portaudio/portaudio.go:178: cannot convert unsafe.Pointer(stream) (type unsafe.Pointer) to type _Ctype_void
../../../portaudio-go/portaudio/portaudio.go:180: cannot use cstream (type _Ctype_void) as type unsafe.Pointer in argument to func literal
../../../portaudio-go/portaudio/portaudio.go:187: cannot convert unsafe.Pointer(stream) (type unsafe.Pointer) to type _Ctype_void
../../../portaudio-go/portaudio/portaudio.go:188: cannot use cstream (type _Ctype_void) as type unsafe.Pointer in argument to func literal
../../../portaudio-go/portaudio/portaudio.go:195: cannot convert unsafe.Pointer(stream) (type unsafe.Pointer) to type _Ctype_void
../../../portaudio-go/portaudio/portaudio.go:196: cannot use cstream (type _Ctype_void) as type unsafe.Pointer in argument to func literal
../../../portaudio-go/portaudio/portaudio.go:196: too many errors

@xlab
Copy link
Owner

xlab commented May 9, 2018

Try using the master commit of pocketsphinx, do not re-generate for now. Seems that recent changes in generator produce an incompatible code. Will check later

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