Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

$ etlegacy.etl-x11 : libGL.so.1: cannot open #2

Open
Dadu042 opened this issue Sep 18, 2024 · 3 comments
Open

$ etlegacy.etl-x11 : libGL.so.1: cannot open #2

Dadu042 opened this issue Sep 18, 2024 · 3 comments

Comments

@Dadu042
Copy link

Dadu042 commented Sep 18, 2024

Version: Edge (Snap) 2.82.1.251. OS: Ubuntu 24.04 (intel IGP + Nvidia GPU).

$     etlegacy.etl-x11

....
2024-09-18 21:29:41 (963 KB/s) - ‘/home/me/snap/etlegacy/297/.etlegacy/etmain/pak2.pk3’ saved [89910/89910]

/snap/etlegacy/297/usr/local/bin/etl.x86_64: error while loading shared libraries: libGL.so.1: cannot open shared object file: No such file or directory

To fix this issue: in the snapcraft.yaml file, after 'parts: etl:'
I think you should have 'build-packages:' listing '- libopengl-dev' , then 'stage-packages:' listing '- libopengl0'.

rafal1137 added a commit that referenced this issue Sep 18, 2024
@rafal1137
Copy link
Member

@Dadu042
obraz

@Dadu042
Copy link
Author

Dadu042 commented Sep 26, 2024

Thanks for trying. Same issue on my side (v2.82.1.294 edge) :

$ etlegacy.etl-x11
/snap/etlegacy/313/usr/local/bin/etl.x86_64: error while loading shared libraries: libGL.so.1: cannot open shared object file: No such file or directory

$ etlegacy.etl-wayland
Setting up watches.
Watches established.         (then stuck on this...)


$ /snap/etlegacy/current/bin/setup.sh
$      (nothing does appear)

I have snapcrafted the package on my Ubuntu 24.04.
Now: etlegacy.etl-x11 does download the PAK files before to show the 'error while loading shared libraries: libGL.so.1'. And I have found a workaround for this error message, in snapcraft.yaml, add after 'layout' :

  /usr/lib/x86_64-linux-gnu/libEGL.so:
    symlink: $SNAP/usr/lib/x86_64-linux-gnu/libEGL.so
  /usr/lib/x86_64-linux-gnu/libGL.so:
    symlink: $SNAP/usr/lib/x86_64-linux-gnu/libGL.so
  /usr/lib/x86_64-linux-gnu/libGLEW.so:
    symlink: $SNAP/usr/lib/x86_64-linux-gnu/libGLEW.so 

The game does run (in X11 only, not Wayland) and is playable, but without sound nor music. Perhaps adding more Alsa code in the snapcraft may help.

@rafal1137
Copy link
Member

rafal1137 commented Sep 26, 2024

@Dadu042 When you typed /snap/etlegacy/current/bin/setup.sh it should connect all other snap packages that it require to run. Sometimes it may say that something is missing and you need to connect it manually.

As reminder you need to run in wayland session to make use of wayland part

Alsa is added there same as pulseaudio (But I have to recheck that)

Will play with that change you made

PS: When you create snap in your local pc GL is always there it is only missing from GIthub Actions We build on

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants