Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt link errors [undefined reference to `QThread::wait(QDeadline Time)@qt_5']

Qt link errors [undefined reference to `QThread::wait(QDeadline Time)@qt_5']

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 457 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.
  • A Offline
    A Offline
    Arun Ayachith
    wrote on last edited by
    #1

    We have application source-code & supporting libraries build on RHEL 7.6 & gcc 4.8.5 Qt5.15.2.

    We want to replicate the same condition and continue to enhance features upon the source code.

    We are not able to complete the build and following errors are shown.
    on RHEL 7.6, we see errors like
    undefined reference to `QThread::wait(QDeadline Time)@qt_5'

    undefined reference to QPushButton::hitButton(QPoint const &) const@Qt_5' undefined reference to typeindo for DIRECT_RENDER::....

    I see that QPushbutton::hitbuttom is defined as part libQt5Widget.so and QThread as part of Core, still I see the link errors.

    I have built Qt5.15.14 from https://wiki.qt.io/Building_Qt_5_from_Git, and install Qt.5.12.12 QTCreator from https://download.qt.io/archive/qt/5.12/5.12.12/qt-opensource-linux-x64-5.12.12.run

    we haven't taken Qt License as of now, we want to make sure that we are able to build before taking license.

    My .pro is like
    TEMPLATE = app
    TARGET = ../bin/DesktopApp
    DEFINES += TOKEN
    CONFIG += $$DEFINES
    CONFIG += c++14 warn_off

    QT += core gui sql network xml positioning opengl concurrent

    greaterThan(QT_MAJOR_VERSION, 4): QT += widgets printsupport
    DEFINES += QT_DEPRECATED_WARNINGS
    DEFINES += QT_NO_VERSION_TAGGING

    I tried to include libstdc++
    LIBS += -lstdc++.

    I have tried soft/hard links to libraries from /opt/Qt5.15.14/5.15.14/gcc_64/lib/libQt5Core*.so to /usr/lib64/libQt5Core*.so and still the link error persists

    Really looking for some help on this to solve the problem asap.

    Thanks
    Arun

    jsulmJ 1 Reply Last reply
    0
    • A Arun Ayachith

      We have application source-code & supporting libraries build on RHEL 7.6 & gcc 4.8.5 Qt5.15.2.

      We want to replicate the same condition and continue to enhance features upon the source code.

      We are not able to complete the build and following errors are shown.
      on RHEL 7.6, we see errors like
      undefined reference to `QThread::wait(QDeadline Time)@qt_5'

      undefined reference to QPushButton::hitButton(QPoint const &) const@Qt_5' undefined reference to typeindo for DIRECT_RENDER::....

      I see that QPushbutton::hitbuttom is defined as part libQt5Widget.so and QThread as part of Core, still I see the link errors.

      I have built Qt5.15.14 from https://wiki.qt.io/Building_Qt_5_from_Git, and install Qt.5.12.12 QTCreator from https://download.qt.io/archive/qt/5.12/5.12.12/qt-opensource-linux-x64-5.12.12.run

      we haven't taken Qt License as of now, we want to make sure that we are able to build before taking license.

      My .pro is like
      TEMPLATE = app
      TARGET = ../bin/DesktopApp
      DEFINES += TOKEN
      CONFIG += $$DEFINES
      CONFIG += c++14 warn_off

      QT += core gui sql network xml positioning opengl concurrent

      greaterThan(QT_MAJOR_VERSION, 4): QT += widgets printsupport
      DEFINES += QT_DEPRECATED_WARNINGS
      DEFINES += QT_NO_VERSION_TAGGING

      I tried to include libstdc++
      LIBS += -lstdc++.

      I have tried soft/hard links to libraries from /opt/Qt5.15.14/5.15.14/gcc_64/lib/libQt5Core*.so to /usr/lib64/libQt5Core*.so and still the link error persists

      Really looking for some help on this to solve the problem asap.

      Thanks
      Arun

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

      @Arun-Ayachith Please show the linker calls which causes these errors.

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

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

        Hi and welcome to devnet,

        That overload of QThead::wait is only available since 5.15 so you can forget about 5.12.

        You should not try to replace your system's Qt with your self-built version, you might just break your installation.

        Did you ensure that you are using the proper qmake executable when using your custom build ?

        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