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

webkit2gtk-4.0 was not found #230

Closed
sgehrman opened this issue Jan 29, 2019 · 14 comments
Closed

webkit2gtk-4.0 was not found #230

sgehrman opened this issue Jan 29, 2019 · 14 comments

Comments

@sgehrman
Copy link

What OS are you using (uname -a, or Windows version)?

Linux tr4 4.9.0-8-amd64 #1 SMP Debian 4.9.130-2 (2018-10-27) x86_64 GNU/Linux

What programming language are you using (C/C++/Go/Rust)?

clang version 8.0.0-svn351023-1exp1+020190113213241.1006~1.gbp8ac697 (trunk)
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin

What did you expect to see and what you saw instead?

steve@tr4:~/go$ go get github.com/zserge/webview

pkg-config --cflags -- gtk+-3.0 webkit2gtk-4.0

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

Could you provide instructions on how to resolve this on Debian?

@oskaritimperi
Copy link

libwebkit2gtk-4.0-dev should provide the pkg-config file (see here):

sudo apt-get install libwebkit2gtk-4.0-dev

@eneukirchner
Copy link

Does not work on fedora 29 because there is no webkit2gtk-4.0-devel.

@guilhermeg2k
Copy link

guilhermeg2k commented Mar 15, 2019

Does not work on fedora 29 because there is no webkit2gtk-4.0-devel.

yeah i'm on fedora and facing the same issue did you fixed it?

@guilhermeg2k
Copy link

fixed installing this https://fedora.pkgs.org/29/fedora-updates-x86_64/webkit2gtk3-devel-2.22.7-1.fc29.x86_64.rpm.html

@UmSergDev
Copy link

same problem under mac os x 10.14.4, PKG_CONFIG_PATH variable setuped

@vitalyster
Copy link
Contributor

@UmSergDev you should define WEBVIEW_COCOA and it will use native WebView instead of webkit2gtk

@zserge zserge closed this as completed Jan 21, 2020
@Akiyamka
Copy link

Akiyamka commented Feb 27, 2020

fixed installing this https://fedora.pkgs.org/29/fedora-updates-x86_64/webkit2gtk3-devel-2.22.7-1.fc29.x86_64.rpm.html

Fedora 31, i fix issue with
sudo dnf install webkit2gtk3-devel.x86_64

@Ezema
Copy link

Ezema commented Feb 8, 2022

Hi, I am having the same issue on fedora 35 but the previously mentioned package mentioned by @Akiyamka doesn't seem to fix it. What am I missing?

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
Package 'webkit2gtk-4.0', required by 'virtual:world', not found
Compiling include_juce_graphics.cpp
In file included from ../../JuceLibraryCode/include_juce_graphics.cpp:8:
/home/myuser/src/juce/JUCE/modules/juce_graphics/juce_graphics.cpp:94:12: fatal error: ft2build.h: No such file or directory
   94 |   #include <ft2build.h>
      |            ^~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:151: build/intermediate/Debug/include_juce_graphics_f817e147.o] Error 1
The terminal process "/bin/sh '-c', 'make QUIET=0'" failed to launch (exit code: 2).

@justjosias
Copy link
Member

@Ezema
Copy link

Ezema commented Feb 8, 2022

@justjosias No it doesn't unfortunately

@nicklasfrahm nicklasfrahm reopened this Mar 1, 2022
@id1179918
Copy link

Facing the same issue here. I've tried removing the package and reinstalling it but the problem persists.

@id1179918
Copy link

pwd -> /usr/lib64

When running tree | grep webkit in current directory, I found webkit2gtk-4.0.pc:

│       └── libgladewebkit2gtk.so
│   │   │   ├── kdewebkitwidgets.so
├── libkdewebkit.so.5 -> libkdewebkit.so.5.14.38
├── libkdewebkit.so.5.14.38
├── libwebkit2gtk-4.0.so -> libwebkit2gtk-4.0.so.37
├── libwebkit2gtk-4.0.so.37 -> libwebkit2gtk-4.0.so.37.55.4
├── libwebkit2gtk-4.0.so.37.55.4
│   ├── webkit2gtk-4.0.pc
│   ├── webkit2gtk-web-extension-4.0.pc
│   │       ├── libqmlwebkitplugin.so
│   │   │   ├── qt_lib_webkit.pri
│   │   │   ├── qt_lib_webkit_private.pri
│   │   │   ├── qt_lib_webkitwidgets.pri
│   │   │   ├── qt_lib_webkitwidgets_private.pri
│       │   │   ├── libqmlwebkitexperimentalplugin.so
│       │   ├── libqmlwebkitplugin.so
├── webkit2gtk-4.0
│       └── libwebkit2gtkinjectedbundle.so

Yet when trying to cd into libwebkit2gtk-4.0.so.37.55.4 or cat libwebkit2gtk-4.0.so.37.55.4/webkit2gtk-4.0.pc, I get prompted with libwebkit2gtk-4.0.so.37.55.4/webkit2gtk-4.0.pc: Not a directory

@F-Persson
Copy link

The one-liner that resolved the issue for me

sudo dnf install webkit2gtk3-devel

@SteffenL
Copy link
Collaborator

SteffenL commented Jan 2, 2023

I am going to close this because solutions have already been posted. In addition the current project readme has information for both Debian- and Fedora-based systems.

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

No branches or pull requests