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. Compiling Qt 5.7.0 fails on CentOS 7
Forum Updated to NodeBB v4.3 + New Features

Compiling Qt 5.7.0 fails on CentOS 7

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
2 Posts 1 Posters 962 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.
  • J Offline
    J Offline
    jargill
    wrote on last edited by
    #1

    I've been trying to build Qt on my CentOS 7 system, but the build keeps failing and Google actually turns up nobody with my problem, which is a first for me. Here is my configure:

    configure -developer-build -opensource -nomake examples -nomake tests -confirm-license -optimized-qmake -no-gtk -skip qtwebengine
    

    Then I just type:

    make -j4
    

    And that gives me this result:

    .obj/qxcbdrag.o:qxcbdrag.cpp:function vtable for QXcbDrag: error: undefined reference to 'QBasicDrag::cancelDrag()'
    /home/jgill/qt5.7.0/5.7/Src/qtbase/src/plugins/platforms/xcb/qxcbconnection_xi2.cpp:321: error: undefined reference to 'QWindowSystemInterfacePrivate::TabletEvent::setPlatformSynthesizesMouse(bool)'
    /home/jgill/qt5.7.0/5.7/Src/qtbase/src/plugins/platforms/xcb/qxcbconnection_xi2.cpp:959: error: undefined reference to 'QWindowSystemInterface::handleWheelEvent(QWindow*, unsigned long, QPointF const&, QPointF const&, QPoint, QPoint, QFlags<Qt::KeyboardModifier>, Qt::ScrollPhase, Qt::MouseEventSource, bool)'
    /home/jgill/qt5.7.0/5.7/Src/qtbase/src/plugins/platforms/xcb/qxcbconnection_xi2.cpp:984: error: undefined reference to 'QWindowSystemInterface::handleWheelEvent(QWindow*, unsigned long, QPointF const&, QPointF const&, QPoint, QPoint, QFlags<Qt::KeyboardModifier>, Qt::ScrollPhase, Qt::MouseEventSource, bool)'
    collect2: error: ld returned 1 exit status
    make[5]: *** [../../../../lib/libQt5XcbQpa.so.5.7.0] Error 1
    make[5]: Leaving directory `/home/jgill/qt5.7.0/myinstall/src/plugins/platforms/xcb'
    make[4]: *** [sub-xcb_qpa_lib-pro-make_first-ordered] Error 2
    make[4]: Leaving directory `/home/jgill/qt5.7.0/myinstall/src/plugins/platforms/xcb'
    make[3]: *** [sub-xcb-make_first] Error 2
    make[3]: Leaving directory `/home/jgill/qt5.7.0/myinstall/src/plugins/platforms'
    make[2]: *** [sub-platforms-make_first] Error 2
    make[2]: Leaving directory `/home/jgill/qt5.7.0/myinstall/src/plugins'
    make[1]: *** [sub-plugins-make_first] Error 2
    make[1]: Leaving directory `/home/jgill/qt5.7.0/myinstall/src'
    make: *** [sub-src-make_first] Error 2
    

    Am I missing a system library or something?

    J 1 Reply Last reply
    0
    • J jargill

      I've been trying to build Qt on my CentOS 7 system, but the build keeps failing and Google actually turns up nobody with my problem, which is a first for me. Here is my configure:

      configure -developer-build -opensource -nomake examples -nomake tests -confirm-license -optimized-qmake -no-gtk -skip qtwebengine
      

      Then I just type:

      make -j4
      

      And that gives me this result:

      .obj/qxcbdrag.o:qxcbdrag.cpp:function vtable for QXcbDrag: error: undefined reference to 'QBasicDrag::cancelDrag()'
      /home/jgill/qt5.7.0/5.7/Src/qtbase/src/plugins/platforms/xcb/qxcbconnection_xi2.cpp:321: error: undefined reference to 'QWindowSystemInterfacePrivate::TabletEvent::setPlatformSynthesizesMouse(bool)'
      /home/jgill/qt5.7.0/5.7/Src/qtbase/src/plugins/platforms/xcb/qxcbconnection_xi2.cpp:959: error: undefined reference to 'QWindowSystemInterface::handleWheelEvent(QWindow*, unsigned long, QPointF const&, QPointF const&, QPoint, QPoint, QFlags<Qt::KeyboardModifier>, Qt::ScrollPhase, Qt::MouseEventSource, bool)'
      /home/jgill/qt5.7.0/5.7/Src/qtbase/src/plugins/platforms/xcb/qxcbconnection_xi2.cpp:984: error: undefined reference to 'QWindowSystemInterface::handleWheelEvent(QWindow*, unsigned long, QPointF const&, QPointF const&, QPoint, QPoint, QFlags<Qt::KeyboardModifier>, Qt::ScrollPhase, Qt::MouseEventSource, bool)'
      collect2: error: ld returned 1 exit status
      make[5]: *** [../../../../lib/libQt5XcbQpa.so.5.7.0] Error 1
      make[5]: Leaving directory `/home/jgill/qt5.7.0/myinstall/src/plugins/platforms/xcb'
      make[4]: *** [sub-xcb_qpa_lib-pro-make_first-ordered] Error 2
      make[4]: Leaving directory `/home/jgill/qt5.7.0/myinstall/src/plugins/platforms/xcb'
      make[3]: *** [sub-xcb-make_first] Error 2
      make[3]: Leaving directory `/home/jgill/qt5.7.0/myinstall/src/plugins/platforms'
      make[2]: *** [sub-platforms-make_first] Error 2
      make[2]: Leaving directory `/home/jgill/qt5.7.0/myinstall/src/plugins'
      make[1]: *** [sub-plugins-make_first] Error 2
      make[1]: Leaving directory `/home/jgill/qt5.7.0/myinstall/src'
      make: *** [sub-src-make_first] Error 2
      

      Am I missing a system library or something?

      J Offline
      J Offline
      jargill
      wrote on last edited by
      #2

      Nobody else has this problem? What could I be doing wrong?

      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