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. ERROR: Feature 'xcb' was enabled, but the pre-condition 'libs.xcb' failed
Forum Updated to NodeBB v4.3 + New Features

ERROR: Feature 'xcb' was enabled, but the pre-condition 'libs.xcb' failed

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
9 Posts 3 Posters 6.8k 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.
  • S Offline
    S Offline
    Sukdev
    wrote on last edited by
    #1

    Hi There,
    i am facing this issue while building Qt Sources version 5.9.7 statically.
    i want know why error occurred and how to resolve this issue?

    i tried to install X11 Requirement then also configured it but still facing the same issue.?

    please help with this issue

    Thanks in Advance

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

      Hi,

      Did you re-run configure from a clean state ?

      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
      • S Offline
        S Offline
        Sukdev
        wrote on last edited by
        #3

        Yes, I tried it from the clean state but it doesn't resolve. Gives the same error.!

        0_1554447695521_xcberror.PNG

        1 Reply Last reply
        0
        • S Offline
          S Offline
          Sukdev
          wrote on last edited by Sukdev
          #4

          After deleting the Configuration files and configure again, the error resolved. but i am getting another error while building qt src 5.9.7 on Ubuntu 16.04.

          • [module declarative make first] Error 2
            Even I have tried to installed the qtdeclarative5-dev and qtdeclarative5-private-dev libraries and build again but give the same errors.

          sudo ./configure -prefix $PWD/5.9.7 -release -static -accessibility -qt-zlib -qt-libpng -qt-libjpeg -qt-xcb -qt-pcre -qt-freetype -no-glib -no-cups -no-sql-sqlite -no-opengl -no-egl -no-xinput2 -no-sm -no-icu -nomake examples -nomake tests -skip qtactiveqt -skip qtenginio -skip qtlocation -skip qtmultimedia -skip qtserialport -skip qtquick1 -skip qtquickcontrols -skip qtscript -skip qtsensors -skip qtwebsockets -skip qtxmlpatterns -skip qt3d

          0_1554466595687_qml_error.PNG

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

            First thing, don't use sudo, there's no need for that.

            Then I would rather do an out of source build with qtbase only and then go on with the rest.

            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
            • S Offline
              S Offline
              Sukdev
              wrote on last edited by
              #6

              @SGaist said in ERROR: Feature 'xcb' was enabled, but the pre-condition 'libs.xcb' failed:

              ther do an out o

              Could you please update more in details would be helpful.

              jsulmJ 1 Reply Last reply
              0
              • S Sukdev

                @SGaist said in ERROR: Feature 'xcb' was enabled, but the pre-condition 'libs.xcb' failed:

                ther do an out o

                Could you please update more in details would be helpful.

                jsulmJ Offline
                jsulmJ Offline
                jsulm
                Lifetime Qt Champion
                wrote on last edited by
                #7

                @Sukdev Out of source build:

                mkdir /home/USER/build
                cd /home/USER/build
                PATH_TO_QT_SOURCES/qtbase/configure ...
                make
                make install
                

                Basically, you don't build inside source code directory.

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

                1 Reply Last reply
                0
                • S Offline
                  S Offline
                  Sukdev
                  wrote on last edited by Sukdev
                  #8

                  Thanks, it's resolved now with building fresh qt src packages and by removing sudo ...

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

                    Good !

                    Then please mark the thread as solved using the "Topic Tools" button so that other forum users may know a solution has been found :)

                    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