PB6.21 - WebViewGadget Linux distribution question

Linux specific forum
User avatar
Kukulkan
Addict
Addict
Posts: 1415
Joined: Mon Jun 06, 2005 2:35 pm
Location: germany
Contact:

PB6.21 - WebViewGadget Linux distribution question

Post 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...
User avatar
mk-soft
Always Here
Always Here
Posts: 6390
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: PB6.21 - WebViewGadget Linux distribution question

Post by mk-soft »

General disadvantage of Linux and backward compatibility.
Therefore, different versions of LibreOffice or Firefox are provided for different Linux kernels.
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
Fred
Administrator
Administrator
Posts: 18383
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: PB6.21 - WebViewGadget Linux distribution question

Post 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
User avatar
Kukulkan
Addict
Addict
Posts: 1415
Joined: Mon Jun 06, 2005 2:35 pm
Location: germany
Contact:

Re: PB6.21 - WebViewGadget Linux distribution question

Post 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...
Fred
Administrator
Administrator
Posts: 18383
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: PB6.21 - WebViewGadget Linux distribution question

Post by Fred »

Post Reply