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

Can't install #21

Open nlamirault opened 8 years ago

nlamirault commented 8 years ago

In Archlinux, i try to install, i've got an error :

go get github.com/sourcegraph/go-webkit2/webkit2
# pkg-config --cflags webkit2gtk-3.0
Package webkit2gtk-3.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `webkit2gtk-3.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'webkit2gtk-3.0' found
pkg-config: exit status 1

Packages installed :

local/webkit2gtk 2.8.5-1
    GTK+ Web content engine library
local/webkitgtk 2.4.9-1
    GTK+ Web content engine library
local/webkitgtk2 2.4.9-1
    GTK+ Web content engine library for GTK2

Any idea ?

ftKnox commented 8 years ago

changing line 9 in webview.go to the following should work

// #cgo pkg-config: webkit2gtk-4.0
howesteve commented 8 years ago

Thanks @ftKnox , that helped me.

atopala commented 8 years ago

This is what I get on OS X, 10.11.3, El Capitan, when running go get...

# pkg-config --cflags javascriptcoregtk-3.0 Package javascriptcoregtk-3.0 was not found in the pkg-config search path. Perhaps you should add the directory containing 'javascriptcoregtk-3.0.pc' to the PKG_CONFIG_PATH environment variable No package 'javascriptcoregtk-3.0' found pkg-config: exit status 1

slvmnd commented 8 years ago

@atopala try: Install macports sudo port install webkit2-gtk export PKG_CONFIG_PATH="/opt/local/lib/pkgconfig:$PKG_CONFIG_PATH" change line 9 in webview.go to // #cgo pkg-config: webkit2gtk-4.0