Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QDesktopServices::openUrl error linux
Forum Updated to NodeBB v4.3 + New Features

QDesktopServices::openUrl error linux

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 344 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sumstragol
    wrote on 23 Dec 2022, 09:52 last edited by
    #1

    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
    
    1 Reply Last reply
    0
    • C Offline
      C Offline
      ChrisW67
      wrote on 24 Dec 2022, 10:40 last edited by
      #2

      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 Reply Last reply
      0

      1/2

      23 Dec 2022, 09:52

      • Login

      • Login or register to search.
      1 out of 2
      • First post
        1/2
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved