Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct


    Qt World Summit: Early-Bird Tickets

    Unsolved Installation error

    Qt 6
    4
    9
    282
    Loading More Posts
    • 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.
    • N
      nikhilsarma- last edited by

      Today I installed qt 6.1 in my PC (red hat 8),so after finishing downloading and pressed on finish button ,default qt creator should open but it didn’t open ,so I tryed to open from my terminal and I getting this warning message and getting Abort

      Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway. 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.

      Can anyone please solve this problem for me,thanks in advance .

      JonB 1 Reply Last reply Reply Quote 0
      • JonB
        JonB @nikhilsarma- last edited by JonB

        @nikhilsarma
        Try Googling the error message, plenty of hits: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland.

        If that doesn't resolve, set environment variable QT_DEBUG_PLUGINS=1 and then run program, look at end of the diagnostic output you get.

        1 Reply Last reply Reply Quote 2
        • N
          nikhilsarma- last edited by

          sir after trying that i am getting this error,please solve this

          [nikhil@localhost bin]$ QT_DEBUG_PLUGINS=1 ./qtcreator
          Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
          QFactoryLoader::QFactoryLoader() checking directory path "/home/nikhil/Qt/Tools/QtCreator/lib/Qt/plugins/platforms" ...
          QFactoryLoader::QFactoryLoader() looking at "/home/nikhil/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqeglfs.so"
          Found metadata in lib /home/nikhil/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqeglfs.so, metadata=
          {
          "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
          "MetaData": {
          "Keys": [
          "eglfs"
          ]
          },
          "archreq": 0,
          "className": "QEglFSIntegrationPlugin",
          "debug": false,
          "version": 331520
          }

          Got keys from plugin meta data ("eglfs")
          QFactoryLoader::QFactoryLoader() looking at "/home/nikhil/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqlinuxfb.so"
          Found metadata in lib /home/nikhil/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqlinuxfb.so, metadata=
          {
          "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
          "MetaData": {
          "Keys": [
          "linuxfb"
          ]
          },
          "archreq": 0,
          "className": "QLinuxFbIntegrationPlugin",
          "debug": false,
          "version": 331520
          }

          Got keys from plugin meta data ("linuxfb")
          QFactoryLoader::QFactoryLoader() looking at "/home/nikhil/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqminimal.so"
          Found metadata in lib /home/nikhil/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqminimal.so, metadata=
          {
          "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
          "MetaData": {
          "Keys": [
          "minimal"
          ]
          },
          "archreq": 0,
          "className": "QMinimalIntegrationPlugin",
          "debug": false,
          "version": 331520
          }

          Got keys from plugin meta data ("minimal")
          QFactoryLoader::QFactoryLoader() looking at "/home/nikhil/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqminimalegl.so"
          Found metadata in lib /home/nikhil/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqminimalegl.so, metadata=
          {
          "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
          "MetaData": {
          "Keys": [
          "minimalegl"
          ]
          },
          "archreq": 0,
          "className": "QMinimalEglIntegrationPlugin",
          "debug": false,
          "version": 331520
          }

          Got keys from plugin meta data ("minimalegl")
          QFactoryLoader::QFactoryLoader() looking at "/home/nikhil/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqoffscreen.so"
          Found metadata in lib /home/nikhil/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqoffscreen.so, metadata=
          {
          "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
          "MetaData": {
          "Keys": [
          "offscreen"
          ]
          },
          "archreq": 0,
          "className": "QOffscreenIntegrationPlugin",
          "debug": false,
          "version": 331520
          }

          Got keys from plugin meta data ("offscreen")
          QFactoryLoader::QFactoryLoader() looking at "/home/nikhil/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqvnc.so"
          Found metadata in lib /home/nikhil/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqvnc.so, metadata=
          {
          "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
          "MetaData": {
          "Keys": [
          "vnc"
          ]
          },
          "archreq": 0,
          "className": "QVncIntegrationPlugin",
          "debug": false,
          "version": 331520
          }

          Got keys from plugin meta data ("vnc")
          QFactoryLoader::QFactoryLoader() looking at "/home/nikhil/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqxcb.so"
          Found metadata in lib /home/nikhil/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqxcb.so, metadata=
          {
          "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
          "MetaData": {
          "Keys": [
          "xcb"
          ]
          },
          "archreq": 0,
          "className": "QXcbIntegrationPlugin",
          "debug": false,
          "version": 331520
          }

          Got keys from plugin meta data ("xcb")
          QFactoryLoader::QFactoryLoader() checking directory path "/home/nikhil/Qt/Tools/QtCreator/bin/platforms" ...
          Cannot load library /home/nikhil/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqxcb.so: (libxcb-icccm.so.4: cannot open shared object file: No such file or directory)
          QLibraryPrivate::loadPlugin failed on "/home/nikhil/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqxcb.so" : "Cannot load library /home/nikhil/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqxcb.so: (libxcb-icccm.so.4: cannot open shared object file: No such file or directory)"
          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: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.

          Aborted (core dumped)

          JKSH 1 Reply Last reply Reply Quote 0
          • JKSH
            JKSH Moderators @nikhilsarma- last edited by

            @nikhilsarma said in Installation error:

            Cannot load library /home/nikhil/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqxcb.so: (libxcb-icccm.so.4: cannot open shared object file: No such file or directory)

            Your log says that libxcb-icccm.so is missing. So the solution is to install the missing library.

            Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

            1 Reply Last reply Reply Quote 3
            • N
              nikhilsarma- last edited by

              yes i installed that library,but still getting the same error ,please tell any other solution

              jsulm 1 Reply Last reply Reply Quote 0
              • jsulm
                jsulm Lifetime Qt Champion @nikhilsarma- last edited by

                @nikhilsarma said in Installation error:

                please tell any other solution

                There is no other solution.
                What exactly did you install and how (what is the name of the package you installed?)?
                Did you check whether you have libxcb-icccm.so ("find /usr -name libxcb-icccm.so")?

                https://forum.qt.io/topic/113070/qt-code-of-conduct

                1 Reply Last reply Reply Quote 0
                • N
                  nikhilsarma- last edited by JKSH

                  this is what i did ,sir

                  [root@localhost ~]#  yum install libxcb-icccm.so.4
                  Updating Subscription Management repositories.
                  Last metadata expiration check: 0:17:22 ago on Thursday 05 August 2021 09:26:12 AM IST.
                  Dependencies resolved.
                  ================================================================================
                   Package          Arch   Version         Repository                        Size
                  ================================================================================
                  Installing:
                   xcb-util-wm      i686   0.4.1-12.el8    rhel-8-for-x86_64-appstream-rpms  35 k
                  Installing dependencies:
                   glibc            i686   2.28-72.el8_1.1 rhel-8-for-x86_64-baseos-rpms    3.5 M
                   libXau           i686   1.0.8-13.el8    rhel-8-for-x86_64-appstream-rpms  36 k
                   libxcb           i686   1.13-5.el8      rhel-8-for-x86_64-appstream-rpms 249 k
                  Downgrading:
                   glibc            x86_64 2.28-72.el8_1.1 rhel-8-for-x86_64-baseos-rpms    3.7 M
                   glibc-common     x86_64 2.28-72.el8_1.1 rhel-8-for-x86_64-baseos-rpms    836 k
                   glibc-devel      x86_64 2.28-72.el8_1.1 rhel-8-for-x86_64-baseos-rpms    1.0 M
                   glibc-headers    x86_64 2.28-72.el8_1.1 rhel-8-for-x86_64-baseos-rpms    469 k
                   glibc-langpack-en
                                    x86_64 2.28-72.el8_1.1 rhel-8-for-x86_64-baseos-rpms    818 k
                   libXau           x86_64 1.0.8-13.el8    rhel-8-for-x86_64-appstream-rpms  36 k
                   libXau-devel     x86_64 1.0.8-13.el8    rhel-8-for-x86_64-appstream-rpms  20 k
                   libxcb           x86_64 1.13-5.el8      rhel-8-for-x86_64-appstream-rpms 230 k
                   libxcb-devel     x86_64 1.13-5.el8      rhel-8-for-x86_64-appstream-rpms 1.1 M
                  
                  Transaction Summary
                  ================================================================================
                  Install    4 Packages
                  Downgrade  9 Packages
                  
                  Total download size: 12 M
                  Is this ok [y/N]: y
                  Downloading Packages:
                  (1/13): libXau-1.0.8-13.el8.x86_64.rpm           11 kB/s |  36 kB     00:03    
                  (2/13): libxcb-1.13-5.el8.x86_64.rpm             58 kB/s | 230 kB     00:03    
                  (3/13): libxcb-devel-1.13-5.el8.x86_64.rpm      205 kB/s | 1.1 MB     00:05    
                  (4/13): libXau-devel-1.0.8-13.el8.x86_64.rpm    7.9 kB/s |  20 kB     00:02    
                  (5/13): glibc-langpack-en-2.28-72.el8_1.1.x86_6 1.2 MB/s | 818 kB     00:00    
                  (6/13): glibc-common-2.28-72.el8_1.1.x86_64.rpm 1.1 MB/s | 836 kB     00:00    
                  (7/13): glibc-headers-2.28-72.el8_1.1.x86_64.rp 180 kB/s | 469 kB     00:02    
                  (8/13): glibc-2.28-72.el8_1.1.x86_64.rpm        1.9 MB/s | 3.7 MB     00:01    
                  (9/13): libXau-1.0.8-13.el8.i686.rpm             14 kB/s |  36 kB     00:02    
                  (10/13): glibc-devel-2.28-72.el8_1.1.x86_64.rpm 309 kB/s | 1.0 MB     00:03    
                  (11/13): libxcb-1.13-5.el8.i686.rpm              90 kB/s | 249 kB     00:02    
                  (12/13): xcb-util-wm-0.4.1-12.el8.i686.rpm       14 kB/s |  35 kB     00:02    
                  (13/13): glibc-2.28-72.el8_1.1.i686.rpm         858 kB/s | 3.5 MB     00:04    
                  --------------------------------------------------------------------------------
                  Total                                           908 kB/s |  12 MB     00:13     
                  Running transaction check
                  Transaction check succeeded.
                  Running transaction test
                  Transaction test succeeded.
                  Running transaction
                    Preparing        :                                                        1/1 
                    Downgrading      : glibc-common-2.28-72.el8_1.1.x86_64                   1/22 
                    Running scriptlet: glibc-2.28-72.el8_1.1.x86_64                          2/22 
                    Downgrading      : glibc-2.28-72.el8_1.1.x86_64                          2/22 
                  warning: /etc/nsswitch.conf created as /etc/nsswitch.conf.rpmnew
                  
                    Running scriptlet: glibc-2.28-72.el8_1.1.x86_64                          2/22 
                    Downgrading      : glibc-langpack-en-2.28-72.el8_1.1.x86_64              3/22 
                    Downgrading      : libXau-1.0.8-13.el8.x86_64                            4/22 
                    Downgrading      : libxcb-1.13-5.el8.x86_64                              5/22 
                    Downgrading      : libXau-devel-1.0.8-13.el8.x86_64                      6/22 
                    Running scriptlet: glibc-headers-2.28-72.el8_1.1.x86_64                  7/22 
                    Downgrading      : glibc-headers-2.28-72.el8_1.1.x86_64                  7/22 
                    Running scriptlet: glibc-2.28-72.el8_1.1.i686                            8/22 
                    Installing       : glibc-2.28-72.el8_1.1.i686                            8/22 
                    Running scriptlet: glibc-2.28-72.el8_1.1.i686                            8/22 
                    Downgrading      : glibc-devel-2.28-72.el8_1.1.x86_64                    9/22 
                    Running scriptlet: glibc-devel-2.28-72.el8_1.1.x86_64                    9/22 
                    Downgrading      : libxcb-devel-1.13-5.el8.x86_64                       10/22 
                    Installing       : libXau-1.0.8-13.el8.i686                             11/22 
                    Installing       : libxcb-1.13-5.el8.i686                               12/22 
                    Installing       : xcb-util-wm-0.4.1-12.el8.i686                        13/22 
                    Running scriptlet: xcb-util-wm-0.4.1-12.el8.i686                        13/22 
                    Cleanup          : libxcb-devel-1.13.1-1.el8.x86_64                     14/22 
                    Running scriptlet: glibc-devel-2.28-151.el8.x86_64                      15/22 
                    Cleanup          : glibc-devel-2.28-151.el8.x86_64                      15/22 
                    Cleanup          : libXau-devel-1.0.9-3.el8.x86_64                      16/22 
                    Cleanup          : libxcb-1.13.1-1.el8.x86_64                           17/22 
                    Cleanup          : glibc-headers-2.28-151.el8.x86_64                    18/22 
                    Cleanup          : libXau-1.0.9-3.el8.x86_64                            19/22 
                    Cleanup          : glibc-common-2.28-151.el8.x86_64                     20/22 
                    Cleanup          : glibc-langpack-en-2.28-151.el8.x86_64                21/22 
                    Cleanup          : glibc-2.28-151.el8.x86_64                            22/22 
                    Running scriptlet: glibc-2.28-151.el8.x86_64                            22/22 
                    Running scriptlet: glibc-common-2.28-72.el8_1.1.x86_64                  22/22 
                    Verifying        : libXau-1.0.8-13.el8.x86_64                            1/22 
                    Verifying        : libXau-1.0.9-3.el8.x86_64                             2/22 
                    Verifying        : libxcb-devel-1.13-5.el8.x86_64                        3/22 
                    Verifying        : libxcb-devel-1.13.1-1.el8.x86_64                      4/22 
                    Verifying        : libxcb-1.13-5.el8.x86_64                              5/22 
                    Verifying        : libxcb-1.13.1-1.el8.x86_64                            6/22 
                    Verifying        : libXau-devel-1.0.8-13.el8.x86_64                      7/22 
                    Verifying        : libXau-devel-1.0.9-3.el8.x86_64                       8/22 
                    Verifying        : glibc-headers-2.28-72.el8_1.1.x86_64                  9/22 
                    Verifying        : glibc-headers-2.28-151.el8.x86_64                    10/22 
                    Verifying        : glibc-langpack-en-2.28-72.el8_1.1.x86_64             11/22 
                    Verifying        : glibc-langpack-en-2.28-151.el8.x86_64                12/22 
                    Verifying        : glibc-common-2.28-72.el8_1.1.x86_64                  13/22 
                    Verifying        : glibc-common-2.28-151.el8.x86_64                     14/22 
                    Verifying        : glibc-devel-2.28-72.el8_1.1.x86_64                   15/22 
                    Verifying        : glibc-devel-2.28-151.el8.x86_64                      16/22 
                    Verifying        : glibc-2.28-72.el8_1.1.x86_64                         17/22 
                    Verifying        : glibc-2.28-151.el8.x86_64                            18/22 
                    Verifying        : libXau-1.0.8-13.el8.i686                             19/22 
                    Verifying        : libxcb-1.13-5.el8.i686                               20/22 
                    Verifying        : xcb-util-wm-0.4.1-12.el8.i686                        21/22 
                    Verifying        : glibc-2.28-72.el8_1.1.i686                           22/22 
                  Installed products updated.
                  
                  Downgraded:
                    glibc-2.28-72.el8_1.1.x86_64             glibc-common-2.28-72.el8_1.1.x86_64 
                    glibc-devel-2.28-72.el8_1.1.x86_64       glibc-headers-2.28-72.el8_1.1.x86_64
                    glibc-langpack-en-2.28-72.el8_1.1.x86_64 libXau-1.0.8-13.el8.x86_64          
                    libXau-devel-1.0.8-13.el8.x86_64         libxcb-1.13-5.el8.x86_64            
                    libxcb-devel-1.13-5.el8.x86_64          
                  
                  Installed:
                    glibc-2.28-72.el8_1.1.i686    libXau-1.0.8-13.el8.i686 libxcb-1.13-5.el8.i686
                    xcb-util-wm-0.4.1-12.el8.i686
                  
                  Complete!
                  
                  jsulm JKSH 2 Replies Last reply Reply Quote 0
                  • jsulm
                    jsulm Lifetime Qt Champion @nikhilsarma- last edited by

                    @nikhilsarma What does

                    find /usr -name libxcb-icccm*
                    

                    output?

                    Also

                    Installed:
                    glibc-2.28-72.el8_1.1.i686 libXau-1.0.8-13.el8.i686 libxcb-1.13-5.el8.i686
                    xcb-util-wm-0.4.1-12.el8.i686
                    

                    indicates that x86 packages were installed, not x86_64 which is strange.

                    https://forum.qt.io/topic/113070/qt-code-of-conduct

                    1 Reply Last reply Reply Quote 2
                    • JKSH
                      JKSH Moderators @nikhilsarma- last edited by JKSH

                      @nikhilsarma said in Installation error:

                      ================================================================================
                       Package          Arch   Version         Repository                        Size
                      ================================================================================
                      Installing:
                       xcb-util-wm      i686   0.4.1-12.el8    rhel-8-for-x86_64-appstream-rpms  35 k
                      Installing dependencies:
                       glibc            i686   2.28-72.el8_1.1 rhel-8-for-x86_64-baseos-rpms    3.5 M
                       libXau           i686   1.0.8-13.el8    rhel-8-for-x86_64-appstream-rpms  36 k
                       libxcb           i686   1.13-5.el8      rhel-8-for-x86_64-appstream-rpms 249 k
                      

                      Wrong architecture, like @jsulm said. You want to install x86_64 packages, not i686 packages.

                      Uninstall these 32-bit packages and try again.

                      Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                      1 Reply Last reply Reply Quote 2
                      • First post
                        Last post