Qt Forum

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

    Call for Presentations - Qt World Summit

    Unsolved qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.

    Installation and Deployment
    3
    15
    354
    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.
    • A
      austom last edited by

      @austom said in qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.:

      QFactoryLoader::QFactoryLoader() looking at "/data/home/ldx022/miniconda3/envs/bio/plugins/platforms/libxcb-icccm.so.4"
      QElfParser: '/data/home/ldx022/miniconda3/envs/bio/plugins/platforms/libxcb-icccm.so.4' is not an ELF object (file too small)
      "'/data/home/ldx022/miniconda3/envs/bio/plugins/platforms/libxcb-icccm.so.4' is not an ELF object (file too small)"
      not a plugin

      Thank you for your reply.
      You mean this section?
      2c25a122-b690-47de-af7e-feefd8a09b88-image.png

      I have created a corresponding soft link for libxcb-icccm.so.4 to the corresponding file in the corresponding folder.But it doesn't work at all.
      5d2688be-37bc-4464-bc8b-1211cd70956b-image.png

      1 Reply Last reply Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        You should rather check your conda environment. That library should not be broken inside it.

        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 Reply Quote 0
        • A
          austom last edited by

          e372a61a-0ee3-40f0-9853-486d196d611b-image.png
          The environment variables look like this, but I still can't find what went wrong.

          1 Reply Last reply Reply Quote 0
          • SGaist
            SGaist Lifetime Qt Champion last edited by

            Not the environment variables, the conda environment content itself.

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

            A 1 Reply Last reply Reply Quote 0
            • A
              austom @SGaist last edited by

              @SGaist
              Sorry I misunderstood.But how to check if there is a problem with the library?
              533ca26c-ab15-484c-97d7-2aada235cd38-image.png
              e0b3a415-49e2-4942-b3c2-1f57dd04f8a5-image.png
              I also created soft links in it.But that doesn't seem to work

              1 Reply Last reply Reply Quote 0
              • SGaist
                SGaist Lifetime Qt Champion last edited by

                The main issue from your picture seems that the library seems to be missing. You only have one link and not the final library itself.

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

                A 1 Reply Last reply Reply Quote 0
                • A
                  austom @SGaist last edited by

                  @SGaist
                  I have downloaded the .rpm file and use the following command to install it.

                  rpm2cpio XCB util - wm - 0.4.1-5. El7. Aarch64. RPM | cpio - idvm
                  

                  But I didn't instaill it in the conda.Should I install them in the conda environment?
                  ed48ad87-78dc-48b7-9968-ca2a4365d4a7-image.png

                  1 Reply Last reply Reply Quote 0
                  • SGaist
                    SGaist Lifetime Qt Champion last edited by

                    Wait, the original error was that there was an issue with the library file. Now you are modifying your system installation while I am suggesting to check the content of your conda environment.

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

                    A 1 Reply Last reply Reply Quote 0
                    • A
                      austom @SGaist last edited by

                      @SGaist
                      You mean I can't use the soft link instead of original file in the conda environment?

                      1 Reply Last reply Reply Quote 0
                      • SGaist
                        SGaist Lifetime Qt Champion last edited by

                        No, I mean you should search why your environment was corrupted rather than trying to force it working using libraires from somewhere else.

                        One simple way would be to create a new environment from scratch to see if you have the same issue.

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

                        A 1 Reply Last reply Reply Quote 0
                        • A
                          austom @SGaist last edited by

                          @SGaist I have created a new conda environment. But the problem remains unresolved.The entire process of creating an environment from scratch is as follows.
                          11b3a05f-b9a8-4421-84f0-d862a02e98f4-image.png
                          367296fe-b7aa-4e07-892e-ec831f38f6b9-image.png
                          249ba189-3392-43b2-84cd-100fccfab52e-image.png
                          a25c8969-b1da-4cf3-aa13-be7546284442-image.png

                          1 Reply Last reply Reply Quote 0
                          • SGaist
                            SGaist Lifetime Qt Champion last edited by

                            Please stop installing system packages in your conda environment. The goal of a new environnement is to start debugging your issue from scratch.

                            So please, create a new environment without installing anything other than conda packages.

                            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 Reply Quote 0
                            • A
                              alex smith last edited by

                              On Linux, the xcb QPA (Qt Platform Abstraction) platform plugin is used. It provides the basic functionality needed by Qt GUI and Qt Widgets to run against X11. Its library dependencies are described the following table..

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