sourcegraph / go-webkit2

WebKit API bindings (WebKitGTK+ v2) for Go
https://sourcegraph.com/github.com/sourcegraph/go-webkit2
Other
313 stars 61 forks source link

Compile problem question #7

Closed mdimec4 closed 10 years ago

mdimec4 commented 10 years ago

Hello

Hello I would love to try this library, but I have problem compiling it. If I try to compile it with go 1.2 I get the following message.

$ go build github.com/sourcegraph/go-webkit2/webkit2 github.com/sourcegraph/go-webkit2/webkit2 gasyncreadycallback.go:29:31: must call C._gasyncreadycallback_call

I am using Ubuntu 13.10 and I have instaled libwebkit2gtk-3.0-dev and gotk3.. Am I doing something wrong?

Best reguards

Miha

sqs commented 10 years ago

Hmm, that looks like an error I was getting on Go 1.1. What do

go version

And

go env

Print out?

Sent from my iPhone

On Dec 19, 2013, at 12:25, mdimec4 notifications@github.com wrote:

Hello

Hello I would love to try this library, but I have problem compiling it. If I try to compile it with go 1.2 I get the following message.

$ go build github.com/sourcegraph/go-webkit2/webkit2

github.com/sourcegraph/go-webkit2/webkit2

gasyncreadycallback.go:29:31: must call C.gasyncreadycallbackcall

I am using Ubuntu 13.10 and I have instaled libwebkit2gtk-3.0-dev and gotk3.. Am I doing something wrong?

Best reguards

Miha

— Reply to this email directly or view it on GitHub.

mdimec4 commented 10 years ago

Yes it was go 1.1. Sorry my bad. I forgot I was working on the computer which I haven’t yet upgraded with Go 1.2 :) I managed to get it to work with go 1.2. Thank you anyway and thank you for this library. Best Miha

$go version go version go1.1.2 linux/amd64 $ go env GOARCH="amd64" GOBIN="" GOCHAR="6" GOEXE="" GOHOSTARCH="amd64" GOHOSTOS="linux" GOOS="linux" GOPATH="" GORACE="" GOROOT="/home/miha/go" GOTOOLDIR="/home/miha/go/pkg/tool/linux_amd64" CC="gcc" GOGCCFLAGS="-g -O2 -fPIC -m64 -pthread" CGO_ENABLED="1"

sqs commented 10 years ago

Glad you got it to work! :+1: