flutter-plugins icon indicating copy to clipboard operation
flutter-plugins copied to clipboard

[desktop_webview_window][linux] Does not compile

Open marcinczepielahumanit opened this issue 3 years ago • 1 comments

Hi, I have a problem with compiling an app after adding desktop_webview_window: ^0.1.6.

My Linux version is Pop!_OS 20.04 LTS (based on Ubuntu 20.04 LTS)

Command

sudo apt install webkit2gtk-4.0

does not work, it returns

Reading package lists... Done Building dependency tree
Reading state information... Done E: Unable to locate package webkit2gtk-4.0 E: Couldn't find any package by glob 'webkit2gtk-4.0'

After running command

apt list --installed

I can see on the list of packages

... libwebkit2gtk-4.0-37/focal-updates,focal-security,now 2.36.8-0ubuntu0.20.04.1 amd64 [installed] libwebkit2gtk-4.0-dev/focal-updates,focal-security,now 2.36.8-0ubuntu0.20.04.1 amd64 [installed] ... gir1.2-webkit2-4.0/focal-updates,focal-security,now 2.36.8-0ubuntu0.20.04.1 amd64 [installed,automatic] ...

It would be great if someone can point out what i have done wrong 😄

Compiling error:

flutter run lib/main.dart -v

image

marcinczepielahumanit avatar Nov 16 '22 12:11 marcinczepielahumanit

You can try this. (use apt-get instead of apt)

sudo apt-get install webkit2gtk-4.0

I'll update it to right apt package name lately.

boyan01 avatar Nov 16 '22 12:11 boyan01