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
7.43k stars 890 forks source link

There is an issue running Orca slicer AppImage on Ubuntu 24.04 #5860

Closed noamix closed 4 months ago

noamix commented 5 months ago

Is there an existing issue for this problem?

OrcaSlicer Version

OrcaSlicer_Linux_V2.1.0.AppImage

Operating System (OS)

Linux

OS Version

Ubuntu 24.04 fresh install

Additional system information

Detalles del informe del sistema


Detalles del informe

Información de hardware:

Información de software:

Printer

ender 3v2

How to reproduce

leo@leo-home:~/Descargas$ chmod +x OrcaSlicer.AppImage leo@leo-home:~/Descargas$ ./ OrcaSlicer.AppImage bash: ./: Es un directorio leo@leo-home:~/Descargas$ ./OrcaSlicer.AppImage /tmp/.mount_OrcaSlu1xsQz/bin/orca-slicer: error while loading shared libraries: libwebkit2gtk-4.0.so.37: cannot open shared object file: No such file or directory

Actual results

I can't get Orca slicer to run on Ubuntu 24.04

Expected results

orca slicer must run

Project file & Debug log uploads

./OrcaSlicer.AppImage /tmp/.mount_OrcaSlu1xsQz/bin/orca-slicer: error while loading shared libraries: libwebkit2gtk-4.0.so.37: cannot open shared object file: No such file or directory

Checklist of files to include

Anything else?

No response

john-parton commented 5 months ago

Note that you cannot even run sudo apt install libwebkit2gtk-4.0-dev to resolve, because that package no longer exists in Ubuntu 24.04. They've upgraded it to libwebkit2gtk-4.1-dev.

I don't know much about AppImage, but my general gut feeling is that a flatpak wouldn't have this same issue.

ElectricalBoy commented 5 months ago

Related: https://github.com/prusa3d/PrusaSlicer/issues/12931

luigicampanaro commented 2 months ago

This worked for me:

./OrcaSlicer_Linux_Ubuntu2404_V2.2.0-beta2.AppImage --appimage-extract cd squashfs-root ./AppRun

limbusdev commented 1 month ago

One solution is to make a symbolic link to the newer version. So it uses that one instead. There seem to be no breaking changes:

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
chen78 commented 2 weeks ago

Note that you cannot even run sudo apt install libwebkit2gtk-4.0-dev to resolve, because that package no longer exists in Ubuntu 24.04. They've upgraded it to libwebkit2gtk-4.1-dev.

I don't know much about AppImage, but my general gut feeling is that a flatpak wouldn't have this same issue.

that package does not exist

john-parton commented 1 week ago

It probably depends on your specific version of Ubuntu. I believe there's a Ubuntu-specific AppImage. I understand the irony in having a system-specific version of a file that's supposed to be system-agnostic, but that's what I've been running and it works in my case.