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. Error of "undefined reference"
QtWS25 Last Chance

Error of "undefined reference"

Scheduled Pinned Locked Moved Unsolved General and Desktop
10 Posts 4 Posters 689 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.
  • Q Offline
    Q Offline
    QT_learner_new
    wrote on last edited by
    #1

    I am getting the following errors when building my qt program (4.8.6) on Red Hat 7, can an expert advise which module is missing from the linker? Thanks in advance.

    Coin3D/lib/libQtOpenGL.so.4: undefined reference to QTextureGlyphCache::textureMapForGlyph(unsigned int) const' Coin3D/lib/libQtOpenGL.so.4: undefined reference to QTextureGlyphCache::populate(QTextItemInt const&, QVarLengthArray<unsigned int, 256> const&, QVarLengthArray<QFixedPoint, 256> const&)'
    Coin3D/lib/libQtOpenGL.so.4: undefined reference to QWidgetPrivate::checkWindowRole()' Coin3D/lib/libQtOpenGL.so.4: undefined reference to QObjectPrivate::checkWindowRole()'
    Coin3D/lib/libQtOpenGL.so.4: undefined reference to QWindowSurface::QWindowSurface(QWidget*)' Coin3D/lib/libQtOpenGL.so.4: undefined reference to QPaintEngineEx::drawPixmaps(QDrawPixmaps::Data const*, int, QPixmap const&, QFlagsQDrawPixmaps::DrawingHint)'

    jsulmJ 1 Reply Last reply
    0
    • Q QT_learner_new

      I am getting the following errors when building my qt program (4.8.6) on Red Hat 7, can an expert advise which module is missing from the linker? Thanks in advance.

      Coin3D/lib/libQtOpenGL.so.4: undefined reference to QTextureGlyphCache::textureMapForGlyph(unsigned int) const' Coin3D/lib/libQtOpenGL.so.4: undefined reference to QTextureGlyphCache::populate(QTextItemInt const&, QVarLengthArray<unsigned int, 256> const&, QVarLengthArray<QFixedPoint, 256> const&)'
      Coin3D/lib/libQtOpenGL.so.4: undefined reference to QWidgetPrivate::checkWindowRole()' Coin3D/lib/libQtOpenGL.so.4: undefined reference to QObjectPrivate::checkWindowRole()'
      Coin3D/lib/libQtOpenGL.so.4: undefined reference to QWindowSurface::QWindowSurface(QWidget*)' Coin3D/lib/libQtOpenGL.so.4: undefined reference to QPaintEngineEx::drawPixmaps(QDrawPixmaps::Data const*, int, QPixmap const&, QFlagsQDrawPixmaps::DrawingHint)'

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

      @QT_learner_new said in Error of "undefined reference":

      Coin3D

      What is this?
      Do you mix two different Qt installations?

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

      1 Reply Last reply
      1
      • Q Offline
        Q Offline
        QT_learner_new
        wrote on last edited by
        #3

        I am using QT 4.8.6 along with coin3d which is using OpenGL. It works fine in Red Hat 6 but has these errors when compiling on Red Hat 7. Does anyone know which library is missing in linking for the following modules?

        QTextureGlyphCache
        QWidgetPrivate
        QObjectPrivate
        QWindowSurface
        QPaintEngineEx
        
        1 Reply Last reply
        0
        • Q Offline
          Q Offline
          QT_learner_new
          wrote on last edited by
          #4

          Can an expert knowing these modules help for which library has to be linked? Thank you

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

            Hi,

            As @jsulm requested: what is Coin3D ?
            From the looks of it, it contains a copy of Qt 4.

            Hence the other question of @jsulm: are you mixing several versions of Qt ?

            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
            1
            • Q Offline
              Q Offline
              QT_learner_new
              wrote on last edited by
              #6

              As I posted above, I am using QT 4.8.6 along with Coin3d which is an implementation of OpenGL. My program works fine in Red Hat 6 environment but has these errors when compiling on Red Hat 7. It looks like I need to add some missing library to linking.Does anyone know which library contains the following modules?

              QTextureGlyphCache
              QWidgetPrivate
              QObjectPrivate
              QWindowSurface
              QPaintEngineEx

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

                You realize that we are running in circles ?
                We understood that you are using Qt 4.8.6 to build something that is called Coind3D.

                You should consider linking to that thing so that we may take a look at it.

                As already said twice, it seems that it provides its own build of Qt hence our question: is there a mix between two different versions ? For example the one from your distribution and the one embedded by Coin3D.

                As you can guess from the name, some of these class come from the private parts of Qt.

                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
                1
                • JoeCFDJ Offline
                  JoeCFDJ Offline
                  JoeCFD
                  wrote on last edited by
                  #8

                  Qt4 is so old. Simply forget it. Upgrade your Qt.

                  1 Reply Last reply
                  1
                  • Q Offline
                    Q Offline
                    QT_learner_new
                    wrote on last edited by
                    #9

                    @SGaist Can you clarify what it means for "private parts of Qt"? I understand the referred class name has "Private" in it, but does it tell? I am new. Thank you for help.

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

                      Qt offers a public stable API. In order to be able to fix bugs, improve performance, etc, it uses the private implementation idioms that will allow to completely change the implementation without changing the public stable API. These are the private parts, if you really really need them you may be able to do so at the expense of locking yourself on that version of Qt and it looks like what your Coin3D thing is doing.

                      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
                      1

                      • Login

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups
                      • Search
                      • Get Qt Extensions
                      • Unsolved