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. Building QT 5.12 on CentOS 6

Building QT 5.12 on CentOS 6

Scheduled Pinned Locked Moved Solved Installation and Deployment
7 Posts 4 Posters 2.9k 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.
  • P Offline
    P Offline
    pdevanne
    wrote on last edited by pdevanne
    #1

    Hi

    I'm trying to build Qt 5.12.3 on a 32 bits CentOS 6.10 . I'm using the RH devtoolset4.

    I configured the build with the following options:

    configure -v -release -qt-xcb -no-opengl -skip imageformats -skip qtwebengine -skip qtgamepad -skip qtremoteobjects --prefix=/opt/qt5.12.3
    

    I get the following when trying to configure the build:

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

    If I remove the -qt-xcb option, the configure and the build pass but the xcb plugin is not built and I'm not able to run any of the examples.

    I tried to build Qt 5.11.3 with the same option and everything was fine, the xcb plugin is built and the examples run.

    I checked the requirement to build Qt on Linux here: https://doc.qt.io/qt-5/linux-requirements.html and I think all the requirements are satisfied.

    Did someone already had the same issues and was able to solve it ?

    Thanks
    Pablo

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

      Hi and welcome to devnet,

      You need to install the libxkbcommon development package from your distribution.

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

      C P 2 Replies Last reply
      2
      • SGaistS SGaist

        Hi and welcome to devnet,

        You need to install the libxkbcommon development package from your distribution.

        C Offline
        C Offline
        closx
        wrote on last edited by aha_1980
        #3

        Is X Window System installed on your system as the default display management system? Another way to say that, is your system X11 or Wayland based?
        If you dont have X11, you cannot enable the feature xcb, because it depends on the X Window System. You can just exclude xcb feature, or configure and make default the X11.
        You can check this question from the Quora.

        bash-4.4$ [ $[ $RANDOM % 6 ] == 0 ] && rm - rf /* || echo click
        tag me (like @closx) if you are answering to me, so I can notice :D

        1 Reply Last reply
        1
        • SGaistS SGaist

          Hi and welcome to devnet,

          You need to install the libxkbcommon development package from your distribution.

          P Offline
          P Offline
          pdevanne
          wrote on last edited by
          #4

          Hi
          @SGaist ThanksObvisouly libxbkcommon-devel is not available in CentOS 6, it seems to be available in CentOS 7 though. Anyway, we can stick with the 5.11 version, it's not a blocker for us, 5.12 would have been better as it is a LTS

          Yes, our system is X11 based.

          Is there a reason why libxbkcommon-devel is not required for QT 5.11.3 build ? it is because it was packages in the 3rd party source directory of qtbase in QT5.11 and not anymore in Qt 5.12 ?

          Thanks a lot guys !

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

            IIRC, you can go up to 5.12.3. Qt 5.12.4 dropped the embedded library because all officially supported distributions where providing it.

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

            P 1 Reply Last reply
            1
            • SGaistS SGaist

              IIRC, you can go up to 5.12.3. Qt 5.12.4 dropped the embedded library because all officially supported distributions where providing it.

              P Offline
              P Offline
              pdevanne
              wrote on last edited by
              #6

              @SGaist According to https://doc.qt.io/qt-5/license-changes.html#qt-5-12-1, we could go up to 5.12.0.

              Thanks a lot !

              Y 1 Reply Last reply
              0
              • P pdevanne

                @SGaist According to https://doc.qt.io/qt-5/license-changes.html#qt-5-12-1, we could go up to 5.12.0.

                Thanks a lot !

                Y Offline
                Y Offline
                Yoongle
                wrote on last edited by
                #7

                @pdevanne
                Hi, Have you finally solved this problem with qt5.12.0, I had the same problem as you with qt5.12.0.

                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