LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 01-17-2008, 09:17 AM   #1
simopal6
Member
 
Registered: Jun 2006
Location: Italy
Distribution: Slackware 13.1
Posts: 218

Rep: Reputation: 30
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:
Code:
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!
 
Old 01-18-2008, 02:31 AM   #2
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 2,658
Blog Entries: 3

Rep: Reputation: 224Reputation: 224Reputation: 224
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.
 
Old 01-18-2008, 06:06 AM   #3
simopal6
Member
 
Registered: Jun 2006
Location: Italy
Distribution: Slackware 13.1
Posts: 218

Original Poster
Rep: Reputation: 30
I compiled qt4.
I think it's a compatibility problem, since the applications I'm trying to build have been written for qt3.
 
Old 01-18-2008, 08:46 AM   #4
simopal6
Member
 
Registered: Jun 2006
Location: Italy
Distribution: Slackware 13.1
Posts: 218

Original Poster
Rep: Reputation: 30
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!
 
Old 01-19-2008, 01:16 AM   #5
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 2,658
Blog Entries: 3

Rep: Reputation: 224Reputation: 224Reputation: 224
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Upgrade to QT4 jsebastian Ubuntu 1 03-03-2007 07:25 AM
Kernel and KDE upgrade, now different cursors for apps daTerminehtor Suse/Novell 2 07-27-2006 08:06 PM
how to upgrade from qt3 to qt4 in fc3? dr_zayus69 Linux - Software 1 07-05-2006 02:52 AM
Compiling qt4 apps for non-qt4 linux, win, mac birdseye Programming 4 10-31-2005 05:45 AM
KDE (QT3) apps compile!!! uniQ LinuxQuestions.org Member Success Stories 0 03-03-2004 12:41 PM


All times are GMT -5. The time now is 08:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration