QIDITECH / QIDISlicer

QIDISlicer gets your 3D printing easier and faster.
https://qidi3d.com/
GNU Affero General Public License v3.0
59 stars 14 forks source link

appimage won't run, looking for shared library libwebkit2gtk-4.0.so.37 #78

Closed ChrisJones79 closed 4 months ago

ChrisJones79 commented 4 months ago

This library didn't come with my standard Debian build 12.5 (Bookworm). What is the solution?

$ ./QIDISlicer_1.1.4_Linux.AppImage
/tmp/.mount_QIDISlVx7RSV/usr/bin/bin/qidi-slicer: 
 error while loading shared libraries: libwebkit2gtk-4.0.so.37: 
  cannot open shared object file: No such file or directory
QIDITECH commented 4 months ago

Yes, some linux systems don't come with libwebkit2gtk, so you'll need to install it manually. sudo apt-get install libwebkit2gtk-4.0-dev

ChrisJones79 commented 4 months ago

Ok, thanks. What if 4.0-dev is unavailable, is a newer version ok?

On Sun, Jun 30, 2024, 21:46 QIDI TECH @.***> wrote:

Closed #78 https://github.com/QIDITECH/QIDISlicer/issues/78 as completed.

— Reply to this email directly, view it on GitHub https://github.com/QIDITECH/QIDISlicer/issues/78#event-13343903588, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACY6C5NCAL7CK5DUNCPC4L3ZKCYHRAVCNFSM6AAAAABKELAJVOVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJTGM2DGOJQGM2TQOA . You are receiving this because you authored the thread.Message ID: @.***>

kasunch commented 3 months ago

Some of the latest distributions such as Ubuntu 24.04 upgraded the libwebkit2gtk to 4.1 and do not ship 4.0 any longer. I solved the problem by extracting the appimage and creating a symbolic link as per the instructions in https://github.com/bambulab/BambuStudio/issues/3973#issuecomment-2097651206.

./QIDISlicer_<version>_Linux.AppImage --appimage-extract
ln -s /usr/lib/x86_64-linux-gnu/libwebkit2gtk-4.1.so.0 squashfs-root/usr/bin/bin/libwebkit2gtk-4.0.so.37
ln -s /usr/lib/x86_64-linux-gnu/libjavascriptcoregtk-4.1.so.0 squashfs-root/usr/bin/bin/libjavascriptcoregtk-4.0.so.18

You can run slicer using the following.

./squashfs-root/AppRun
ChrisJones79 commented 3 months ago

Thanks a lot! I am not savvy on dealing with app images, I didn't know you could fix them like that.

On Wed, Jul 31, 2024, 07:11 Kasun Hewage @.***> wrote:

Some of the latest distributions such as Ubuntu 24.04 upgraded the libwebkit2gtk to 4.1 and do not ship 4.0 any longer. I solved the problem by extracting the appimage and creating a symbolic link as per the instructions in bambulab/BambuStudio#3973 (comment) https://github.com/bambulab/BambuStudio/issues/3973#issuecomment-2097651206 .

./QIDISlicer__Linux.AppImage --appimage-extract ln -s /usr/lib/x86_64-linux-gnu/libwebkit2gtk-4.1.so.0 squashfs-root/usr/bin/bin/libwebkit2gtk-4.0.so.37 ln -s /usr/lib/x86_64-linux-gnu/libjavascriptcoregtk-4.1.so.0 squashfs-root/usr/bin/bin/libjavascriptcoregtk-4.0.so.18

You can run slicer using the following.

./squashfs-root/AppRun

— Reply to this email directly, view it on GitHub https://github.com/QIDITECH/QIDISlicer/issues/78#issuecomment-2260269930, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACY6C5INSIRYX6ELCYHMHWDZPDA6VAVCNFSM6AAAAABKELAJVOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENRQGI3DSOJTGA . You are receiving this because you authored the thread.Message ID: @.***>