Hey guys,
has anyone ever tried to snap a game running with wine? Per example Eve Online?
I did try but it sadly doesn’t work.
So far that’s what I got
name: eve-online
version: 1104891
description: Eve online on Linux using Wine
summary: Play Eve Online on Linux
grade: stable
confinement: strict
parts:
eve-online:
plugin: dump
source: https://binaries.eveonline.com/evelauncher-1104891.tar.gz
stage-packages:
- libc6
- libglu1-mesa:i386
- libtxc-dxtn-s2tc0:i386
- wine:i386
- libc6:i386
- glibc
apps:
eve-online:
command: evelauncher.sh
plugs: [ home, network, alsa, desktop, opengl, x11]
When I install it and try to run it, here is the ouput:
/snap/eve-online/x1/evelauncher: error while loading shared libraries: libGL.so.1: wrong ELF class: ELFCLASS32
If I am going for the 64 bits packages, I am getting :
This application failed to start because it could not find or load the Qt platform plugin "xcb"
in "".
Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, xcb.
Reinstalling the application may fix this problem.
Aborted (core dumped)
I added multiple packages like qt5-base, qt5-dbus and qt5-gui but I would get the same message.
If anyone has a clue what to do, don’t be shy!
EDIT 1 :
Using both of your examples I am getting an error saying that I have no candidates for libpng12. I tried to add it manually but it tells me that it got to be available outside of the snap. I then changed wine to be for the same distro version than I am which is Ubuntu 17.10. It still didn’t work obviously becuase of libpng12 so I decided to remove it. It asks me to install libc6 so I did.
name: eve-online
version: 1104891
description: Eve online on Linux using Wine
summary: Play Eve Online on Linux
grade: stable
confinement: strict
parts:
eve-online:
plugin: dump
source: https://binaries.eveonline.com/evelauncher-1104891.tar.gz
enable-i386:
plugin: nil
prepare: |
dpkg --add-architecture i386
apt update
wine-3p1:
after: [enable-i386]
plugin: dump
source: https://dl.winehq.org/wine-builds/ubuntu/pool/main/wine-stable-i386_3.0.0~artful_i386.deb
source-type: deb
install: |
spi=$SNAPCRAFT_PART_INSTALL
lins=$spi/usr/share/lintian
docs=$spi/usr/share/doc
mans=$spi/usr/share/man
ws=opt/wine-stable
cp -r $ws/* $spi/ && cp -r $spi/share $spi/usr/ && rm -r $spi/opt $spi/share $mans $lins $docs
stage-packages:
- on i386:
- libfreetype6
- libncurses5
- libgnutls30
- libxext6
- libudev1
- libc6
- libxrender1
- zlib1g
- on amd64:
- libfreetype6:i386
- libncurses5:i386
- libgnutls30:i386
- libxext6:i386
- libudev1:i386
- libc6:i386
- libxrender1:i386
- zlib1g:i386
- libc6
wine-3p2:
plugin: dump
source: https://dl.winehq.org/wine-builds/ubuntu/pool/main/wine-stable_3.0.0~artful_i386.deb
source-type: deb
install: |
spi=$SNAPCRAFT_PART_INSTALL
docs=$spi/usr/share/doc
mans=$spi/share/man
ws="opt/wine-stable"
cp -r $ws/* $spi/ && rm -r $spi/opt $docs $mans $spi/share/wine/fonts
apps:
eve-online:
command: ./evelauncher.sh
plugs:
- desktop
- desktop-legacy
- network
- network-bind
- opengl
- process-control
- pulseaudio
- wayland
- x11
here is a link to the error I am getting : snapcraft_error.txt