Hi all.
I compile the project on QT, and using libraries and commercial modules.
When build snap it pulls from the QT library system, but I need not to let the snap rewrite the system, and force it to use libraries only from the specified address.
My snapcraft.yaml
name: bsp095project
version: “1.0”
summary: timer
description: |
Application for medical testing
confinement: devmode
grade: devel
architectures: [amd64]
apps:
BSP095launcherCoreSimulation:
command: bin/run.sh $SNAP/bin/start_CORE_simulation.sh
plugs: [‘home’, ‘x11’, ‘opengl’, ‘gsettings’, ‘raw-usb’, ‘serial-port’, ‘network’]
environment:
LD_LIBRARY_PATH: $SNAP/usr/lib/x86_64-linux-gnu:$SNAP/usr/lib/x86_64-linux-gnu/Simulation:$LD_LIBRARY_PATH
BSP095launcherCore:
command: bin/run.sh $SNAP/bin/start_CORE_hardware.sh
plugs: [‘home’, ‘x11’, ‘opengl’, ‘gsettings’, ‘raw-usb’, ‘serial-port’, ‘network’]
environment:
LD_LIBRARY_PATH: $SNAP/usr/lib/x86_64-linux-gnu:$SNAP/usr/lib/x86_64-linux-gnu/CommProtV200:$LD_LIBRARY_PATH
BSP095launcherCoreDaemon:
command: bin/run.sh $SNAP/bin/start_CORE_hardware.sh --start
daemon: simple
stop-command: bin/run.sh $SNAP/bin/start_CORE_hardware.sh --stop
stop-timeout: 10s
plugs: [‘home’, ‘x11’, ‘opengl’, ‘gsettings’, ‘raw-usb’, ‘serial-port’, ‘network’]
environment:
LD_LIBRARY_PATH: $SNAP/usr/lib/x86_64-linux-gnu:$SNAP/usr/lib/x86_64-linux-gnu/CommProtV200:$LD_LIBRARY_PATH
BSP095launcherGui:
command: bin/run.sh $SNAP/bin/start_GUI.sh
plugs: [‘home’, ‘x11’, ‘opengl’, ‘gsettings’, ‘pulseaudio’, ‘network’]
environment:
LD_LIBRARY_PATH: $SNAP/usr/lib/x86_64-linux-gnu:$LD_LIBRARY_PATH
parts:
files:
plugin: dump
source: scripts
after: [integration]
integration:
plugin: nil
stage-packages:
- libc-bin
- 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-qt5
- libqt5qml5
- libqt5quickwidgets5
- qml-module-qtquick-controls
- qml-module-qtqml-models2
- qmlscene
- qml-module-qt-labs-folderlistmodel
- qml-module-qtquick-xmllistmodel
after: [desktop/qt5]
For example I have libraries to use in &SNAP/usr/lib/QT (here projects have to look libraries what they need)
Thank you in advance for your help.