wxWidgets based app

Greetings, TdhCad has been packaged as a Snap for a few years (thanks to help I previously received on this forum). Now, I’m trying to package it as a Snap using Ubuntu 20.04 and wxWidget 3.10, without success. Help will be appreciated. The yaml code I have been trying and the result is:

base: core20

parts:

  # The wxWidgets SDK Stage Snaps
  # https://forum.snapcraft.io/t/the-wxwidgets-sdk-stage-snaps/10877
  wxwidgets-sdk:
    plugin: nil
    stage-snaps:
    - wxwidgets-sdk-gtk3
    stage-packages:
      - libpng16-16
    filesets:
      crash-dialog-support:
      - usr/bin/*addr2line
      library-shared:
      - '**/lib/**/*.so*'
    prime:
    - $crash-dialog-support
    - $library-shared

  tdhcad:
    plugin: dump
    source: TdhCad_linux64.zip
    after:
    - wxwidgets-sdk
    stage-packages:
      - libwxgtk3.0-gtk3-0v5
      - libcairo2 

apps:
  tdhcad:
    command: TdhCad_launcher.sh 

plugs:
  # For snaps with a graphical user interface:
  desktop:
  desktop-legacy:
  x11:
  unity7:
  wayland:
Priming wxwidgets-sdk 
This part is missing libraries that cannot be satisfied with any available stage-packages known to snapcraft:
- libGL.so.1
- libSM.so.6
- libX11.so.6
- libXxf86vm.so.1
- libcairo.so.2
- libgdk-3.so.0
- libgdk_pixbuf-2.0.so.0
- libgstreamer-1.0.so.0
- libgstvideo-1.0.so.0
- libgtk-3.so.0
- libjpeg.so.8
- libnotify.so.4
- libpango-1.0.so.0
- libpangocairo-1.0.so.0
- libtiff.so.5
- libwebkit2gtk-4.0.so.37
These dependencies can be satisfied via additional parts or content sharing. Consider validating configured filesets if this dependency was built.
Priming tdhcad 
Snapping |                                                                                                                               
Snapped tdhcad_20.12.07_amd64.snap
tim@tim-V5-171:/media/tim/ntfs/Snaps/TdhCad$ sudo snap install --devmode tdhcad_20.12.07_amd64.snap
tdhcad 20.12.07 installed
tim@tim-V5-171:/media/tim/ntfs/Snaps/TdhCad$ tdhcad
./TdhCad_linux: symbol lookup error: ./libTdhWx.so: undefined symbol: _ZNK8wxWindow21GetContentScaleFactorEv, version WXU_3.0.5

try replacing

with three backticks to get proper formatting …

thanks, i needed that.

The stage snap isn’t supporting core20 yet, I suggest migrate it to its stage-packages counterpart when possible.