Error of "undefined reference"
-
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 toQWidgetPrivate::checkWindowRole()' Coin3D/lib/libQtOpenGL.so.4: undefined reference to
QObjectPrivate::checkWindowRole()'
Coin3D/lib/libQtOpenGL.so.4: undefined reference toQWindowSurface::QWindowSurface(QWidget*)' Coin3D/lib/libQtOpenGL.so.4: undefined reference to
QPaintEngineEx::drawPixmaps(QDrawPixmaps::Data const*, int, QPixmap const&, QFlagsQDrawPixmaps::DrawingHint)' -
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 toQWidgetPrivate::checkWindowRole()' Coin3D/lib/libQtOpenGL.so.4: undefined reference to
QObjectPrivate::checkWindowRole()'
Coin3D/lib/libQtOpenGL.so.4: undefined reference toQWindowSurface::QWindowSurface(QWidget*)' Coin3D/lib/libQtOpenGL.so.4: undefined reference to
QPaintEngineEx::drawPixmaps(QDrawPixmaps::Data const*, int, QPixmap const&, QFlagsQDrawPixmaps::DrawingHint)'@QT_learner_new said in Error of "undefined reference":
Coin3D
What is this?
Do you mix two different Qt installations? -
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
-
Can an expert knowing these modules help for which library has to be linked? Thank you
-
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 -
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.
-
@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.
-
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.