PB6.21 - WebViewGadget Linux distribution question
Posted: Tue Nov 18, 2025 10:40 am
If using the GTK version of PureBasic to compile a program which is using the WebViewgadget, I have issues compliling executables that always work.
If I compile on Ubuntu 18, it has libwebview2gtk-4.0 dependency and if I compile on Ubuntu 24, it has libwebview2gtk-4.1. Due to this, the executable is either not running on the one or other system and most distributions with libwebview2gtk-4.1 do not allow installation or downgrade to libwebview2gtk-4.0.
So it looks like I have to distribute and build two versions, which is annoying.
Has anyone already solved this issue or has any tipps on distribution which avoids the need to compile two versions on two different OS? This is a lot of work I try to avoid...
If I compile on Ubuntu 18, it has libwebview2gtk-4.0 dependency and if I compile on Ubuntu 24, it has libwebview2gtk-4.1. Due to this, the executable is either not running on the one or other system and most distributions with libwebview2gtk-4.1 do not allow installation or downgrade to libwebview2gtk-4.0.
So it looks like I have to distribute and build two versions, which is annoying.
Has anyone already solved this issue or has any tipps on distribution which avoids the need to compile two versions on two different OS? This is a lot of work I try to avoid...