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.SDL_HINT_ANDROID_SEPARATE_MOUSE_AND_TOUCH #421

Open
bussiere opened this issue Aug 14, 2019 · 6 comments
Labels
solved? This issue might have been solved but not tested

Comments

@bussiere
Copy link

bussiere commented Aug 14, 2019

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\go-sdl2@v0.3.0\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
@veeableful
Copy link
Contributor

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!

@bussiere
Copy link
Author

@veeableful will try monday thanks for your work :)

@bussiere
Copy link
Author

bussiere commented Aug 20, 2019

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

@veeableful
Copy link
Contributor

veeableful commented Aug 21, 2019

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.

@veeableful veeableful added the solved? This issue might have been solved but not tested label Sep 8, 2019
@kroppt
Copy link

kroppt commented Oct 12, 2019

I had this issue, and it was fixed when I downloaded master, currently at 68b56f2. I am not sure which version I had before.

@cburchert
Copy link

cburchert commented Oct 27, 2019

SDL_HINT_ANDROID_SEPARATE_MOUSE_AND_TOUCH was removed from SDL:

https://hg.libsdl.org/SDL/rev/d581caf613cd

A compatibility fix was done here:

#define SDL_HINT_ANDROID_SEPARATE_MOUSE_AND_TOUCH "" // For compatibility

So this is fixed after this commit: 43b5921

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
solved? This issue might have been solved but not tested
Projects
None yet
Development

No branches or pull requests

4 participants