Build snap package with qml in ubuntu 17.10

Hello!
I need create a snap package with qml/qt, but my package not running after installation.
my yaml file: snapcraft.yaml
I use ubuntu 17.10 because my application depends on qt 5.9 or later version.
after running message:

Qt: Session management error: None of the authentication protocols specified are supported
libGL error: unable to load driver: radeonsi_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: radeonsi
libGL error: unable to load driver: radeonsi_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: radeonsi
libGL error: unable to load driver: swrast_dri.so
libGL error: failed to load driver: swrast
Unrecognized OpenGL version
Unrecognized OpenGL version

I need your help
Thanks.

This might be helpful :slight_smile:

1 Like

I decided to redesign the principle of building a package,
I first unload qt I compile it statically, build a binary with static qt and add it to the snap.
but I had a problem.

the package was built successfully but after the startup I get the following error:

/snap/hanoi-towers/x3/command-hanoi-towers.wrapper: 5: exec: /snap/hanoi-towers/x3/bin/hanoi-towers: not found

my yaml file: snapcraft.yaml