WebGadget on Ubuntu 20.04 (libwebkitgtk-3.0-0 missing)

Post bugreports for the Linux version here
User avatar
langinagel
Enthusiast
Enthusiast
Posts: 129
Joined: Fri Jan 28, 2005 11:53 pm
Location: Germany
Contact:

Re: WebGadget on Ubuntu 20.04 (libwebkitgtk-3.0-0 missing)

Post by langinagel »

Hi Timo,

I do not use webgadget() or dialog library in my program.

But I removed libwebkitgtk-3.0-0 on the old 18.04 environment and tried a compilation:

GadgetWeb.a(WebGadget.o): In Funktion »NavigationPolicyCallback«:
WebGadget.c:(.text+0x37): Warnung: undefinierter Verweis auf »webkit_network_request_get_uri«
WebGadget.c:(.text+0x67): Warnung: undefinierter Verweis auf »webkit_web_policy_decision_ignore«
WebGadget.c:(.text+0x91): Warnung: undefinierter Verweis auf »webkit_web_policy_decision_use«
GadgetWeb.a(WebGadget.o): In Funktion »WindowPolicyCallback«:
WebGadget.c:(.text+0x11e): Warnung: undefinierter Verweis auf »webkit_web_policy_decision_ignore«
GadgetWeb.a(WebGadget.o): In Funktion »GetGadgetItemText«:
...
collect2: error: ld returned 1 exit status

After reinstall of libwebgadget-3.0-dev all seems fine again, compilation completed.

Sorry, i am pretty sure that there are some other dependencies. Could you please check?

Greetings
LN
https://www.doerpsoft.org

Boost. Work. Efficiency.
freak
PureBasic Team
PureBasic Team
Posts: 5829
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Re: WebGadget on Ubuntu 20.04 (libwebkitgtk-3.0-0 missing)

Post by freak »

Your error output clearly shows that the WebGadget() command is used. Either directly or indirectly (through the dialog library). There are no other dependencies to this library.
quidquid Latine dictum sit altum videtur
User avatar
Kukulkan
Addict
Addict
Posts: 1261
Joined: Mon Jun 06, 2005 2:35 pm
Location: germany
Contact:

Re: WebGadget on Ubuntu 20.04 (libwebkitgtk-3.0-0 missing)

Post by Kukulkan »

My finding was that using the XML Dialogs is sufficient to create the dependency. Even if no WebGadget is used.
User avatar
langinagel
Enthusiast
Enthusiast
Posts: 129
Joined: Fri Jan 28, 2005 11:53 pm
Location: Germany
Contact:

Re: WebGadget on Ubuntu 20.04 (libwebkitgtk-3.0-0 missing)

Post by langinagel »

I do not use webgadget() nor the dialog library.

But I do have the XML-library in use. Is there a cross-dependency?
And there are one or more Message- and other requesters in use. Do they use the dialog library?

LN
https://www.doerpsoft.org

Boost. Work. Efficiency.
User avatar
langinagel
Enthusiast
Enthusiast
Posts: 129
Joined: Fri Jan 28, 2005 11:53 pm
Location: Germany
Contact:

Re: WebGadget on Ubuntu 20.04 (libwebkitgtk-3.0-0 missing)

Post by langinagel »

OK,
I have to admit I found the webgadget() function in my code (deep inside, nearly forgotten).

Timo, you were right.

And I tried QT for the webkit. It compiles and runs.

Looks for me like my problem is solved....

...and yes, I have to admit: the error was in front of the monitor !

Greetings
LN
https://www.doerpsoft.org

Boost. Work. Efficiency.
User avatar
langinagel
Enthusiast
Enthusiast
Posts: 129
Joined: Fri Jan 28, 2005 11:53 pm
Location: Germany
Contact:

Re: WebGadget on Ubuntu 20.04 (libwebkitgtk-3.0-0 missing)

Post by langinagel »

OK, problem solved for Ubuntu with Qt installed.

But Fedora (RPM based distro) makes again troubles in finding special Qt-libs, e.g.

requiring: libqt5webkitwidgets5-5.

RPMfind yields to libqt5webkitwidgets5-5.212.20200910-1-omv4002.i686.rpm

So i installed the downloaded RPM locally:

sudo yum -y localinstall libqt5webkitwidgets5-5.212.20200910-1-omv4002.i686.rpm
with the output:
Problem: conflicting requests
- nothing provides libQt5Core.so.5(Qt_5.15) needed by libqt5webkitwidgets5-5.212.20200910-1.i686

So my question is:
what are the Linux RPMs required by Purebasic for Qt ?

Greetings
LN
https://www.doerpsoft.org

Boost. Work. Efficiency.
User avatar
Didelphodon
PureBasic Expert
PureBasic Expert
Posts: 443
Joined: Sat Dec 18, 2004 11:56 am
Location: Vienna - Austria
Contact:

Re: WebGadget on Ubuntu 20.04 (libwebkitgtk-3.0-0 missing)

Post by Didelphodon »

As a temporary ugly work-around to run your already compiled programs, the following steps should work - at least it did in my case:

On your Ubuntu open a console window and do the following:

Run your already built program:

Code: Select all

./myprogram
This should lead to an output similar to this:

Code: Select all

./myprogram: error while loading shared libraries: libwebkitgtk-3.0.so.0: cannot open shared object file: No such file or directory
Now switch to gnu-libs folder:

Code: Select all

cd /usr/lib/x86_64-linux-gnu
Find the installed webkit lib there:

Code: Select all

ls -la libwebkit*
This should lead to an output similar to this:

Code: Select all

lrwxrwxrwx 1 root root       28 Feb 15 08:17 libwebkit2gtk-4.0.so.37 -> libwebkit2gtk-4.0.so.37.49.9
-rw-r--r-- 1 root root 56560456 Feb 15 08:17 libwebkit2gtk-4.0.so.37.49.9
Now here's the actual work-around: From what we've found out so far we construct/add a legacy link for the already existing most recent one (the line with "->" in it):

Code: Select all

sudo ln libwebkit2gtk-4.0.so.37 libwebkitgtk-3.0.so.0
Let's check if the legacy link is in place:

Code: Select all

ls -la libwebkit*
This should lead to an output similar to this:

Code: Select all

lrwxrwxrwx 2 root root       28 Feb 15 08:17 libwebkit2gtk-4.0.so.37 -> libwebkit2gtk-4.0.so.37.49.9
-rw-r--r-- 1 root root 56560456 Feb 15 08:17 libwebkit2gtk-4.0.so.37.49.9
lrwxrwxrwx 2 root root       28 Feb 15 08:17 libwebkitgtk-3.0.so.0 -> libwebkit2gtk-4.0.so.37.49.9
Done! Try to run your program again. It should work now.

Keep in mind that this is an ugly work-around, but in my case it was absolutely necessary to at least have my program up and running again. Also note that with future updates you might have to update your legacy link, too.
Go, tell it on the mountains.
Post Reply