banthar / Go-SDL

Go bindings for SDL
218 stars 68 forks source link

Fail to build #46

Open voidexp opened 12 years ago

voidexp commented 12 years ago

Just cloned the source (rev 8309d2a) and tried to build, but it fails immediatelly with following output:

gomake -C sdl make[1]: Entering directory /home/v0idexp/Builds/Go-SDL/sdl' 6g -o _go_.6 constants.go structs.6.go _obj/sdl.cgo1.go _obj/_cgo_gotypes.go sdl.go:4[_obj/sdl.cgo1.go:7]: can't find import: errors make[1]: *** [_go_.6] Error 1 make[1]: Leaving directory/home/v0idexp/Builds/Go-SDL/sdl' make: *\ [all] Error 2

banthar commented 12 years ago

Update your Go compiler.

ghost commented 12 years ago

I have the same issue, I have the latest tip of go, even tried 'revision.r60'. tried gocode from another ticket, no luck getting errors.

banthar commented 12 years ago

This is when the change was introduced in Go:

http://code.google.com/p/go/source/detail?spec=svn7ec969250bfc8948d53ea3d6a9bceb6cbbc7b859&r=b1c079c01a0a3ccd68410347370a66fb14c82ed0

And in Go-SDL:

https://github.com/banthar/Go-SDL/commit/cc10a4621647f88b2ca7d6b741a42c9efa507b36

You need either older Go-SDL or newer go. Try hg update weekly.

I will try to do something to keep Go-SDL more in sync with go releases.