go-sdl2
go-sdl2 copied to clipboard
could not determine kind of name for C.SDL_HINT_ANDROID_SEPARATE_MOUSE_AND_TOUCH
On windows :
D:\eu\Workspace\Emissaries>go get github.com/veandco/go-sdl2/sdl
go: finding github.com/veandco/go-sdl2/sdl latest
# github.com/veandco/go-sdl2/sdl
C:\Users\martin\go\pkg\mod\github.com\veandco\[email protected]\sdl\hints.go:86:50:
could not determine kind of name for C.SDL_HINT_ANDROID_SEPARATE_MOUSE_AND_TOUCH
D:\eu\Workspace\Emissaries>go version
go version go1.12.6 windows/386
Hi @bussiere,
Could you please try the newly created v0.3.1? I back-ported some commits from master that fixed it. Seems to work on my macOS!
@veeableful will try monday thanks for your work :)
Now i have a new error :
D:\eu\Workspace\Emissaries>go get github.com/veandco/go-sdl2/sdl
# github.com/veandco/go-sdl2/sdl
cannot parse $WORK\b001\_cgo_.o as ELF, Mach-O, PE or XCOFF
Hi @bussiere, could you try running go get -v -u github.com/veandco/go-sdl2/sdl
?
It looks like there's some uncleaned Go files but I'm not entirely sure how to clean them. Perhaps running go install -a
in the $GOPATH/src/github.com/veandco/go-sdl2/sdl
would work as well.
I had this issue, and it was fixed when I downloaded master, currently at 68b56f2c64c36f41da33d0985dc5f173ae7cb0f9. I am not sure which version I had before.
SDL_HINT_ANDROID_SEPARATE_MOUSE_AND_TOUCH was removed from SDL:
https://hg.libsdl.org/SDL/rev/d581caf613cd
A compatibility fix was done here: https://github.com/veandco/go-sdl2/blob/68b56f2c64c36f41da33d0985dc5f173ae7cb0f9/sdl/hints.go#L76
So this is fixed after this commit: https://github.com/veandco/go-sdl2/commit/43b59213bee65745ca265afae4168f2e25403735