Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. installed app cannot find or load plugin "xcb"
Forum Updated to NodeBB v4.3 + New Features

installed app cannot find or load plugin "xcb"

Scheduled Pinned Locked Moved Solved Installation and Deployment
13 Posts 3 Posters 6.2k Views 2 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.
  • SGaistS Offline
    SGaistS Offline
    SGaist
    Lifetime Qt Champion
    wrote on last edited by
    #4

    Unless I'm mistaken, if the package has been properly built, it should pull in the dependencies it needs thus Qt 5. If not you should rather install the Qt 5 from your distribution, it's likely the one that was used to build Scribus.

    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
    • E Offline
      E Offline
      eureka
      wrote on last edited by
      #5

      I have another clue I'm following ..

      When I set env var QT_DEBUG_PLUGINS=1
      and run scribus-ng
      I get

      QFactoryLoader::QFactoryLoader() checking directory path "/usr/bin/platforms" ...
      This application failed to start because it could not find or load the Qt platform plugin "xcb".

      This looks odd .. since I do not have any directory path "/usr/bin/platforms"
      and in fact xcb plugin is in /opt/q55/plugins/platforms/libqxcb.so

      So it seems that an incorrect path to plugin is being used (perhaps from my ~/.profile settings .. I don't know yet).

      That debug option is useful.

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

        Again: since you are using a package built for Ubuntu, why not just install Qt 5 from their repositories ?

        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
        • E Offline
          E Offline
          eureka
          wrote on last edited by eureka
          #7

          I edited env vars in ~./profile and finally got this debug output ...

          In /opt/qt55/plugins/platforms/libqxcb.so:
          Plugin uses incompatible Qt library (5.5.1) [release]
          "The plugin '/opt/qt55/plugins/platforms/libqxcb.so' uses incompatible Qt library. (5.5.1) [release]"
          not a plugin
          This application failed to start because it could not find or load the Qt platform plugin "xcb".

          ....

          Regarding installing Qt 5 from Scribus repositories .. that suggestion I don't understand since I already have previously installed Qt 5.5.1. But I'll now follow up what version they use for building Scribus and install two versions of Qt .. using qtchooser to switch.

          I believe it is Qt 5.2 from reading here ...

          http://wiki.scribus.net/canvas/Building_SVN_versions_with_CMake

          [Edit]
          In fact the above wiki says "Starting with rev. 19790 (4 February 2015), Qt 5.2 or later is required." So why do I need to change my installed Qt 5.5.1?

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

            I didn't say that you should install Qt 5 from the Scribus PPA, I asked you why you didn't use the Qt 5 that is made available by your distribution which is likely the Qt used to build the Scribus package you are using.

            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
            • E Offline
              E Offline
              eureka
              wrote on last edited by eureka
              #9

              @SGaist said:

              I asked you why you didn't use the Qt 5 that is made available by your distribution which is likely the Qt used to build the Scribus package you are using.

              For clarification .. I am not trying to build Scribus from source using the Qt version (5.5.1) which I have previously installed.

              I am simply trying to launch a pre-built executable of scribus-ng which was installed in /usr/bin/scribus.ng from PPA repo. An earlier version scribus (also an executable) works fine without errors.

              I get the errors (reported earlier) when I try to run scribus-ng from command line.

              [reason for editing .. corrected 5.4.1 to 5.5.1]

              1 Reply Last reply
              0
              • JKSHJ Offline
                JKSHJ Offline
                JKSH
                Moderators
                wrote on last edited by
                #10

                @eureka said:

                @SGaist said:

                I asked you why you didn't use the Qt 5 that is made available by your distribution which is likely the Qt used to build the Scribus package you are using.

                For clarification .. I am not trying to build Scribus from source using the Qt version (5.4.1) which I have previously installed.

                I am simply trying to launch a pre-built executable of scribus-ng which was installed in /usr/bin/scribus.ng from PPA repo.

                I believe @SGaist is suggesting that you install Qt 5 from the official Ubuntu repo. Perhaps Sribus is searching the official Ubuntu paths, but not your custom-installed path.

                An earlier version scribus (also an executable) works fine without errors.

                How did you get this earlier version? Was it from the same PPA repo?

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

                1 Reply Last reply
                0
                • E Offline
                  E Offline
                  eureka
                  wrote on last edited by eureka
                  #11

                  Sorry for my misunderstanding .. here is my explanation ..

                  • Ubuntu 14.04 repo stops at Qt 5.2.1 although all qt5 packages were installed according to this
                    http://askubuntu.com/questions/508503/whats-the-development-package-for-qt5-in-14-04

                  • I required PyQt + eric6 IDE but eric6 (installed with Ubuntu version of Qt 5.2.1) reported .. "Sorry, you must have Qt version 4.8.0 or better or 5.3.0 or better".
                    This is why Qt 5.5.1 was installed separately and manually into /opt/q55.

                  • Earlier (working) version of scribus was installed from Ubuntu repo.

                  • Most confusing (to me) since I thought that scribus-ng would have bundled its libraries/plugins to allow it to launch independently of any Qt installation.

                  JKSHJ 1 Reply Last reply
                  0
                  • E eureka

                    Sorry for my misunderstanding .. here is my explanation ..

                    • Ubuntu 14.04 repo stops at Qt 5.2.1 although all qt5 packages were installed according to this
                      http://askubuntu.com/questions/508503/whats-the-development-package-for-qt5-in-14-04

                    • I required PyQt + eric6 IDE but eric6 (installed with Ubuntu version of Qt 5.2.1) reported .. "Sorry, you must have Qt version 4.8.0 or better or 5.3.0 or better".
                      This is why Qt 5.5.1 was installed separately and manually into /opt/q55.

                    • Earlier (working) version of scribus was installed from Ubuntu repo.

                    • Most confusing (to me) since I thought that scribus-ng would have bundled its libraries/plugins to allow it to launch independently of any Qt installation.

                    JKSHJ Offline
                    JKSHJ Offline
                    JKSH
                    Moderators
                    wrote on last edited by
                    #12

                    @eureka said:

                    • Earlier (working) version of scribus was installed from Ubuntu repo.

                    • Most confusing (to me) since I thought that scribus-ng would have bundled its libraries/plugins to allow it to launch independently of any Qt installation.

                    I see. So the old version and new version were packaged by different people. I think that means the 2 versions look for Qt in different places.

                    Have you tried asking the PPA author how he/she configured Qt?

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

                    1 Reply Last reply
                    0
                    • E Offline
                      E Offline
                      eureka
                      wrote on last edited by
                      #13

                      Completing the story. Eventually I got myself out of this hole by ...

                      (a) adding a qt.conf file to same location as scribus-ng and scribus-trunk binaries (/usr/bin)

                      [Paths]
                      Prefix= ../../opt/qt55
                      Translations=i18n
                      Libraries=lib
                      Plugins=plugins

                      (b) adding Qt paths to ~/.profile

                      export PATH="/opt/qt55/bin":$PATH
                      export LD_LIBRARY_PATH="/opt/qt55/lib":${LD_LIBRARY_PATH}

                      (c) reboot

                      Thanks for advice.

                      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