Hi,
I’m trying to build a snap for flutter application that requieres an specific package dart_vlc
, this package is used a a bridge to use the installed VLC, by now I have make it work using the confinement
option classic
but the best approach would be setted to strict
the problem with that
This is the actual snapcraft.yaml
name: awesome-snap
version: 0.1.0
summary: Awesome Snap Summary
description: Awesome Snap Description
confinement: strict
base: core20
grade: stable
architectures:
- build-on: amd64
compression: lzo
apps:
awesome-snap:
command: bin/proto_device_application
extensions: [gnome-3-38]
plugs:
- network
parts:
flutter-git:
source: https://github.com/flutter/flutter.git
source-branch: stable # choose flutter branch
source-depth: 1
plugin: nil
override-build: |
mkdir -p $SNAPCRAFT_PART_INSTALL/usr/bin
mkdir -p $SNAPCRAFT_PART_INSTALL/usr/libexec
cp -r $SNAPCRAFT_PART_SRC $SNAPCRAFT_PART_INSTALL/usr/libexec/flutter
ln -s $SNAPCRAFT_PART_INSTALL/usr/libexec/flutter/bin/flutter $SNAPCRAFT_PART_INSTALL/usr/bin/flutter
build-packages:
- clang
- cmake
- curl
- libgtk-3-dev
- ninja-build
- unzip
- xz-utils
- zip
override-prime: ''
proto-device-application:
after: [ flutter-git ]
source: .
plugin: nil
build-packages:
- libvlc-dev
stage-packages:
- vlc
override-build: |
set -eux
mkdir -p $SNAPCRAFT_PART_INSTALL/bin
flutter upgrade
flutter config --enable-linux-desktop
flutter doctor
flutter clean
flutter pub get
flutter build linux --release -v
cp -r build/linux/*/release/bundle/* $SNAPCRAFT_PART_INSTALL/bin/
And this is the error obtained when launching the application
/snap/awesome-snap/x1/awesome_snap: symbol lookup error: /snap/awesome-snap/x1/gnome-platform/usr/lib/x86_64-linux-gnu/libgtk-3.so.0: undefined symbol: pango_font_family_get_face
Any ideas of what is happening and how could it be solved?
Thanks in advanced