The wxWidgets SDK Stage Snaps

This forum topic is a stub, feel free to complete/improve it.

This stage snap ships built, ready to use wxWidgets libraries and development files to build wxWidgets applications for your snap.

Prerequisites

  • Currently only core18 base snap is supported, core base support may be available in the future
  • This stage snap requires you to connect to desktop-gnome-platform content sharing snap (desktop-gtk3 is possible but not supported)

Variants

gtk3

Available as the wxwidgets-sdk-gtk3 stage snap.

gtk2 (not implemented yet, contact me if you need one)

How to use

Merge the following part definition to your Snapcraft recipe:

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-_variant_identifier_
    filesets:
      crash-dialog-support:
      - usr/bin/*addr2line
      library-shared:
      - '**/lib/**/*.so*'
    prime:
    - $crash-dialog-support
    - $library-shared

then make wxwidgets-sdk a dependency of your consuming part:

parts:
   _consuming_part_name_:
    after:
    - wxwidgets-sdk

Snaps that consumes these stage snaps

The implementation

Git : Code : wxwidgets-snaps : “Snap Dump” team

Support

Bugs : wxwidgets-snaps

Is anyone using this or any other method for creating a snap of a wxWidgets app. I have been using some yaml code I got years ago that required a convoluted process of compiling in 18.04 and creating the snap in 20.04. That process seems to have broken down now that I am using C++17. And I would like to have process that uses only one OS version, preferably that lastest lts. Here is the yaml code I was using, hoping for suggestions:

grade: stable
confinement: strict

base: core18

parts:

  tdhnet:
    plugin: dump
    source: TdhNet_linux64.zip
    stage-packages:
      - libwxgtk3.0-0v5
      - libcairo2 

apps:
  tdhnet:
    command: TdhNet_launcher.sh 

plugs:
  # For snaps with a graphical user interface:
  desktop:
  desktop-legacy:
  x11:
  unity7:
  wayland: