Skip to content

Missing libraries in Linux build #2320

@Ayliroe

Description

@Ayliroe

Windows OS version

Not Windows lol, Bazzite

ImageGlass version

ImageGlass 10 Beta 1 (v10.0.0.314)

ImageGlass release

Classic

1️⃣ Steps to reproduce

  1. Install a Debian-based distrobox (I used DistroShelf, with the image docker.io/library/debian:latest)
  2. Install Package, select the .deb for linux-amd64 (or by CLI: sudo apt install DOWNLOADEDPATH/ImageGlass_10.0.0.314-beta-1_linux-amd64.deb)
  3. Export the app and start it with its shortcut, or type "imageglass" in the CLI
  4. Error message about missing dlls

2️⃣ Actual behavior

This is one of the 3 errors that pop-up:

Unhandled exception. System.DllNotFoundException: Unable to load shared library 'libSM.so.6' or one of its dependencies. In order to help diagnose loading problems, consider using a tool like strace. If you're using glibc, consider setting the LD_DEBUG environment variable: 
/opt/imageglass/libSM.so.6: cannot open shared object file: No such file or directory
/opt/imageglass/liblibSM.so.6: cannot open shared object file: No such file or directory
/opt/imageglass/libSM.so.6.so: cannot open shared object file: No such file or directory
/opt/imageglass/liblibSM.so.6.so: cannot open shared object file: No such file or directory

   at System.Runtime.InteropServices.NativeLibrary.LoadLibErrorTracker.Throw(String) + 0x46
   at Internal.Runtime.CompilerHelpers.InteropHelpers.FixupModuleCell(InteropHelpers.ModuleFixupCell*) + 0x12c
   at Internal.Runtime.CompilerHelpers.InteropHelpers.ResolvePInvokeSlow(InteropHelpers.MethodFixupCell*) + 0x35
   at Avalonia.X11.SMLib.SmcOpenConnection(String, IntPtr, Int32, Int32, UIntPtr, SMLib.SmcCallbacks&, String, IntPtr&, Int32, Byte[]) + 0x4f
   at Avalonia.X11.X11PlatformLifetimeEvents..ctor(AvaloniaX11Platform) + 0xed
   at Avalonia.X11.AvaloniaX11Platform.Initialize(X11PlatformOptions) + 0x69a
   at Avalonia.AppBuilder.SetupUnsafe() + 0x50
   at Avalonia.ClassicDesktopStyleApplicationLifetimeExtensions.StartWithClassicDesktopLifetime(AppBuilder, String[], Action`1) + 0x34
   at ImageGlass.Linux.Program.Main(String[] args) + 0xa6
Aborted (core dumped)

Fix:
Install the missing dlls with sudo apt install libicu-dev libice6 libsm6

3️⃣ Expected behavior

IG starts on Linux ;)

I presume these need to either be installed as dependencies, or come prepackaged.

4️⃣ Screenshots / Video / Sample image file

No response

5️⃣ Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions