Open agis opened 11 years ago
I get this same issue when trying to run SDL examples in go-gl/examples, and I have also installed SDL and SDL_image video brew.
➜ go version go1.2rc2 darwin/amd64
➜ sdl git:(master) brew info sdl
sdl: stable 1.2.15, HEAD
http://www.libsdl.org/
/usr/local/Cellar/sdl/1.2.15 (223 files, 2.1M) *
Built from source
From: https://github.com/mxcl/homebrew/commits/master/Library/Formula/sdl.rb
==> Options
--universal
Build a universal binary
--with-x11-driver
Compile with support for X11 video driver
➜ sdl git:(master) brew info SDL_image
SDL_image: stable 1.2.12
http://www.libsdl.org/projects/SDL_image
/usr/local/Cellar/SDL_image/1.2.12 (8 files, 136K)
Built from source
From: https://github.com/mxcl/homebrew/commits/master/Library/Formula/sdl_image.rb
==> Dependencies
Required: sdl
==> Options
--universal
Build a universal binary
Doing a
$ go run test.go
gives the following output:I've installed sdl using brew and then Xquartz.