Dear all, i am trying since 2 days to snap a simple silk.net application. The source code is copied from Hello Window | Silk.NET. Goal should be to develop the application on my host (Ubuntu 22) and to use it on my ubuntu core 22 system with ubuntu frame / wayland. Both system arch. are x64.
My dotnet application is working perfect if I run it with “dotnet run” on my host. I solved a lot of issue to get it snapped but if I start the snap on my host I’m at a point where I can’t go any further.
I build, install and start the snap like this:
snapcraft clean
snapcraft --use-lxd --debug
sudo snap install *.snap --devmode --dangerous
sudo silk-test
I get following error message:
silk-test: ./src/window.c:533: glfwSetWindowPos: Assertion `window != NULL' failed.
Aborted (core dumped)
This is my current yaml:
name: silk-test
base: core22
version: '0.1'
summary: Single-line elevator pitch for your amazing snap
description: |
This is my-snap's description.
grade: devel
confinement: devmode
architectures:
- build-on: [amd64]
build-for: [amd64]
parts:
silk-test:
plugin: dotnet
dotnet-build-configuration: Release
dotnet-self-contained-runtime-identifier: linux-x64
source: .
build-packages:
- dotnet-sdk-8.0
stage-packages:
- libicu70
- libgl1-mesa-dri
- libwayland-client0
- libglfw3
- libglfw3-dev
- libglfw3-wayland
- libwayland-egl1-mesa
- libwayland-cursor0
- libwayland-server0
- libxkbcommon0
- libxkbcommon-x11-0
- libegl1
- xkb-data
- libx11-xcb1
- libglu1-mesa
apps:
silk-test:
command: silk-test
environment:
WAYLAND_DISPLAY: wayland-0
SDL_VIDEODRIVER: wayland
XDG_RUNTIME_DIR: /run/user/1000
XKB_DEFAULT_RULES: evdev
XKB_CONFIG_ROOT: $SNAP/usr/share/X11/xkb
XLOCALEDIR: $SNAP/usr/share/X11/locale
LIBGL_DRIVERS_PATH: $SNAP/usr/lib/x86_64-linux-gnu/dri
LD_LIBRARY_PATH: "$SNAP/usr/lib/x86_64-linux-gnu:$SNAP/lib/x86_64-linux-gnu:$LD_LIBRARY_PATH"
plugs:
- opengl
- desktop
- desktop-legacy
- unity7
- x11
- wayland
- network
- network-bind
- home
I guess something is missing.
First strange thing is that the linter says that libglfw.so.3.3’ is unused but as far I understood I need this lib for silk.net.
Second point I struggle is the missing dependency liblttng-ust.so.0 because I have already
installed
sudo ldconfig -p | grep "libl"
liblz4.so.1 (libc6,x86-64) => /lib/x86_64-linux-gnu/liblz4.so.1
liblzo2.so.2 (libc6,x86-64) => /lib/x86_64-linux-gnu/liblzo2.so.2
liblzma.so.5 (libc6,x86-64) => /lib/x86_64-linux-gnu/liblzma.so.5
liblzma.so (libc6,x86-64) => /lib/x86_64-linux-gnu/liblzma.so
-> liblttng-ust.so.1 (libc6,x86-64) => /lib/x86_64-linux-gnu/liblttng-ust.so.1
-> liblttng-ust.so (libc6,x86-64) => /lib/x86_64-linux-gnu/liblttng-ust.so
liblttng-ust-tracepoint.so.1 (libc6,x86-64) => /lib/x86_64-linux-gnu/liblttng-ust-tracepoint.so.1
..
..
Lint warnings:
- library: libcoreclrtraceptprovider.so: missing dependency ‘liblttng-ust.so.0’. (https:// …
- library: libGL.so.1: unused library ‘usr/lib/x86_64-linux-gnu/libGL.so.1.7.0’. (https://snapcraft.io/docs/linters-library)
- library: libGLESv1_CM.so.1: unused library ‘usr/lib/x86_64-linux-gnu/libGLESv1_CM.so.1.2.0’. (https://snapcraft.io/docs/linters-library)
- library: libGLESv2.so.2: unused library ‘usr/lib/x86_64-linux-gnu/libGLESv2.so.2.1.0’. (Library linter | Snapcraft documentation)
- library: libGLU.so.1: unused library ‘usr/lib/x86_64-linux-gnu/libGLU.so.1.3.1’. (Library linter | Snapcraft documentation)
- library: libGLX_mesa.so.0: unused library ‘usr/lib/x86_64-linux-gnu/libGLX_mesa.so.0.0.0’. (Library linter | Snapcraft documentation)
- library: libglfw.so.3: unused library ‘usr/lib/x86_64-linux-gnu/libglfw.so.3.3’. (Library linter | Snapcraft documentation)
- library: libicuio.so.70: unused library ‘usr/lib/x86_64-linux-gnu/libicuio.so.70.1’. (https://snapcraft.io/docs/linters-library)
- library: libicutest.so.70: unused library ‘usr/lib/x86_64-linux-gnu/libicutest.so.70.1’. (https://snapcraft.io/docs/linters-library)
- library: libwayland-cursor.so.0: unused library ‘usr/lib/x86_64-linux-gnu/libwayland-cursor.so.0.20.0’. (https://snapcraft.io/docs/linters-library)
- library: libwayland-egl.so.1: unused library ‘usr/lib/x86_64-linux-gnu/libwayland-egl.so.1.20.0’. (Library linter | Snapcraft documentation)
- library: libxkbcommon-x11.so.0: unused library ‘usr/lib/x86_64-linux-gnu/libxkbcommon-x11.so.0.0.0’. (Library linter | Snapcraft documentation)
Maybe somebody can help me
Regards