Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dependency issue #1

Open
hgzimmerman opened this issue Nov 19, 2019 · 1 comment
Open

Dependency issue #1

hgzimmerman opened this issue Nov 19, 2019 · 1 comment

Comments

@hgzimmerman
Copy link

Hey, I said last week that I'd try this out and report how that went.

Sadly, my assumption that my Linux distro, Nixos, would get in the way, was correct.

Using make run I ran into the following error, which was expected:

error: failed to run custom build command for `webview-sys v0.3.2`

Caused by:
  process didn't exit successfully: `/home/hzimmerman/rnd/rust-webview-todomvc-yew/target/debug/build/webview-sys-966ee743bf2ab62a/build-script-build` (exit code: 101)
--- stderr
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Command { command: "\"pkg-config\" \"--libs\" \"--cflags\" \"webkit2gtk-4.0\" \"webkit2gtk-4.0 >= 2.8\"", cause: Os { code: 2, kind: NotFound, message: "No such file or directory" } }', src/libcore/result.rs:1165:5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace.

To remedy that, I tried installing webview via go get github.com/zserge/webview, which produced the following error:

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

From there, I figured that I needed to install webkit2gtk-4.0 (and gtk 3) to get that to install.
Unfortunately, when I searched for webkit libraries, the best nixos's package manager could find for me was webkitgtk-2.4.11 (nixos.webkitgtk24x-gtk3), which has been marked as "insecure". At which point I gave up.

I'm not requesting assistance, I'm just following up like I said I would. I think I have an unusual OS situation, but maybe enumerating all dependencies in the readme might help people whose OSs are better suited towards actually installing those libraries.
Feel free to close this issue, as it doesn't present a problem that you can reasonably take action against.

@jkirkpatrick
Copy link

This error occurrs on Ubuntu 20.04 after a new install. It required additional development libraries/headers on your system in order to run, e.g libwebkit2gtk-4.0-dev. This was available as a separate package sudo apt install libwebkit2gtk-4.0-dev (please check your package manager for details).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants