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. qt fails to visualise application that is run on ubuntu 20.04 from macos
Forum Updated to NodeBB v4.3 + New Features

qt fails to visualise application that is run on ubuntu 20.04 from macos

Scheduled Pinned Locked Moved Unsolved General and Desktop
11 Posts 3 Posters 780 Views 1 Watching
  • 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.
  • Y Offline
    Y Offline
    yasabanabe
    wrote on last edited by
    #1

    Got keys from plugin meta data ("xcb")
    qt.qpa.xcb: could not connect to display
    qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
    I was able to workaround this by adding export DISPLAY=:0.0 and the applications is running but is not visualising

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      Set the QT_DEBUG_PLUGINS environment variable to 1 and start your application again without DISPLAY set. This will show you information about what is happening with the plugin.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • Y Offline
        Y Offline
        yasabanabe
        wrote on last edited by
        #3

        here is the output:
        QFactoryLoader::QFactoryLoader() checking directory path "/opt/gitAhead/GitAhead/Plugins/platforms" ...
        QFactoryLoader::QFactoryLoader() looking at "/opt/gitAhead/GitAhead/Plugins/platforms/libqxcb.so"
        Found metadata in lib /opt/gitAhead/GitAhead/Plugins/platforms/libqxcb.so, metadata=
        {
        "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
        "MetaData": {
        "Keys": [
        "xcb"
        ]
        },
        "archreq": 0,
        "className": "QXcbIntegrationPlugin",
        "debug": false,
        "version": 330752
        }

        Got keys from plugin meta data ("xcb")
        QFactoryLoader::QFactoryLoader() checking directory path "/opt/gitAhead/GitAhead/platforms" ...
        loaded library "/opt/gitAhead/GitAhead/Plugins/platforms/libqxcb.so"
        qt.qpa.xcb: could not connect to display
        qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
        This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

        Available platform plugins are: xcb.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Do you have an X server running ?
          Are you on Wayland ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • Y Offline
            Y Offline
            yasabanabe
            wrote on last edited by yasabanabe
            #5

            @SGaist said in qt fails to visualise application that is run on ubuntu 20.04 from macos:

            Wayland

            I am using tty
            I have no problems with ssh X for ubuntu to ubuntu

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              Sorry, I missed the macOS part.

              Did you install Xquartz on your Mac ?

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              Y 1 Reply Last reply
              2
              • JoeCFDJ Offline
                JoeCFDJ Offline
                JoeCFD
                wrote on last edited by
                #7
                This post is deleted!
                1 Reply Last reply
                0
                • SGaistS SGaist

                  Sorry, I missed the macOS part.

                  Did you install Xquartz on your Mac ?

                  Y Offline
                  Y Offline
                  yasabanabe
                  wrote on last edited by
                  #8

                  @SGaist
                  when I run it with XQuartz I get:
                  error: No matching fbConfigs or visuals found
                  libGL error: failed to load driver: swrast

                  1 Reply Last reply
                  0
                  • SGaistS Offline
                    SGaistS Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on last edited by
                    #9

                    Did you restart your machine after installing Xquartz ?

                    Interested in AI ? www.idiap.ch
                    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                    1 Reply Last reply
                    0
                    • Y Offline
                      Y Offline
                      yasabanabe
                      wrote on last edited by
                      #10

                      I fixed it, there were some issued with the Debian packages and now it works fine. I have to install them again

                      1 Reply Last reply
                      1
                      • SGaistS Offline
                        SGaistS Offline
                        SGaist
                        Lifetime Qt Champion
                        wrote on last edited by
                        #11

                        Which one did you need to reinstall ?

                        Interested in AI ? www.idiap.ch
                        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                        1 Reply Last reply
                        0

                        • Login

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