OrcaSlicer icon indicating copy to clipboard operation
OrcaSlicer copied to clipboard

Kubuntu 22.04 missing libwebkit2gtk-4.0.so.37 when running AppImage

Open Guswilly opened this issue 2 years ago • 24 comments

Describe the bug Steps taken: Downloaded zip file, extracted, properties changed to executable, then Run in Console returns: /tmp/.mount_BambuSdizE6Q/bin/bambu-studio: error while loading shared libraries: libwebkit2gtk-4.0.so.37: cannot open shared object file: No such file or directory

Ran updates, and I have tried with the same error: sudo apt install libfuse2 Unfortunately Web based content is overloaded with the above fix making it hard to find a fix.

Desktop (please complete the following information):

  • OS: Kubuntu 22.04

Guswilly avatar Mar 04 '23 15:03 Guswilly

Did you install libwebkit2gtk-4.0? I had to install webkit2gtk4.0 package on Fedora to get rid of that error.

Fedora: dnf install webkit2gtk4.0 (K)Ubuntu: should be apt install libwebkit2gtk-4.0

It might be a different package name as searching online it seems like it has libwebkit2gtk-4.0-37, but it might be different for your specific version of kubuntu.

cereal7802 avatar Mar 09 '23 21:03 cereal7802

Same issue on manjaro stable.

pacman -Ss libwebkit2gtk
extra/webkit2gtk 2.38.4-1 Web content engine for GTK extra/webkit2gtk-4.1 2.38.4-1 Web content engine for GTK extra/webkit2gtk-5.0 2.38.4-1 Web content engine for GTK

royw avatar Mar 10 '23 03:03 royw

Thanks for the help. I tried this all again and found that I had a typo in the library name, a simple . versus a - (libwebkit2gth-4.0.so-37 is the correct name).

Now it works.

Guswilly avatar Mar 13 '23 01:03 Guswilly

Same here on gentoo. I have net-libs/webkit-gtk-2.40.1-r410 installed. I don't undestand how to fix this

khumarahn avatar Jun 26 '23 10:06 khumarahn

This really should be packed into the AppImage

Krutonium avatar Jul 03 '23 01:07 Krutonium

Same Problem on the Steam Deck (Arch Linux) /tmp/.mount_OrcaSlPfBnnd/bin/orca-slicer: error while loading shared libraries: libwebkit2gtk-4.0.so.37: cannot open shared object file: No such file or directory

#1841 and #185 have the same issue

lordfiSh avatar Sep 10 '23 06:09 lordfiSh

For me the following packages were missing:

webkit2gtk4.0-2.40.0-2.fc38.x86_64
mesa-libOSMesa.x86_64

i.e.

sudo dnf install webkit2gtk4.0-2.40.0-2.fc38.x86_64 mesa-libOSMesa.x86_64

I also suspect the following may be helpful for the live preview, but haven't gotten it working.

sudo dnf install gstreamer1-plugins-bad-freeworld.x86_64 gstreamer1-svt-av1.x86_64 gstreamer1-plugins-bad-free-extras-1.22.5-1.fc38.x86_64

Cypher1 avatar Dec 07 '23 07:12 Cypher1

just fyi i'm running kubuntu 23.10 and to install i had to search and found it listed as libwebkit2gtk-4.0-37 in apt-cache.

installing allowed the app to launch.

sudo apt install libwebkit2gtk-4.0-37

magealexstra avatar Jan 15 '24 01:01 magealexstra

Is there an AppImage which is not depended on a Debian/Ubuntu based system ?

xpcone avatar Jan 29 '24 14:01 xpcone

I am under Archlinux here and the package webkit2gtk4.0 is not provided here. But there is webkit2gtk4.1.

The workaround is to install version 4.1 via pacman -S webkit2gtk-4.1 and then create some symbolic links.

me@AsusLaptop: $ ldconfig -p | grep webkit
	libwebkit2gtk-4.1.so.0 (libc6,x86-64) => /usr/lib/libwebkit2gtk-4.1.so.0
	libwebkit2gtk-4.1.so (libc6,x86-64) => /usr/lib/libwebkit2gtk-4.1.so

and hence (you need to be in the folder of your AppImage),

me@AsusLaptop: $ ln -s /usr/lib/libwebkit2gtk-4.1.so.0 libwebkit2gtk-4.0.so.37

and also

me@AsusLaptop: $ ldconfig -p | grep libjava
	libjavascriptcoregtk-4.1.so.0 (libc6,x86-64) => /usr/lib/libjavascriptcoregtk-4.1.so.0
	libjavascriptcoregtk-4.1.so (libc6,x86-64) => /usr/lib/libjavascriptcoregtk-4.1.so

and hence (you need to be in the folder of your AppImage),

me@AsusLaptop: $ ln -s /usr/lib/libjavascriptcoregtk-4.1.so.0 libjavascriptcoregtk-4.0.so.18

Does the job for me. HF!

DupiDachs avatar Mar 13 '24 12:03 DupiDachs

Slightly different directories, but it in Ubuntu 24.04 did the trick as well. cheers

sudo ln -s /lib/x86_64-linux-gnu/libwebkit2gtk-4.1.so.0 /lib/x86_64-linux-gnu/libwebkit2gtk-4.0.so.37 sudo ln -s /lib/x86_64-linux-gnu/libjavascriptcoregtk-4.1.so.0 /lib/x86_64-linux-gnu/libjavascriptcoregtk-4.0.so.18

czinehuba avatar Apr 29 '24 10:04 czinehuba

Slightly different directories, but it in Ubuntu 24.04 did the trick as well. cheers

sudo ln -s /lib/x86_64-linux-gnu/libwebkit2gtk-4.1.so.0 /lib/x86_64-linux-gnu/libwebkit2gtk-4.0.so.37 sudo ln -s /lib/x86_64-linux-gnu/libjavascriptcoregtk-4.1.so.0 /lib/x86_64-linux-gnu/libjavascriptcoregtk-4.0.so.18

That worked for me. I also installed the following packages (maybe not all of them needed): sudo apt-get install libwebkit2gtk-4.1-dev libwebkit2gtk-4.1-0 language-pack-en language-pack-en-base language-pack-gnome-en language-pack-gnome-en-base language-pack-kde-en

SebiPanther avatar May 01 '24 10:05 SebiPanther

Slightly different directories, but it in Ubuntu 24.04 did the trick as well. cheers

sudo ln -s /lib/x86_64-linux-gnu/libwebkit2gtk-4.1.so.0 /lib/x86_64-linux-gnu/libwebkit2gtk-4.0.so.37 sudo ln -s /lib/x86_64-linux-gnu/libjavascriptcoregtk-4.1.so.0 /lib/x86_64-linux-gnu/libjavascriptcoregtk-4.0.so.18

Did not work for me. Kubuntu 24.04

steve7233 avatar May 25 '24 10:05 steve7233

Slightly different directories, but it in Ubuntu 24.04 did the trick as well. cheers

sudo ln -s /lib/x86_64-linux-gnu/libwebkit2gtk-4.1.so.0 /lib/x86_64-linux-gnu/libwebkit2gtk-4.0.so.37 sudo ln -s /lib/x86_64-linux-gnu/libjavascriptcoregtk-4.1.so.0 /lib/x86_64-linux-gnu/libjavascriptcoregtk-4.0.so.18

Did not work for me. Kubuntu 24.04

Did you install libwebkit2gtk-4.0? I had to install webkit2gtk4.0 package on Fedora to get rid of that error.

Fedora: dnf install webkit2gtk4.0 (K)Ubuntu: should be apt install libwebkit2gtk-4.0

It might be a different package name as searching online it seems like it has libwebkit2gtk-4.0-37, but it might be different for your specific version of kubuntu.

Package not found. Kubuntu 24.04.

steve7233 avatar May 25 '24 11:05 steve7233

Slightly different directories, but it in Ubuntu 24.04 did the trick as well. cheers sudo ln -s /lib/x86_64-linux-gnu/libwebkit2gtk-4.1.so.0 /lib/x86_64-linux-gnu/libwebkit2gtk-4.0.so.37 sudo ln -s /lib/x86_64-linux-gnu/libjavascriptcoregtk-4.1.so.0 /lib/x86_64-linux-gnu/libjavascriptcoregtk-4.0.so.18

That worked for me. I also installed the following packages (maybe not all of them needed): sudo apt-get install libwebkit2gtk-4.1-dev libwebkit2gtk-4.1-0 language-pack-en language-pack-en-base language-pack-gnome-en language-pack-gnome-en-base language-pack-kde-en

I did this and now I have the error:

"authentication failed due to unexpected error"

Kubuntu 24.04

mikey54 avatar Jun 03 '24 11:06 mikey54

This is affecting Mint as well. I resolved by doing the following:

Create the links as outlined in a previous post: sudo ln -sf /usr/lib/x86_64-linux-gnu/libwebkit2gtk-4.1.so.0 /usr/lib/x86_64-linux-gnu/libwebkit2gtk-4.0.so.37 sudo ln -sf /usr/lib/x86_64-linux-gnu/libjavascriptcoregtk-4.1.so.0 /usr/lib/x86_64-linux-gnu/libjavascriptcoregtk-4.0.so.18

Move the appimage to a new folder, I chose: /home/BadPixel89/tools/OrcaSlicer/OrcaSlicer_Linux_V2.1.1.AppImage

you can run from terminal as others have: cd to the directory containing the app image and run the it from terminal with the following: WEBKIT_DISABLE_COMPOSITING_MODE=1 ./OrcaSlicer_Linux_V2.1.1.AppImageD

This allows you to run through the setup, choose a printer / filament profiles etc

To run from UI (Xfce Edition of Mint): edit: removed link to guide, this way works better

  • Right click the start menu and click "Edit Applications"
  • highlight the section you want the icon to appear under
  • Click the blue plus in the top left to add a new launcher
  • Name it something like OrcaSlicer, give it a description, and click the edit icon on the command field
  • Click command, then click the browser icon and point it at your appimage
  • Click environment variable and set
    • Variable to "WEBKIT_DISABLE_COMPOSITING_MODE"
    • Value to 1
  • click apply
  • I set working dir to the same folder containing the appimage as well
  • click the blue save icon next to the plus, you can also click the cogs to test it without saving
  • close the editor and save if prompted

Now you should be able to open start and type OrcaSlicer to open it like a normal app and use it.

BadPixel89 avatar Aug 15 '24 21:08 BadPixel89

Did you install libwebkit2gtk-4.0? I had to install webkit2gtk4.0 package on Fedora to get rid of that error.

Fedora: dnf install webkit2gtk4.0 (K)Ubuntu: should be apt install libwebkit2gtk-4.0

It might be a different package name as searching online it seems like it has libwebkit2gtk-4.0-37, but it might be different for your specific version of kubuntu.

Did not work for me on fedora 40, while it does start up after installing that package the welcome screen is blank. :(

ExperimentalCyborg avatar Sep 02 '24 15:09 ExperimentalCyborg

While it does start up after installing that package the welcome screen is blank. :(

Did you run it with the argument like this, I had the same result when not using the argument on Mint:

WEBKIT_DISABLE_COMPOSITING_MODE=1 ./OrcaSlicer_Linux_V2.1.1.AppImageD

BadPixel89 avatar Sep 03 '24 16:09 BadPixel89

Did you run it with the argument like this, I had the same result when not using the argument on Mint:

WEBKIT_DISABLE_COMPOSITING_MODE=1 ./OrcaSlicer_Linux_V2.1.1.AppImageD

Oh crap i missed that detail. Thank you so much!

ExperimentalCyborg avatar Sep 04 '24 06:09 ExperimentalCyborg

WEBKIT_DISABLE_COMPOSITING_MODE=1 did not help, webkit 4.0 is too old

xpcone avatar Sep 11 '24 10:09 xpcone

Yeah i happily thanked badpixel after the gui showed up but the 3D render in the workspace still doesn't show up :joy: Until then i'll be using a laptop running mint 22 for slicing... :smiling_face_with_tear:

ExperimentalCyborg avatar Sep 11 '24 10:09 ExperimentalCyborg

Same error here: /tmp/.mount_OrcaSlU9Wgv2/bin/orca-slicer: error while loading shared libraries: libwebkit2gtk-4.1.so.0: cannot open shared object file: No such file or directory

Debian 12 with KDE Plasma

EDIT: I manage to solve downloading this Flatpack: https://github.com/anarsoul/io.github.softfever.OrcaSlicer/releases/tag/v2.2.0-1

olimexsmart avatar Nov 24 '24 20:11 olimexsmart

EDIT: I manage to solve downloading this Flatpack: https://github.com/anarsoul/io.github.softfever.OrcaSlicer/releases/tag/v2.2.0-1

Worked for me in Linux Mint 22. Unfortunately, there is no "dark" mode theme on this version.,

TeamFahQ avatar Dec 25 '24 13:12 TeamFahQ

This seems to be the oldest open issue regarding libwebkit2gtk-4.0.so.37 and the AppImage. Someone really should close the multitude of open duplicates: https://github.com/SoftFever/OrcaSlicer/issues?q=is%3Aissue%20state%3Aopen%20libwebkit2gtk-4.0.so.37

I accidentally posted in this closed issue: https://github.com/SoftFever/OrcaSlicer/issues/4616#issuecomment-2704402878

Beep6581 avatar Mar 06 '25 17:03 Beep6581

Orca bot: this issue is stale because it has been open for 90 days with no activity.

github-actions[bot] avatar Jun 05 '25 00:06 github-actions[bot]

.

Beep6581 avatar Jun 09 '25 16:06 Beep6581

It appears that this won't ever be fixed as 22.04 compatible AppImages have been dropped from the nightly builds. https://github.com/SoftFever/OrcaSlicer/issues/10111

timnolte avatar Jul 10 '25 12:07 timnolte

Fair enough, this can be closed IMHO

olimexsmart avatar Jul 22 '25 15:07 olimexsmart

Orca bot: this issue is stale because it has been open for 90 days with no activity.

github-actions[bot] avatar Oct 21 '25 00:10 github-actions[bot]

Orca bot: This issue was closed because it has been inactive for 7 days since being marked as stale.

github-actions[bot] avatar Oct 29 '25 00:10 github-actions[bot]