I’m trying to compile and package the most simple example of a gtk/webkit use (the one from the webkit page itself). But i don’t get it going. I need core20 base image so no extensions are here to help me. Additional question: Can’t we use the gtk and webkit tutorial examples as mandatory test cases for snapcraft releases?
I followed the tip on this forum to use to get rid of the link loading error.
passthrough:
layout:
/usr/lib/x86_64-linux-gnu/webkit2gtk-4.0:
bind: $SNAP/usr/lib/x86_64-linux-gnu/webkit2gtk-4.0
But i still see this
(process:306406): Gtk-WARNING **: 01:23:37.577: Locale not supported by C library.
Using the fallback 'C' locale.
Gtk-Message: 01:23:37.798: Failed to load module "canberra-gtk-module"
Gtk-Message: 01:23:37.806: Failed to load module "canberra-gtk-module"
and then the webview widget is white and empty.
parts:
main:
plugin: cmake
source: .
build-packages:
- ruby
- gcc
- g++
- cmake
- sed
- pkg-config
- tree
- libgtk-3-dev
- libwebkit2gtk-4.0-dev
- libgdk-pixbuf2.0-dev
cmake-parameters:
- -DCMAKE_INSTALL_PREFIX=/usr
- -DCMAKE_BUILD_TYPE=Release
- -DIWWB_BUILD_PACKAGE_SNAP:BOOLEAN=true
stage-packages:
- libgtk-3-0
- libwebkit2gtk-4.0-37
- libgdk-pixbuf2.0-0
- libcanberra-gtk3-0
- libcanberra-gtk3-module