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

[solved] Compiling ktorrent 3.3.4+dfsg.1 gives GeoIP error

Tags: None
(comma "," separated)
3bob
Registered Member
Posts
3
Karma
0
edit3: SOLVED
the sources http://http.us.debian.org/debian/pool/main/k/ktorrent/ktorrent_3.3.4+dfsg.1.orig.tar.bz2
miss the GeoIP.c and GeoIP.h in subfolder plugins/infowidgets.

The original sources http://ktorrent.org/downloads/3.3.4/ktorrent-3.3.4.tar.bz2 work like expected, so just use these.

original post below:
I tried to compile ktorrent 3.3.4+dsfg.1 under kubuntu karmic according to the steps given on kdeapps.com,
but when configuring, cmake gives the following output, indicating something is wrong with paths to libgeoip1? I'm a educated noob if you will, but I really couldnt get it to work. Anyone else has encountered something like this, or found a solution?
Code: Select all
dave@daveva-pc:~/Downloads/ktorrent-3.3.4+dfsg.1$ cmake -DCMAKE_INSTALL_PREFIX=$(kde4-config --prefix)
-- Found Qt-Version 4.5.2 (using /usr/bin/qmake)
-- Found X11: /usr/lib/libX11.so
-- Phonon Version: 4.3.1
-- Found KDE 4.3 include dir: /usr/include
-- Found KDE 4.3 library dir: /usr/lib
-- Found the KDE4 kconfig_compiler preprocessor: /usr/bin/kconfig_compiler
-- Found automoc4: /usr/bin/automoc4
-- Building KTorrent with DHT support (-DENABLE_DHT_SUPPORT=false to disable)
-- 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)
-- 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
CMake Error in plugins/infowidget/CMakeLists.txt:
  Cannot find source file "GeoIP.c".  Tried extensions .c .C .c++ .cc .cpp
  .cxx .m .M .mm .h .hh .h++ .hm .hpp .hxx .in .txx


-- Build files have been written to: /home/dave/Downloads/ktorrent-3.3.4+dfsg.1


Edit:
of course it works if I try to configure and then compile with disabled infowidget support like this:
Code: Select all
cmake -DCMAKE_INSTALL_PREFIX=$(kde4-config --prefix) -DENABLE_INFOWIDGET_PLUGIN=false


But thats more a workaround than a solution ^^

Edit2:
Configuring and compiling ktorrent 4.0beta1 on the same machine worked without problems.

3bob

Last edited by 3bob on Wed Mar 10, 2010 7:56 pm, edited 6 times in total.
George
Moderator
Posts
5421
Karma
1
It complains about not finding GeoIP.c which should be in plugins/infowidget, it is part of the source.

Is that file there ?
3bob
Registered Member
Posts
3
Karma
0
nope, in plugins/infowidget, theres no GeoIP.c, only the geoip folder with the country flags. I thought cmake looks for it in some libgeoip-dev path, after looking into the CMakeLists.txt in plugins/infowidget/ (row 7 and 8 )

edit: I just checked, in ktorrent 4.0beta1 its right where it should be, GeoIP.c and GeoIP.h are in plugins/infowidget/
George
Moderator
Posts
5421
Karma
1
Download the official source and compile that:

http://ktorrent.org/downloads/3.3.4/kto ... .4.tar.bz2
3bob
Registered Member
Posts
3
Karma
0
ok, that was the problem. *note to self, always use the official sources first...*
I had used the sources from http://http.us.debian.org/debian/pool/main/k/ktorrent/ktorrent_3.3.4+dfsg.1.orig.tar.bz2, and they miss the GeoIP.c and GeoIP.h in subfolder plugins/infowidget/.

Well thanks for pointing me to the correct source!
And after noobing around like this, it still feels great when the compiling goes through^^
MoDaX
Registered Member
Posts
241
Karma
0
OS
3bob wrote:ok, that was the problem. *note to self, always use the official sources first...*
I had used the sources from http://http.us.debian.org/debian/pool/main/k/ktorrent/ktorrent_3.3.4+dfsg.1.orig.tar.bz2, and they miss the GeoIP.c and GeoIP.h in subfolder plugins/infowidget/.

Well thanks for pointing me to the correct source!
And after noobing around like this, it still feels great when the compiling goes through^^


Of course it is missing. It is one of the reasons for the tarball +dfsg.1 prefix.
George
Moderator
Posts
5421
Karma
1
There is an option you can pass to cmake to use the installed geoip library (add -DWITH_SYSTEM_GEOIP to the cmake commandline), debian probably compiles with this option.


Bookmarks



Who is online

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