Compilation failure with QT 3.1.1

Mathieu mathieu at gginter.net
Mon Mar 24 14:15:06 UTC 2003


Hi Harry,

> debian moved the compat headers into another package, you have to install
> that to get it compiling.

Aha! Thanks for the notice. I've installed these now.

> OTOH, it isn't good style to require obsolete headers. Can you please send
> a patch of the modifications you made to get it working?

I didn't quite get it working. I managed to get compilation passed the first 
error by using a preprocessor if statement. The cvs diff for that is as 
follows:

caps at loina:/usr/src/kde3src/kdevelop/lib/qextmdi/src$ cvs diff -u 
qextmdimainfrm.cpp
Index: qextmdimainfrm.cpp
===================================================================
RCS file: /home/kde/kdevelop/lib/qextmdi/src/qextmdimainfrm.cpp,v
retrieving revision 1.10
diff -u -r1.10 qextmdimainfrm.cpp
--- qextmdimainfrm.cpp  15 Mar 2003 22:30:57 -0000      1.10
+++ qextmdimainfrm.cpp  24 Mar 2003 13:10:44 -0000
@@ -29,7 +29,13 @@

 #include <qcursor.h>
 #include <qclipboard.h>
+
+#if QT_VERSION < 0x030101
 #include <qobjcoll.h>
+#else
+#include <qobjectlist.h>
+#endif
+
 #ifndef NO_KDE
 #include <kmenubar.h>
 #include <kapplication.h>

I tried to do this in the second file, but I got a compiler error about 
QT_VERSION not being defined. So I didn't touch that any more.

Mathieu





More information about the KDevelop-devel mailing list