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.5 from source on CentOS 6

Building QT 5.5 from source on CentOS 6

Scheduled Pinned Locked Moved Installation and Deployment
8 Posts 2 Posters 3.2k Views
  • 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 Offline
    N Offline
    nobody
    wrote on last edited by
    #1

    Hi,

    I was able to build QT 4 but could not build the 5.5, I searched the wiki build document, not avail. Appreciate clues what I could be missing?

    $ configure --prefix=~/qtinstall -opensource -confirm-license -nomake examples -nomake tests

    qtbase/src/plugins/platforms/xcb/qxcbconnection_xi2.cpp:483:14: error: ‘XI_TouchBegin’ was not declared in this scope
    case XI_TouchBegin:
    ^
    qtbase/src/plugins/platforms/xcb/qxcbconnection_xi2.cpp:484:14: error: ‘XI_TouchUpdate’ was not declared in this scope
    case XI_TouchUpdate:
    ^
    qtbase/src/plugins/platforms/xcb/qxcbconnection_xi2.cpp:485:14: error: ‘XI_TouchEnd’ was not declared in this scope
    case XI_TouchEnd:
    ^

    qtbase/src/plugins/platforms/xcb/qxcbconnection_xi2.cpp:965:105: warning: unused parameter ‘eventListener’ [-Wunused-parameter]
    bool QXcbConnection::xi2HandleTabletEvent(void *event, TabletData *tabletData, QXcbWindowEventListener *eventListener)

    make[9]: *** [.obj/qxcbconnection_xi2.o] Error 1
    make[8]: *** [sub-xcb_qpa_lib-pro-make_first-ordered] Error 2
    make[7]: *** [sub-xcb-make_first] Error 2
    make[6]: *** [sub-platforms-make_first] Error 2
    make[5]: *** [sub-plugins-make_first] Error 2
    make[4]: *** [sub-src-make_first] Error 2
    make[3]: *** [module-qtbase-make_first] Error 2
    make[2]: *** [QT/5.5.0] Error 2
    make[1]: *** [QT/5.5.0/CMakeFiles/QT5.5.0.dir/all] Error 2
    make: *** [all] Error 2

    Thank you.

    jup

    1 Reply Last reply
    0
    • N Offline
      N Offline
      nobody
      wrote on last edited by
      #2

      I added -no-xcb which I shouldn't as I will run the qt on vm via vnc. Anyway, it got following new error:

      qtbase/src/plugins/platforms/xcb/qxcbconnection_xi2.cpp:178:18: error: ‘XITouchClass’ was not declared in this scope
      case XITouchClass:
      ^
      make[9]: *** [.obj/qxcbconnection_xi2.o] Error 1
      make[8]: *** [sub-xcb-plugin-pro-make_first-ordered] Error 2
      make[7]: *** [sub-xcb-make_first] Error 2
      make[6]: *** [sub-platforms-make_first] Error 2
      make[5]: *** [sub-plugins-make_first] Error 2
      make[4]: *** [sub-src-make_first] Error 2
      make[3]: *** [module-qtbase-make_first] Error 2

      1 Reply Last reply
      0
      • N Offline
        N Offline
        nobody
        wrote on last edited by
        #3

        Fixed by adding -qt-xcb.

        Thanks.

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

          Hi and welcome to devnet,

          Glad you out and thanks for sharing your solution.

          Out of curiosity, do you have the xcb dev package installed on your system ?

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

            Hi,

            Thanks for your response, I do have libxcb-devel-1.9.1-3.el6.x86_64 package installed, but I've just found out that the libqxcb.so is not included in plugins/platforms causing application errors of xcb was not found in qt plugins. I have already configured Qt with -qt-xcb why the xcb is missing in plugins?

            Thank you and appreciate it.

            jup

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

              You are missing a dependency for those symbols that's why it's not built

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

                Thanks for the response, could you elaborate what depedendies I could miss for libqxcb plugin? I've followed the wiki to install all the depedencies:

                ruby flex libxcb libxcb-devel libXrender libXrender-devel xcb-util-wm xcb-util-wm-devel xcb-util xcb-util-devel xcb-util-image xcb-util-image-devel xcb-util-keysyms xcb-util-keysyms-devel gstreamer gstreamer-devel

                Thank you so much and approeciate it.

                1 Reply Last reply
                0
                • N Offline
                  N Offline
                  nobody
                  wrote on last edited by
                  #8

                  Fixed by moving to another clean machine.

                  Thanks your response.

                  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