Skip to content
Browse files

dependency on Go-SDL

  • Loading branch information...
1 parent 5f56438 commit 4db929ed69f6bfef0ff92fa503216931d1cfb46b @thejoshwolfe committed
Showing with 17 additions and 8 deletions.
  1. +8 −1 README
  2. +0 −7 hello.go
  3. +9 −0 main.go
View
9 README
@@ -4,5 +4,12 @@ Building in Linux (Ubuntu):
1. install go. http://golang.org/doc/install.html
a. make sure GOROOT is defined and $GOROOT/bin is on your PATH
- 2. make
+ 2. install SDL.
+ $ sudo apt-get install libsdl1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev
+ 3. install Go-SDL.
+ $ git clone https://github.com/banthar/Go-SDL.git
+ $ cd Go-SDL
+ $ make install
+ 4. build this project with make
+ $ make
View
7 hello.go
@@ -1,7 +0,0 @@
-package main
-
-import fmt "fmt"
-
-func main() {
- fmt.Printf("Hello, World!\n")
-}
View
9 main.go
@@ -0,0 +1,9 @@
+package main
+
+import sdl "sdl"
+
+func main() {
+ if sdl.Init(sdl.INIT_EVERYTHING) != 0 {
+ panic(sdl.GetError())
+ }
+}

0 comments on commit 4db929e

Please sign in to comment.
Something went wrong with that request. Please try again.