diff --git a/.travis.yml b/.travis.yml index 87c7d46..5a4c9c3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,5 +5,10 @@ go: - 1.7 - tip -script: - - go test -v +before_install: + - cd $GOPATH/src/github.com/mcuadros/go-rpi-rgb-led-matrix/vendor/rpi-rgb-led-matrix/ + - git submodule update --init + - make + - cd $GOPATH/src/github.com/mcuadros/go-rpi-rgb-led-matrix/ + - go get -t -v ./... + - go install -v ./... diff --git a/README.md b/README.md index f434a03..f9c5c09 100644 --- a/README.md +++ b/README.md @@ -25,12 +25,11 @@ Then you will get an **expected** error like this: collect2: error: ld returned 1 exit status ``` -This happens because you need to have installed the `rgbmatrix` C bindings, execute the following commands to install it: - +This happens because you need to compile the `rgbmatrix` C bindings: ```sh cd $GOPATH/src/github.com/mcuadros/go-rpi-rgb-led-matrix/vendor/rpi-rgb-led-matrix/ git submodule update --init -make install +make cd $GOPATH/src/github.com/mcuadros/go-rpi-rgb-led-matrix/ go install -v ./... ``` diff --git a/examples/image/main.go b/examples/image/main.go index 6d71bed..c8aeec9 100644 --- a/examples/image/main.go +++ b/examples/image/main.go @@ -2,7 +2,6 @@ package main import ( "flag" - "image" "os" "time" diff --git a/examples/rpc/client/main.go b/examples/rpc/client/main.go index 0bee0f5..825423a 100644 --- a/examples/rpc/client/main.go +++ b/examples/rpc/client/main.go @@ -20,10 +20,7 @@ func main() { m, err := rpc.NewClient("tcp", "10.20.20.20:1234") fatal(err) - c := rgbmatrix.NewCanvas(m) - defer c.Close() - - tk := &rgbmatrix.ToolKit{c} + tk := rgbmatrix.NewToolKit(m) close, err := tk.PlayGIF(f) fatal(err)