On Mac OS X 10.11.5 I only had access to webkit2gtk-4.0 via homebrew. I had to adjust:
github.com/sqs/gojs/base.go to point to javascriptcoregtk-4.0
github.com/sourcegraph/go-webkit2/webkit2/webview.go to point to webkit2gtk-4.0
I also found that it complained about missing cairo/cairo.h, though I did have that.
I tried adding cairo to the pkg-config, but that didn't help. I ended up adding a
CFLAG to point to the directory holding cairo/cairo.h:
On Mac OS X 10.11.5 I only had access to webkit2gtk-4.0 via homebrew. I had to adjust:
github.com/sqs/gojs/base.go to point to javascriptcoregtk-4.0 github.com/sourcegraph/go-webkit2/webkit2/webview.go to point to webkit2gtk-4.0
I also found that it complained about missing cairo/cairo.h, though I did have that. I tried adding cairo to the pkg-config, but that didn't help. I ended up adding a CFLAG to point to the directory holding cairo/cairo.h:
With this changes I could run "go get github.com/sourcegraph/go-webkit2/webkit2", but I find that if I run the tests it crashes: