Hello.
I collected the application on Qt, below is my config and what the application carries in itself.
snapcraft.yaml
name: projecttimer
version: "0.1.0"
summary: timer
description: |
Application for time management
confinement: strict
architectures: [amd64]
apps:
timerproject:
command: bin/run.sh $SNAP/bin/ProjectTimer
plugs: [home, unity7, x11, opengl, pulseaudio, wayland]
parts:
files:
plugin: dump
source: scripts
source-type: local
integration:
plugin: nil
stage-packages:
- libc-bin
- git
- libclutter-1.0-0
- libxkbcommon0
- ttf-ubuntu-font-family
- dmz-cursor-theme
- libglib2.0-0
- light-themes
- shared-mime-info
- libqt5gui5
- libgdk-pixbuf2.0-0
- libqt5svg5
- libqt5quick5
- libsqlite0
- libqt5sql5
- libqt5sql5-sqlite
- libsqlite3-0
- appmenu-qt
- libqt5qml5
- libqt5quickwidgets5
- libgl1-mesa-dev
- qml-module-qtquick-controls
- qml-module-qtqml-models2
- qmlscene
- qml-module-qt-labs-folderlistmodel
- qml-module-qtquick-xmllistmodel
In run.sh I have
export LD_LIBRARY_PATH=$SNAP/Qt/5.11.0/gcc_64/lib:$LD_LIBRARY_PATH
export QT_PLUGIN_PATH=$SNAP/Qt/5.11.0/gcc_64/plugins
export QML2_IMPORT_PATH=$QML2_IMPORT_PATH:$SNAP/Qt/5.11.0/gcc_64/qml
export QT_QPA_PLATFORM_PLUGIN_PATH=$SNAP/Qt/5.11.0/gcc_64/plugins/platforms/
There are ways to all plugins and libraries of Qt version 5.11
This is the tree of the project itself
scripts
bin
ProjectTimer
run.sh
Qt
5.11.0
gcc_64
lib
plugins
qml
snap
gui
icon.png
snapcraft.yaml
I install the package in this way
sudo snap install --devmode projecttimer***.snap
Installation takes place without problems.
When I try to start I get such errors
QStandardPaths: XDG_RUNTIME_DIR points to non-existing path '/run/user/1000/snap.projecttimer', please create it with 0700 permissions.
QStandardPaths: XDG_RUNTIME_DIR points to non-existing path '/run/user/1000/snap.projecttimer', please create it with 0700 permissions.
Cannot mix incompatible Qt library (version 0x50a00) with this library (version 0x50b00)
Prompt please in what there can be a problem?
Maybe something is missing in snapcraft.yaml?
I would be grateful for indicating the mistakes that I made)