SoftFever / OrcaSlicer

G-code generator for 3D printers (Bambu, Prusa, Voron, VzBot, RatRig, Creality, etc.)
https://discord.gg/P4VE9UY9gJ
GNU Affero General Public License v3.0
6.8k stars 801 forks source link

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

Open Guswilly opened 1 year ago

Guswilly commented 1 year ago

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):

cereal7802 commented 1 year ago

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.

royw commented 1 year ago

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

Guswilly commented 1 year ago

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.

khumarahn commented 1 year ago

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

Krutonium commented 1 year ago

This really should be packed into the AppImage

lordfiSh commented 1 year ago

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

Cypher1 commented 9 months ago

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
magealexstra commented 8 months ago

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
xpcone commented 8 months ago

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

DupiDachs commented 6 months ago

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!

czinehuba commented 5 months ago

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

SebiPanther commented 5 months ago

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

steve7233 commented 4 months ago

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 commented 4 months ago

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.

mikey54 commented 3 months ago

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

BadPixel89 commented 1 month ago

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

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

ExperimentalCyborg commented 4 weeks ago

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. :(

BadPixel89 commented 3 weeks ago

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

ExperimentalCyborg commented 3 weeks ago

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!

xpcone commented 2 weeks ago

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

ExperimentalCyborg commented 2 weeks ago

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: