This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Can't compile beta 2 on kubuntu 9.10

Tags: None
(comma "," separated)
Zeramos
Registered Member
Posts
2
Karma
0
So I just did a clean install. Ran both of these:
Code: Select all
sudo aptitude build-dep ktorrent
sudo aptitiude install build-essential kdesdk kdelibs5-dev libqca2-dev libgmp3-dev subversion cmake automoc kdebase-workspace-dev libboost-dev kdepimlibs5-dev libtag1-dev python-kde4 kdelibs5-dev libgeoip-dev


When I try to compile beta, I run
Code: Select all
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=$(kde4-config --prefix) ..
make
sudo make install


When I run Make, I get
Code: Select all
[ 88%] Building CXX object plasma/applet/CMakeFiles/plasma_applet_ktorrent.dir/fadingitem.o                                                                                                                                               
/home/shadowfane/ktorrent-4.0beta2/plasma/applet/fadingitem.cpp:21:30: error: QPropertyAnimation: No such file or directory                                                                                                               
/home/shadowfane/ktorrent-4.0beta2/plasma/applet/fadingitem.cpp: In member function ‘void FadingItem::showItem()’:                                                                                                                         
/home/shadowfane/ktorrent-4.0beta2/plasma/applet/fadingitem.cpp:90: error: ‘class QWeakPointer<QPropertyAnimation>’ has no member named ‘data’                                                                                             
/home/shadowfane/ktorrent-4.0beta2/plasma/applet/fadingitem.cpp:92: error: invalid use of incomplete type ‘struct QPropertyAnimation’                                                                                                     
/home/shadowfane/ktorrent-4.0beta2/plasma/applet/fadingitem.h:26: error: forward declaration of ‘struct QPropertyAnimation’                                                                                                               
/home/shadowfane/ktorrent-4.0beta2/plasma/applet/fadingitem.cpp:93: error: invalid use of incomplete type ‘struct QPropertyAnimation’                                                                                                     
/home/shadowfane/ktorrent-4.0beta2/plasma/applet/fadingitem.h:26: error: forward declaration of ‘struct QPropertyAnimation’                                                                                                               
/home/shadowfane/ktorrent-4.0beta2/plasma/applet/fadingitem.cpp:94: error: invalid use of incomplete type ‘struct QPropertyAnimation’                                                                                                     
/home/shadowfane/ktorrent-4.0beta2/plasma/applet/fadingitem.h:26: error: forward declaration of ‘struct QPropertyAnimation’                                                                                                               
/home/shadowfane/ktorrent-4.0beta2/plasma/applet/fadingitem.cpp:94: error: ‘QEasingCurve’ has not been declared                                                                                                                           
/home/shadowfane/ktorrent-4.0beta2/plasma/applet/fadingitem.cpp:95: error: invalid use of incomplete type ‘struct QPropertyAnimation’                                                                                                     
/home/shadowfane/ktorrent-4.0beta2/plasma/applet/fadingitem.h:26: error: forward declaration of ‘struct QPropertyAnimation’                                                                                                               
/home/shadowfane/ktorrent-4.0beta2/plasma/applet/fadingitem.cpp:96: error: invalid use of incomplete type ‘struct QPropertyAnimation’                                                                                                     
/home/shadowfane/ktorrent-4.0beta2/plasma/applet/fadingitem.h:26: error: forward declaration of ‘struct QPropertyAnimation’                                                                                                               
/home/shadowfane/ktorrent-4.0beta2/plasma/applet/fadingitem.cpp:97: error: no match for ‘operator=’ in ‘((FadingItem*)this)->FadingItem::mAnimation = animation’                                                                           
/usr/include/qt4/QtCore/qsharedpointer_impl.h:354: note: candidates are: QWeakPointer<T>& QWeakPointer<T>::operator=(const QWeakPointer<T>&) [with T = QPropertyAnimation]                                                                 
/usr/include/qt4/QtCore/qsharedpointer_impl.h:362: note:                 QWeakPointer<T>& QWeakPointer<T>::operator=(const QSharedPointer<X>&) [with T = QPropertyAnimation]                                                               
/home/shadowfane/ktorrent-4.0beta2/plasma/applet/fadingitem.cpp:98: error: no matching function for call to ‘FadingItem::connect(QPropertyAnimation*&, const char [12], FadingItem* const, const char [21])’                               
/usr/include/qt4/QtCore/qobject.h:191: note: candidates are: static bool QObject::connect(const QObject*, const char*, const QObject*, const char*, Qt::ConnectionType)                                                                   
/usr/include/qt4/QtCore/qobject.h:306: note:                 bool QObject::connect(const QObject*, const char*, const char*, Qt::ConnectionType) const                                                                                     
/home/shadowfane/ktorrent-4.0beta2/plasma/applet/fadingitem.cpp:99: error: invalid use of incomplete type ‘struct QPropertyAnimation’
/home/shadowfane/ktorrent-4.0beta2/plasma/applet/fadingitem.h:26: error: forward declaration of ‘struct QPropertyAnimation’
/home/shadowfane/ktorrent-4.0beta2/plasma/applet/fadingitem.cpp:99: error: ‘QAbstractAnimation’ has not been declared
/home/shadowfane/ktorrent-4.0beta2/plasma/applet/fadingitem.cpp:100: error: invalid use of incomplete type ‘struct QPropertyAnimation’
/home/shadowfane/ktorrent-4.0beta2/plasma/applet/fadingitem.h:26: error: forward declaration of ‘struct QPropertyAnimation’
/home/shadowfane/ktorrent-4.0beta2/plasma/applet/fadingitem.cpp:107: error: invalid use of incomplete type ‘struct QPropertyAnimation’
/home/shadowfane/ktorrent-4.0beta2/plasma/applet/fadingitem.h:26: error: forward declaration of ‘struct QPropertyAnimation’
/home/shadowfane/ktorrent-4.0beta2/plasma/applet/fadingitem.cpp:107: error: ‘QAbstractAnimation’ has not been declared
/home/shadowfane/ktorrent-4.0beta2/plasma/applet/fadingitem.cpp:108: error: invalid use of incomplete type ‘struct QPropertyAnimation’
/home/shadowfane/ktorrent-4.0beta2/plasma/applet/fadingitem.h:26: error: forward declaration of ‘struct QPropertyAnimation’
/home/shadowfane/ktorrent-4.0beta2/plasma/applet/fadingitem.cpp: In member function ‘void FadingItem::hideItem()’:
/home/shadowfane/ktorrent-4.0beta2/plasma/applet/fadingitem.cpp:114: error: ‘class QWeakPointer<QPropertyAnimation>’ has no member named ‘data’
/home/shadowfane/ktorrent-4.0beta2/plasma/applet/fadingitem.cpp:117: error: invalid use of incomplete type ‘struct QPropertyAnimation’
/home/shadowfane/ktorrent-4.0beta2/plasma/applet/fadingitem.h:26: error: forward declaration of ‘struct QPropertyAnimation’
/home/shadowfane/ktorrent-4.0beta2/plasma/applet/fadingitem.cpp:117: error: ‘QAbstractAnimation’ has not been declared
/home/shadowfane/ktorrent-4.0beta2/plasma/applet/fadingitem.cpp:118: error: invalid use of incomplete type ‘struct QPropertyAnimation’
/home/shadowfane/ktorrent-4.0beta2/plasma/applet/fadingitem.h:26: error: forward declaration of ‘struct QPropertyAnimation’
/home/shadowfane/ktorrent-4.0beta2/plasma/applet/fadingitem.cpp:126: error: invalid use of incomplete type ‘struct QPropertyAnimation’
/home/shadowfane/ktorrent-4.0beta2/plasma/applet/fadingitem.h:26: error: forward declaration of ‘struct QPropertyAnimation’
/home/shadowfane/ktorrent-4.0beta2/plasma/applet/fadingitem.cpp:126: error: ‘QAbstractAnimation’ has not been declared
/home/shadowfane/ktorrent-4.0beta2/plasma/applet/fadingitem.cpp:127: error: invalid use of incomplete type ‘struct QPropertyAnimation’
/home/shadowfane/ktorrent-4.0beta2/plasma/applet/fadingitem.h:26: error: forward declaration of ‘struct QPropertyAnimation’
/home/shadowfane/ktorrent-4.0beta2/plasma/applet/fadingitem.cpp:127: error: ‘QAbstractAnimation’ has not been declared
make[2]: *** [plasma/applet/CMakeFiles/plasma_applet_ktorrent.dir/fadingitem.o] Error 1
make[1]: *** [plasma/applet/CMakeFiles/plasma_applet_ktorrent.dir/all] Error 2
make: *** [all] Error 2


I've tried this on 3 different computers, so pretty sure it's not just a problem with my computer being messed up. Does anyone have any ideas on how to help me?
Thanks
George
Moderator
Posts
5421
Karma
1
You need Qt 4.6 in order to compile 4.0beta2
imported4-jonas
Registered Member
Posts
35
Karma
0
If you don't have the ability to update to Qt 4.6 yet you can try this (works on my debian unstable* box).
In the file ktorrent-4.0beta2/CMakeLists.txt go to line 58 and put a '#' in front of the three lines that deal with plasma, the result should look like this:
Code: Select all
#if( PLASMA_FOUND )
#    add_subdirectory(plasma)
#endif(PLASMA_FOUND)


Please note that this will (of course) disable the plasma widget.

Also, if you experience any crashes and want to report them you MUST include the information that you are NOT using Qt 4.6.

*) Qt 4.6 seems to be available on Debian unstable (sid) soon. (finally!) Debian bug #570360
Zeramos
Registered Member
Posts
2
Karma
0
Thanks, got qt4.6. works fine.


Bookmarks



Who is online

Registered users: Bing [Bot], blue_bullet, Google [Bot], rockscient, Yahoo [Bot]