I am creating a snap which will run an application that I already have compiled with Qt 4.8 designed with c++ and QML.
- I use core18 since I use Qt 4.8.
- I create the snap from Ubuntu 18.04 amd64.
- snapcraft, version 2.43.1+18.4.1
- Install on a machine with Ubuntu 22.04:
snap --version
snap 2.61.2
snapd 2.61.2
series 16
ubuntu 22.04
kernel 6.5.0-21-generic
I generate the snap with snapcraft without problems, but when installing the snap, it does not find the QtWebKit module. The libraries are installed, but the application still does not work.
I hope you can help me.
My yaml:
name: lectoralmacen
base: core18
version: '1.1'
summary: Sistema de datawarehouse
description: |
Sistema de datawarehouse.
grade: stable
confinement: classic
architectures:
- build-on: amd64
apps:
lectoralmacen:
command: bin/launch-lectoralmacen
environment:
LD_LIBRARY_PATH: $LD_LIBRARY_PATH:$SNAP/usr/lib/x86_64-linux-gnu/qt4:$PATH
FONTCONFIG_FILE: $SNAP/etc/fonts/fonts.conf
FONTCONFIG_PATH: $SNAP/etc/fonts
QT_PLUGIN_PATH: $SNAP/usr/lib/x86_64-linux-gnu/qt4/plugins
QT_PLUGIN_PATH: $SNAP/usr/lib/x86_64-linux-gnu/qt4/plugins
QML2_IMPORT_PATH: $SNAP/usr/lib/x86_64-linux-gnu/qt4/imports
plugs:
- network
- network-bind
- home
- cups-control
- opengl
- desktop
- desktop-legacy
- removable-media
- wayland
- x11
parts:
lectoralmacen:
plugin: dump
source: /opt/LectorAlmacen
stage-packages:
- qtcore4-l10n
- qtchooser
- qdbus
- libmng2
- libqt4-dbus
- libqtdbus4
- libasound2
- libnss3
- libx11-6
- libx11-xcb1
- libxcb1
- libxcomposite1
- libxcursor1
- libxdamage1
- libxext6
- libxfixes3
- libxi6
- libxrender1
- libxtst6
- libgcc1
- libc6
- libqt4-declarative
- libqt4-sql
- libqt4-xml
- libqt4-xmlpatterns
- libqtcore4
- libqtgui4
- libqtwebkit-qmlwebkitplugin
- libqt4-sql-mysql
- libqt4-declarative-particles
- libcurl4
- libqt4-svg
- libmysqlclient20
- libstdc++6
- libqt4-dev
- libssl1.1
- mysql-common
- libssl-dev
- libmysqlclient-dev
- libqtwebkit4
- libqtwebkit4-dbg
- libfontconfig1
- libqtscript4-webkit
- libgl1-mesa-glx
- libgl1
- libglib2.0-0
- libgstreamer-plugins-base1.0-0
- libgstreamer1.0-0
- libjpeg8
- libpng16-16
- libqt4-network
- libqt4-script
- libqt4-opengl
- libsqlite3-0
- libxml2
- libxslt1.1
- zlib1g
- libpcre3
- libuuid1
- binutils
- libqtwebkit-dev