Bug 48716 - compiling/linking KDE 3.1beta2 kdebindings-3.0.8 smoke/qt QGLColormap fails
Summary: compiling/linking KDE 3.1beta2 kdebindings-3.0.8 smoke/qt QGLColormap fails
Status: RESOLVED FIXED
Alias: None
Product: bindings
Classification: Developer tools
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-10-05 10:50 UTC by Thomas Heuving
Modified: 2007-12-18 11:55 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Heuving 2002-10-05 10:50:06 UTC
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 &)'
Comment 1 Thomas Heuving 2002-10-05 10:51:31 UTC
Forget to mention: 
  Compiling with 
  QTDIR=/usr/lib/qt-3.0.5 
Comment 2 steve 2003-01-30 18:54:37 UTC
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

Comment 3 Jagro 2003-02-13 09:08:51 UTC
I experience the same problem in KDE-3.1
How can I get around this problem?
Comment 4 Hans Verkuil 2003-02-19 21:20:55 UTC
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. 
Comment 5 Dirk Mueller 2003-03-07 22:50:58 UTC
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