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

[solved] Error compiling Ktorrent 4.0b2

Tags: None
(comma "," separated)
raindog
Registered Member
Posts
3
Karma
0
I'm receiving the following error while trying to 'make' 4.0b1. If you have any suggestions as to how to fix this I would be grateful.


[ 61%] Building CXX object plugins/mediaplayer/CMakeFiles/ktmediaplayerplugin.dir/ktmediaplayerplugin_automoc.o
In file included from /opt/ktorrent/ktorrent-4.0beta1/build/plugins/mediaplayer/moc_videowidget.cpp:10,
from /opt/ktorrent/ktorrent-4.0beta1/build/plugins/mediaplayer/ktmediaplayerplugin_automoc.cpp:11:
/opt/ktorrent/ktorrent-4.0beta1/build/plugins/mediaplayer/../../../plugins/mediaplayer/videowidget.h:70: error: ISO C++ forbids declaration of ‘VideoWidget’ with no type
/opt/ktorrent/ktorrent-4.0beta1/build/plugins/mediaplayer/../../../plugins/mediaplayer/videowidget.h:70: error: invalid use of ‘::’
/opt/ktorrent/ktorrent-4.0beta1/build/plugins/mediaplayer/../../../plugins/mediaplayer/videowidget.h:70: error: expected ‘;’ before ‘*’ token
make[2]: *** [plugins/mediaplayer/CMakeFiles/ktmediaplayerplugin.dir/ktmediaplayerplugin_automoc.o] Error 1
make[1]: *** [plugins/mediaplayer/CMakeFiles/ktmediaplayerplugin.dir/all] Error 2
make: *** [all] Error 2

Last edited by raindog on Wed Apr 14, 2010 7:19 pm, edited 3 times in total.
George
Moderator
Posts
5421
Karma
1

Re: Error compliling Ktorrent 4.0b1

Mon Feb 22, 2010 5:08 pm
Try this:

sudo apt-get install --reinstall libphonon-dev

Then rerun cmake and make again.
raindog
Registered Member
Posts
3
Karma
0

Re: Error compliling Ktorrent 4.0b1

Mon Feb 22, 2010 5:52 pm
I'm getting the same result as before. I was able to successfully compile 4.0b1 on Ubuntu Karmic. I just upgraded to Lucid and now I'm getting the above error. Not sure if that piece of information is of any use in troubleshooting this.
George
Moderator
Posts
5421
Karma
1

Re: Error compiling Ktorrent 4.0b1

Tue Feb 23, 2010 5:03 pm
Then the phonon development package must be broken on lucid.
raindog
Registered Member
Posts
3
Karma
0

Re: Error compiling Ktorrent 4.0b1

Mon Apr 05, 2010 8:09 pm
Some helpful person, jonasl, from the IRC suggested I try this.

cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` -DENABLE_MEDIAPLAYER_PLUGIN=false

That took care of it.

Yes, I still have lots to learn.


Bookmarks



Who is online

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