Page 1 of 1

PB6.21 - WebViewGadget Linux distribution question

Posted: Tue Nov 18, 2025 10:40 am
by Kukulkan
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...

Re: PB6.21 - WebViewGadget Linux distribution question

Posted: Tue Nov 18, 2025 12:43 pm
by mk-soft
General disadvantage of Linux and backward compatibility.
Therefore, different versions of LibreOffice or Firefox are provided for different Linux kernels.

Re: PB6.21 - WebViewGadget Linux distribution question

Posted: Tue Nov 18, 2025 2:11 pm
by Fred
I think you could try to look at the snap package format, it should be self packaged and run everywhere. VSCode uses this IIRC and it works pretty well

Re: PB6.21 - WebViewGadget Linux distribution question

Posted: Tue Nov 18, 2025 2:43 pm
by Kukulkan
Thanks. So this is an issue.

Before considering Snap I would rather go the AppImage way. I will have to dig in deeper...

Re: PB6.21 - WebViewGadget Linux distribution question

Posted: Tue Nov 18, 2025 2:48 pm
by Fred