-   Linux - Software (
-   -   Can't compile KDE apps after upgrade to Qt4 (

simopal6 01-17-2008 08:17 AM

Can't compile KDE apps after upgrade to Qt4
After upgrading to Qt 4 (I meant to install KDE 4, but I didn't), some KDE packages and applications (such as kdesdk and kaffeine) can't compile anymore. I always get errors like:

kaffeinepart.moc:12:2: #error "The header file 'kaffeinepart.h' doesn't include <QObject>."
In file included from kaffeinepart.cpp:23:
kaffeinepart.moc:73: error: `const QMetaObject KaffeinePart::staticMetaObject' is not a static member of `class KaffeinePart'
kaffeinepart.moc:73: error: variable `const QMetaObject KaffeinePart::staticMetaObject' has initializer but incomplete type
kaffeinepart.moc:79: error: prototype for `const QMetaObject* KaffeinePart::metaObject() const' does not match any in class `KaffeinePart'
kaffeinepart.h:40: error: candidate is: virtual QMetaObject* KaffeinePart::metaObject() const

The bold part is common to both kdesdk and kaffeine (except for the header file name) and the rest is similar (if not the same) too.

What's happening??
Thank you!

Drakeo 01-18-2008 01:31 AM

which gcc are you using. you have to be careful when using prebuilt qt. if you compiled the qt then I am lost.if you use a pre built qt4 that was compiled with a 4.2 gcc and your systym is a 3.4.6 gcc kde will not compile.

simopal6 01-18-2008 05:06 AM

I compiled qt4.
I think it's a compatibility problem, since the applications I'm trying to build have been written for qt3.

simopal6 01-18-2008 07:46 AM

I solved the problem by uninstalli qt4 and reinstalling qt3.

Anyway, if I ever wanted to switch to KDE 4 and Qt 4, I would like to know how to install those applications. So,if anybody knows what the cause of my problem might be, please let me know :-)

Thank you!

Drakeo 01-19-2008 12:16 AM

I also had this problem when changing to X11 7 but at xorg the trouble shoot said there was some typo erroes in the lib. libxrender libXrender not the capital x after finging this and making the correct symlinks all is well. this happenend with my upgrade qt and X11. I new the correct libraries were there just spelt wrong think we call that a bug lol good luck

All times are GMT -5. The time now is 06:42 PM.