Qt5 App from core18 to core20

Hi everybody,

i currently try to switch my Qt5 App from core18 to core20. The App is building just fine, but when i start the program i get the following error:

robert@robert-HP-EliteBook-735-G5:~/develop/voptop/client/Voptop-Qt5-Client/Voptop-snap-installer/voptop$ voptop 
/home/robert/snap/voptop/common/.cache/gio-modules/libdconfsettings.so: cannot open shared object file: No such file or directory
Failed to load module: /home/robert/snap/voptop/common/.cache/gio-modules/libdconfsettings.so
/home/robert/snap/voptop/common/.cache/gio-modules/libgiolibproxy.so: cannot open shared object file: No such file or directory
Failed to load module: /home/robert/snap/voptop/common/.cache/gio-modules/libgiolibproxy.so
/home/robert/snap/voptop/common/.cache/gio-modules/libgiognutls.so: cannot open shared object file: No such file or directory
Failed to load module: /home/robert/snap/voptop/common/.cache/gio-modules/libgiognutls.so
/home/robert/snap/voptop/common/.cache/gio-modules/libgiognomeproxy.so: cannot open shared object file: No such file or directory
Failed to load module: /home/robert/snap/voptop/common/.cache/gio-modules/libgiognomeproxy.so
/snap/voptop/75/usr/local/bin/Voptop/Voptop: error while loading shared libraries: libblas.so.3: cannot open shared object file: No such file or directory

Maybe someone knows what is wrong?

My snapcraft.yaml

name: voptop
version: "1.4.0-beta"
summary: Voptop
description: |
  lorem ipsum

confinement: strict
base: core20

architectures:
  - build-on: amd64
    run-on: [amd64]

parts:
  camcapture-lib:
    plugin: cmake
    source-type: git
    source-depth: 1
    source: git://192.168.178.33/voptop.git
    source-branch: release-platform/snap-core20
    source-subdir: client/Voptop-Qt5-Client/Voptop-CamCaptureLib
    build-packages:
      - g++
      - libopencv-dev
    organize:
      "/root/parts/camcapture-lib/install/lib/libVoptop-CamCaptureLib.so": ../../voptop/src/client/Voptop-Qt5-Client/Voptop-CamCaptureLib/libVoptop-CamCaptureLib.so

  voptop:
    plugin: qmake
    qmake-project-file: Voptop.pro
    source-type: git
    source-depth: 1
    source: git://192.168.178.33/voptop.git
    source-branch: release-platform/snap-core20
    source-subdir: client/Voptop-Qt5-Client/Voptop
    build-packages:
      - g++
      - qtbase5-dev
      - qtmultimedia5-dev
      - libswscale-dev
      - libavcodec-dev
      - libavformat-dev
      - libopencv-highgui-dev
      - libxss-dev
      - libssl-dev
      - libminiupnpc-dev
      - libogg-dev
      - libvorbis-dev
    stage-packages:
      - libqt5core5a
      - libqt5multimedia5
      - libqt5multimedia5-plugins
      - libqt5svg5
      - libqt5widgets5
      - libqt5gui5
      - libqt5network5
      - libswscale5
      - libavcodec-extra58
      - libavformat58
      - libopencv-highgui4.2
      - libxss1
      - libssl1.1
      - libminiupnpc17
      - libogg0
      - libvorbis0a
      - qtwayland5
    organize:
      "/root/parts/voptop/src/client/Voptop-Qt5-Client/Voptop-CamCaptureLib/libVoptop-CamCaptureLib.so": /lib/libVoptop-CamCaptureLib.so
      "/root/parts/voptop/src/client/Voptop-Qt5-Client/Voptop-snap-installer/menuEntry/application_icon.svg": snap/gui/voptop.svg

  desktop-qt5:
      source: https://github.com/ubuntu/snapcraft-desktop-helpers.git
      source-depth: 1
      source-subdir: qt

      plugin: make
      make-parameters: ["FLAVOR=qt5"]
      build-packages:
      - build-essential
      - qtbase5-dev
      - dpkg-dev
      stage-packages:
      - libxkbcommon0
      - ttf-ubuntu-font-family
      - dmz-cursor-theme
      - light-themes
      - adwaita-icon-theme
      - gnome-themes-standard
      - shared-mime-info
      - libqt5gui5
      - libgdk-pixbuf2.0-0
      - libqt5svg5 # for loading icon themes which are svg
      - try: [appmenu-qt5] # not available on core18
      - locales-all
      - xdg-user-dirs
      - fcitx-frontend-qt5

apps:
  voptop:
    command: bin/desktop-launch $SNAP/usr/local/bin/Voptop/Voptop
    desktop: /root/parts/voptop/src/client/Voptop-Qt5-Client/Voptop-snap-installer/menuEntry/voptop.desktop
    plugs:
      - camera
      - audio-playback
      - audio-record
#      - x11
      - opengl
      - network
      - home
      - desktop
      - desktop-legacy

There’s something strange happening in file organization: it seems that part camcapture-lib installs a library which is organized to a location in the filesystem outside the snap payload, and part voptop places it back into lib? If part voptop requires a file to be installed before building, it can declare after: [camcapture-lib] so that the lib files are staged before voptop is built.