banthar/gl — Issue #57: Unable to run demos
Author: pm2845
Created: 2012-03-07 08:12:14+00:00
State: open

$ sudo go install -a -v github.com/banthar/gl
runtime
# runtime
/usr/lib/go/src/pkg/runtime/extern.go:121: undefined: defaultGoroot
/usr/lib/go/src/pkg/runtime/extern.go:130: undefined: theVersion
/usr/lib/go/src/pkg/runtime/extern.go:135: undefined: theGoos
/usr/lib/go/src/pkg/runtime/extern.go:135: cannot use theGoos as type string in const initializer
/usr/lib/go/src/pkg/runtime/extern.go:139: undefined: theGoarch
/usr/lib/go/src/pkg/runtime/extern.go:139: cannot use theGoarch as type string in const initializer

And then if I try to do go run or go build on draw.go:

$ go build draw.go
# command-line-arguments
./draw.go:11: import /usr/lib/go/pkg/linux_amd64/github.com/banthar/gl.a: not a package file

Also, this is after editing the import from "sdl" to "github.com/banthar/Go-SDL/sdl" (otherwise, it would not find the package sdl)

This error is for all code that use the gl package.