Version: kdebindings 3.0.8 (using KDE KDE 3.0.8) Installed from: Compiled From Sources Compiler: gcc 2.95.2 OS: Linux I'm compiling KDE3.1beta2 from sources. After compiling kdelibs and kdebase, I'm now compiling kdebindings and get the following errors: .libs/x_QGLColormap.o: In function `xcall_QGLColormap(short, void *, Smoke::StackItem *)': .libs/x_QGLColormap.o(.text+0xca): undefined reference to `QGLColormap::operator=(QGLColormap const &)' .libs/x_QGLColormap.o(.text+0xda): undefined reference to `QGLColormap::isEmpty(void) const' .libs/x_QGLColormap.o(.text+0xea): undefined reference to `QGLColormap::size(void) const' .libs/x_QGLColormap.o(.text+0xfa): undefined reference to `QGLColormap::detach(void)' .libs/x_QGLColormap.o(.text+0x11c): undefined reference to `QGLColormap::setEntries(int, unsigned int const *, int)' .libs/x_QGLColormap.o(.text+0x132): undefined reference to `QGLColormap::setEntry(int, unsigned int)' .libs/x_QGLColormap.o(.text+0x14d): undefined reference to `QGLColormap::setEntry(int, QColor const &)' .libs/x_QGLColormap.o(.text+0x15c): undefined reference to `QGLColormap::entryRgb(int) const' .libs/x_QGLColormap.o(.text+0x171): undefined reference to `QGLColormap::entryColor(int) const' .libs/x_QGLColormap.o(.text+0x199): undefined reference to `QGLColormap::find(unsigned int) const' .libs/x_QGLColormap.o(.text+0x1aa): undefined reference to `QGLColormap::findNearest(unsigned int) const' .libs/x_QGLColormap.o(.text+0x1bd): undefined reference to `QGLColormap::~QGLColormap(void)' .libs/x_QGLColormap.o: In function `x_QGLColormap::x_QGLColormap(void)': .libs/x_QGLColormap.o(.x_QGLColormap::gnu.linkonce.t.(void)+0x1c): undefined reference to `QGLColormap::QGLColormap(void)' .libs/x_QGLColormap.o: In function `x_QGLColormap::x_QGLColormap(QGLColormap const &)': .libs/x_QGLColormap.o(.x_QGLColormap::gnu.linkonce.t.(QGLColormap const &)+0x20): undefined reference to `QGLColormap::QGLColormap(QGLColormap const &)'
Forget to mention: Compiling with QTDIR=/usr/lib/qt-3.0.5
I get the same. KDE 3.1 gcc version 3.2 (Mandrake Linux 9.0 3.2-1mdk) Mandrake Linux release 9.0 (dolphin) for i586
I experience the same problem in KDE-3.1 How can I get around this problem?
I've got the same problem and this bug occurs when Qt was build with --disable-opengl. Even though opengl is disabled, the header qglcolormap.h is still used when compiling kdebindings. The solution is to add qglcolormap.h to the list of excluded qt headers in smoke/qt/generate.pl. After make -f Makefile.cvs, configure and 'make' it all build fine again.
Subject: KDE_3_1_BRANCH: kdebindings/smoke/qt CVS commit by mueller: don't include OpenGL specific headers in the bindings. CCMAIL: 48716-done@bugs.kde.org M +1 -0 generate.pl 1.9.2.3 --- kdebindings/smoke/qt/generate.pl #1.9.2.2:1.9.2.3 @@ -43,4 +43,5 @@ 'qmotifwidget.h' => 1, # Motif 'qgl.h' => 1, # OpenGL + 'qglcolormap.h' => 1, # OpenGL 'qnp.h' => 1, # NSPlugin 'qdns.h' => 1, # internal