Wxwidgets libraries

Can anyone provide sample yaml code that includes the wxwdigets package in a snap. my attempt is as follows:

plugin: dump
source: TdhCad_linux64.zip
- libwxgtk3.0-0v5
- libcairo2-dev

but running the snap produces:

error while loading shared libraries: libwx_gtk2u_adv-3.0.so.0: cannot open shared object file: No such file or directory.


1 Like

after much hair pulling, i have found i only needed to add:

plugs: [home, desktop]

Please surround your code with the fenced code block markup for proper formatting, preferably with code highlighting via:

your code here

This is due to the fact that Ubuntu 16.04 only ships GTK3 build of wxWidgets instead of GTK2, you have to ship a GTK2 distribution manually.

UPDATE: It appears that Ubuntu ships both in the same package so that’s not a problem.