QDesktopServices::openUrl error linux
-
wrote on 23 Dec 2022, 09:52 last edited by
Hello.
I have the following code:
void foo(const QUrl &url) { QDesktopServices::openUrl(url); } // ... foo(QUrl("https://www.google.com/"));
On Windows it works just fine, but in case of running it on Linux Ubuntu 20.04.5 LTS it results in such an error:
XPCOMGlueLoad error for file /usr/lib/firefox/libmozgtk.so: /lib/x86_64-linux-gnu/libgdk-3.so.0: undefined symbol: XmbSetWMProperties Couldn't load XPCOM.
I thought it may be an issue with Firefox and tested it with Chrome (made it the default browser), but I get a similar error:
/usr/bin/google-chrome-stable: symbol lookup error: /usr/bin/google-chrome-stable: undefined symbol: Xutf8TextPropertyToTextList
-
wrote on 24 Dec 2022, 10:40 last edited by
Do either of those browsers work outside Qt?
Both are failing for missing libraries. Both fnctions come from libX11. Installed?
Firefox may be complicated because the default Ubuntu version is a snap package.
1/2