Blondazz / KeyOverlay

A simple key overlay for osu! streaming
GNU General Public License v3.0
197 stars 26 forks source link

Cannot run on linux: libcsfml-system: cannot open shared object file: No such file or directory #40

Closed Vergenter closed 2 years ago

Vergenter commented 2 years ago

Basic system info: Linux pop-os 5.16.15-76051615-generic #202203161444~1647964027~21.10~e706226 SMP PREEMPT Tue Mar 22 17 x86_64 x86_64 x86_64 GNU/Linux Steps to reproduce:

  1. Download KeyOverlay-ubuntu-latest.zip from https://github.com/Blondazz/KeyOverlay/releases/download/v1.0.1/KeyOverlay-ubuntu-latest.zip
  2. unpack
  3. cd KeyOverlay-ubuntu-latest
  4. chmod +x KeyOverlay to make it executable
  5. ./KeyOverlay To run it
  6. Output error:
    System.DllNotFoundException: Unable to load shared library 'csfml-system' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: libcsfml-system: cannot open shared object file: No such file or directory
    at SFML.System.Clock.sfClock_create()
    at KeyOverlay.AppWindow..ctor() in /home/runner/work/KeyOverlay/KeyOverlay/AppWindow.cs:line 30
    at KeyOverlay.Program.Main(String[] args) in /home/runner/work/KeyOverlay/KeyOverlay/Program.cs:line 13
    Unhandled exception. System.DllNotFoundException: Unable to load shared library 'csfml-system' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: libcsfml-system: cannot open shared object file: No such file or directory
    at SFML.System.Clock.sfClock_create()
    at KeyOverlay.AppWindow..ctor() in /home/runner/work/KeyOverlay/KeyOverlay/AppWindow.cs:line 30
    at KeyOverlay.Program.Main(String[] args) in /home/runner/work/KeyOverlay/KeyOverlay/Program.cs:line 13
    Aborted (core dumped)

    Note: errorMessage.txt is empty

Blondazz commented 2 years ago

Thanks for the descriptive issue, if only all of them would look like this haha. Please check this comment it looks like it's the same problem with a missing package.

Vergenter commented 2 years ago

Installing sfml didn't solve this issue. I installed sfml using commands below:

$ sudo apt-get install libsfml-dev
libsfml-dev is already the newest version (2.5.1+dfsg-1build1).
$sudo apt-get install libsfml-system2.5
libsfml-system2.5 is already the newest version (2.5.1+dfsg-1build1).

I'm still getting same error. I tried to build it myself using steps:

  1. dotnet restore in main project directory
  2. dotnet add package SFML.Net --version 2.5.0 to add SFML package
  3. dotnet run to test

Same error

aMalteser commented 2 years ago

Try installing libcsfml-dev package and running it again

Vergenter commented 2 years ago

Thank you for your help. Running sudo apt-get install libcsfml-dev solved my problem. I suggest to add installation instruction for ubuntu to README.MD, it will simplify this process for other people.