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

Weird error when compiling.

Tags: None
(comma "," separated)
inv
Registered Member
Posts
7
Karma
0

Weird error when compiling.

Sat Jul 03, 2010 7:09 am
Hi, i compiled libktorrent fine.. but when i was compiling Ktorrent 4.0.1 i get this error during the "make" process..

Code: Select all
filebox@Filebox:~/ktorrent-4.0.1/build$ cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` ..
-- Found Qt-Version 4.6.2 (using /usr/bin/qmake)
-- Found X11: /usr/lib/libX11.so
-- Phonon Version: 4.3.1
-- Found KDE 4.4 include dir: /usr/include
-- Found KDE 4.4 library dir: /usr/lib
-- Found the KDE4 kconfig_compiler preprocessor: /usr/bin/kconfig_compiler
-- Found automoc4: /usr/bin/automoc4
-- Found taglib: -L/usr/lib -ltag
-- Taglib found: -L/usr/lib -ltag
-- Building logviewer plugin (-DENABLE_LOGVIEWER_PLUGIN=false to disable)
-- Building infowidget plugin (-DENABLE_INFOWIDGET_PLUGIN=false to disable)
--    Compiling GeoIP support directly into InfoWidget plugin
-- Building upnp plugin (-DENABLE_UPNP_PLUGIN=false to disable)
-- Building search plugin (-DENABLE_SEARCH_PLUGIN=false to disable)
-- Building webinterface plugin (-DENABLE_WEBINTERFACE_PLUGIN=false to disable)
-- Building scanfolder plugin (-DENABLE_SCANFOLDER_PLUGIN=false to disable)
-- Building ipfilter plugin (-DENABLE_IPFILTER_PLUGIN=false to disable)
-- Building stats plugin (-DENABLE_STATS_PLUGIN=false to disable)
-- Building bwscheduler plugin (-DENABLE_BWSCHEDULER_PLUGIN=false to disable)
-- Building mediaplayer plugin (-DENABLE_MEDIAPLAYER_PLUGIN=false to disable)
-- Found taglib: -L/usr/lib -ltag
-- Taglib found: -L/usr/lib -ltag
-- Building scripting plugin (-DENABLE_SCRIPTING_PLUGIN=false to disable)
-- Building syndication plugin (-DENABLE_SYNDICATION_PLUGIN=false to disable)
-- Building downloadorder plugin (-DENABLE_DOWNLOADORDER_PLUGIN=false to disable)
-- Building shutdown plugin (-DENABLE_SHUTDOWN_PLUGIN=false to disable)
-- Found libkworkspace: /usr/lib/libkworkspace.so
-- Building zeroconf plugin (-DENABLE_ZEROCONF_PLUGIN=false to disable)
-- Building magnetgenerator plugin (-DENABLE_MAGNETGENERATOR_PLUGIN=false to disable)
-- Found libtaskmanager: /usr/lib/libtaskmanager.so

-----------------------------------------------------------------------------
-- The following external packages were located on your system.
-- This installation will have the extra features provided by these packages.
-----------------------------------------------------------------------------
   * libkworkspace - libkworkspace library and header files
   * libtaskmanager - libtaskmanager library and header files

-----------------------------------------------------------------------------
-- Congratulations! All external packages have been found.
-----------------------------------------------------------------------------

-- Configuring done
-- Generating done
-- Build files have been written to: /home/filebox/ktorrent-4.0.1/build
filebox@Filebox:~/ktorrent-4.0.1/build$ make
[ 47%] Built target ktcore_automoc
[ 47%] Built target ktcore
[ 47%] Built target ktupnp_automoc
[ 47%] Built target ktupnp
[ 47%] Built target ktlogviewerplugin_automoc
[ 47%] Built target ktlogviewerplugin
[ 47%] Built target ktinfowidgetplugin_automoc
[ 47%] Built target ktinfowidgetplugin
[ 47%] Built target ktupnpplugin_automoc
[ 47%] Built target ktupnpplugin
[ 47%] Built target ktsearchplugin_automoc
[ 47%] Built target ktsearchplugin
[ 47%] Built target ktwebinterfaceplugin_automoc
[ 47%] Built target ktwebinterfaceplugin
[ 47%] Built target ktscanfolderplugin_automoc
[ 47%] Built target ktscanfolderplugin
[ 47%] Built target ktipfilterplugin_automoc
[ 47%] Built target ktipfilterplugin
[ 47%] Built target ktstatsplugin_automoc
[ 47%] Built target ktstatsplugin
[ 47%] Built target ktbwschedulerplugin_automoc
[ 47%] Built target ktbwschedulerplugin
[ 47%] Built target ktmediaplayerplugin_automoc
[ 47%] Building CXX object plugins/mediaplayer/CMakeFiles/ktmediaplayerplugin.dir/ktmediaplayerplugin_automoc.o
In file included from /home/filebox/ktorrent-4.0.1/build/plugins/mediaplayer/moc_videowidget.cpp:10,
                 from /home/filebox/ktorrent-4.0.1/build/plugins/mediaplayer/ktmediaplayerplugin_automoc.cpp:4:
/home/filebox/ktorrent-4.0.1/build/plugins/mediaplayer/../../../plugins/mediaplayer/videowidget.h:70: error: ISO C++ forbids declaration of ‘VideoWidget’ with no type
/home/filebox/ktorrent-4.0.1/build/plugins/mediaplayer/../../../plugins/mediaplayer/videowidget.h:70: error: invalid use of ‘::’
/home/filebox/ktorrent-4.0.1/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
filebox@Filebox:~/ktorrent-4.0.1/build$


Please help/advise!
Im using Ubuntu 10.04.
netcelli
Registered Member
Posts
44
Karma
0
OS

Re: Weird error when compiling.

Sun Jul 04, 2010 6:23 am
I think libphonon-dev is missed. Try installing it :)
inv
Registered Member
Posts
7
Karma
0

Re: Weird error when compiling.

Sun Jul 04, 2010 6:44 am
Just checked and it is installed. Also i tried installing 4.0.0. I get the same error.. but 3.3.4 works fine from the Synaptic Manager. I want 4.0.1 so badly :(
inv
Registered Member
Posts
7
Karma
0

Re: Weird error when compiling.

Sun Jul 04, 2010 8:47 am
I managed to solve this issue.. not by finding a solution to the error.. but i added this PPA https://launchpad.net/~blca/+archive/published to my sources. That guy has the latest version of ktorrent including libktorrent.. which makes it really helpful and easy for total noobs like me :)


Procedure:
$ sudo apt-add-repository ppa:blca/published

Because of dependencies you must also activate the Kubuntu Early Updates PPA:
$ sudo apt-add-repository ppa:kubuntu-ppa/ppa

then
$ sudo apt-get update

and
$ sudo apt-get install ktorrent

Or once you have added the first 2 lines, U can reload and then see the latest ktorrent update in the Synaptic Package Manager.

This is for Ubuntu
imported4-xoxbet
Registered Member
Posts
1
Karma
0

Re: Weird error when compiling.

Mon Aug 02, 2010 10:29 pm
I had the same error on my 64bit machine and kde 4.4.2. After upgrade to 4.4.5 it was ok.
serge
Registered Member
Posts
1
Karma
0

Re: Weird error when compiling.

Sun Aug 15, 2010 7:09 pm
I have some error :
serge@hacker:~/Загрузки/ktorrent-4.0.2/build$ cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` ..
-- Found Qt-Version 4.6.2 (using /usr/bin/qmake)
-- Found X11: /usr/lib/libX11.so
-- Phonon Version: 4.3.1
-- Found KDE 4.4 include dir: /usr/include
-- Found KDE 4.4 library dir: /usr/lib
-- Found the KDE4 kconfig_compiler preprocessor: /usr/bin/kconfig_compiler
-- Found automoc4: /usr/bin/automoc4
CMake Error at CMakeLists.txt:4 (find_package):
Could not find module FindKTorrent.cmake or a configuration file for
package KTorrent.

Adjust CMAKE_MODULE_PATH to find FindKTorrent.cmake or set KTorrent_DIR to
the directory containing a CMake configuration file for KTorrent. The file
will have one of the following names:

KTorrentConfig.cmake
ktorrent-config.cmake



-- Found taglib: -L/usr/lib -ltag
-- Taglib found: -L/usr/lib -ltag
-- Building logviewer plugin (-DENABLE_LOGVIEWER_PLUGIN=false to disable)
-- Building infowidget plugin (-DENABLE_INFOWIDGET_PLUGIN=false to disable)
-- Compiling GeoIP support directly into InfoWidget plugin
-- Building upnp plugin (-DENABLE_UPNP_PLUGIN=false to disable)
-- Building search plugin (-DENABLE_SEARCH_PLUGIN=false to disable)
-- Building webinterface plugin (-DENABLE_WEBINTERFACE_PLUGIN=false to disable)
-- Building scanfolder plugin (-DENABLE_SCANFOLDER_PLUGIN=false to disable)
-- Building ipfilter plugin (-DENABLE_IPFILTER_PLUGIN=false to disable)
-- Building stats plugin (-DENABLE_STATS_PLUGIN=false to disable)
-- Building bwscheduler plugin (-DENABLE_BWSCHEDULER_PLUGIN=false to disable)
-- Building mediaplayer plugin (-DENABLE_MEDIAPLAYER_PLUGIN=false to disable)
-- Found taglib: -L/usr/lib -ltag
-- Taglib found: -L/usr/lib -ltag
-- Building scripting plugin (-DENABLE_SCRIPTING_PLUGIN=false to disable)
-- Building syndication plugin (-DENABLE_SYNDICATION_PLUGIN=false to disable)
-- Building downloadorder plugin (-DENABLE_DOWNLOADORDER_PLUGIN=false to disable)
-- Building shutdown plugin (-DENABLE_SHUTDOWN_PLUGIN=false to disable)
-- Found libkworkspace: /usr/lib/libkworkspace.so
-- Building zeroconf plugin (-DENABLE_ZEROCONF_PLUGIN=false to disable)
-- Building magnetgenerator plugin (-DENABLE_MAGNETGENERATOR_PLUGIN=false to disable)
-- Found libtaskmanager: /usr/lib/libtaskmanager.so

-----------------------------------------------------------------------------
-- The following external packages were located on your system.
-- This installation will have the extra features provided by these packages.
-----------------------------------------------------------------------------
* libkworkspace - libkworkspace library and header files
* libtaskmanager - libtaskmanager library and header files

-----------------------------------------------------------------------------
-- Congratulations! All external packages have been found.
-----------------------------------------------------------------------------

-- Configuring incomplete, errors occurred
How fix it?
George
Moderator
Posts
5421
Karma
1

Re: Weird error when compiling.

Mon Aug 16, 2010 5:12 pm
You must compile and install libktorrent first


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Sogou [Bot]