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

Compiling KGet on Kubuntu Maverick

Tags: None
(comma "," separated)
udx6bs
Registered Member
Posts
11
Karma
0
OS

Compiling KGet on Kubuntu Maverick

Thu Sep 30, 2010 11:28 am
Hello there,
I'm trying to compile KGet. I downloaded the sources from "svn://anonsvn.kde.org/home/kde/trunk/KDE/kdenetwork/kget/". When trying to make the project I get following errors:

CMake Error at conf/CMakeLists.txt:1 (install):
install FILES given no DESTINATION!


CMake Error at core/plugin/CMakeLists.txt:1 (install):
install FILES given no DESTINATION!


CMake Error at ui/icons/CMakeLists.txt:1 (kde4_install_icons):
Unknown CMake command "kde4_install_icons".


-- Configuring incomplete, errors occurred!

I'm using Kubuntu Maverick KDE 4.5.1

Can anyone help me on this.
Thx in advance.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
KDE applications need to be checked out and configured at the module level, then built and installed at either the application or module level.

Code: Select all
svn co svn://anonsvn.kde.org/home/kde/trunk/KDE/kdenetwork/
mkdir kdenetwork/build
cd kdenetwork/build
cmake ..
cd kget
make


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
udx6bs
Registered Member
Posts
11
Karma
0
OS
Thx for the reply :),
I checked out it newly from the svn.
Installed a bunch of dev libraries.
Unfortunately I've got still some errors
1.) can't install libkwebkitpart-dev
2.) CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
X11_Xdamage_LIB (ADVANCED)

Here is my cmake output:

Code: Select all
-- Found Qt-Version 4.7.0 (using /usr/bin/qmake-qt4)
-- Found X11: /usr/lib/libX11.so
-- Found KDE 4.5 include dir: /usr/include
-- Found KDE 4.5 library dir: /usr/lib
-- Found the KDE4 kconfig_compiler preprocessor: /usr/bin/kconfig_compiler
-- Found automoc4: /usr/bin/automoc4
-- Strigi API needs 'signed char'
-- Found gpgme-config at /usr/bin/gpgme-config
-- Found gpgme v1.2.0, checking for flavours...
--  Found flavour 'vanilla', checking whether it's usable...yes
--  Found flavour 'pthread', checking whether it's usable...yes
--  Found flavour 'pth', checking whether it's usable...yes
-- Usable gpgme flavours found:  vanilla pthread pth
-- optional cmake package FindKWebKitPart.cmake (for kwebkitpart) was not found.
-- Found libortp: /usr/lib/libortp.so
-- Found speex library : /usr/lib/libspeex.so
-- ALSA not found
-- Could NOT find Xmms  (missing:  XMMS_LIBRARIES XMMS_INCLUDE_DIRS)
-- checking for module 'mediastreamer>=2.3.0'
--   found mediastreamer, version 2.6.0
-- Found Mediastreamer: mediastreamer;ortp;pthread;srtp
-- WARNING: you are using the obsolete 'PKGCONFIG' macro use FindPkgConfig
#define GG_CONFIG_HAVE_PTHREAD
-- Not building jingle support (recommended)
-- Building Google Talk libjingle support
-- Building Windows Live Messenger voice clip support
-- Mozilla plugin install dir is "/usr/local/netscape/plugins" to change use parm -DMOZPLUGIN_INSTALL_DIR=<directory>
-- Building Google Talk libjingle voice call support, supported codecs:
--  Speex: yes
--  MULAW: yes
-- Not building Google Talk libjingle filetransfer support
-- Warning: kppp use setuid

-----------------------------------------------------------------------------
-- The following external packages were located on your system.
-- This installation will have the extra features provided by these packages.
-----------------------------------------------------------------------------
   * libvncserver - VNC Server library
   * libjpeg - Development library for JPEG formatted image files
   * Soprano - Semantic Desktop Storing
   * Shared desktop ontologies - Desktop ontologies
   * Nepomuk - Semantic Desktop
   * SQLite - SQLite is a Binary-Database
   * Strigi - Metadata extraction
   * QCA2 - Qt Cryptographic Architecture
   * gpgme - GnuPG Made Easy Development Libraries
   * QGpgME - The QGpgME library
   * telepathy-qt4 - Telepathy Qt Bindings
   * libktorrent - Backend Library of KTorrent
   * KDE4Workspace - KDE4 workspace libraries, part of kdebase-workspace
   * libkonq - KDE4 Konqueror library
   * libortp - oRTP provides an API to send rtp packets
   * speex - speex is an encoder/decoder for the speex audio format.
   * QCA2 - Qt Cryptographic Architecture
   * IDN - GNU Libidn Internationalized Domain Name (IDN) implemenation
   * LibXML2 - Libraries used to develop XML applications
   * LibXSLT - A library to transform XML files into other XML files
   * libotr - A library to encrypt messages with Off-the-Record encryption
   * libmsn - A library providing support for the msn protocol
   * giflib - Handwriting messages support for WLM
   * mediastreamer - A streaming engine specialized for voice/video telephony applications
   * libmeanwhile - A library for protocol support for connection to Sametime servers
   * libgadu - A library providing support for Gadu-Gadu protocol
   * libv4l - Collection of video4linux support libraries
   * Expat - Expat is a stream oriented XML parser
   * SSL -

-----------------------------------------------------------------------------
-- The following OPTIONAL packages could NOT be located on your system.
-- Consider installing them to enable more features from this software.
-----------------------------------------------------------------------------
   * KWebKitPart  <https://svn.kde.org/home/kde/trunk/extragear/base/kwebkitpart>
     KWebKitPart libraries and header files
     KWebKitPart is necessary to compile KGet support for KWebKitPart.
   * Alsa  <>
     Alsa is Advanced Linux Sound Architecture
     Needed for Jingle Support in Kopete Jabber Plugin
   * XMMS  <http://www.xmms.org>
     X MultiMedia System development libraries
     Used by the Kopete nowlistening plugin to support the XMMS player.

-----------------------------------------------------------------------------

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
X11_Xdamage_LIB (ADVANCED)
    linked by target "krfb" in directory /home/rendszergazda/Munka/KDE/kdenetwork/krfb
    linked by target "krfb_framebuffer_x11" in directory /home/rendszergazda/Munka/KDE/kdenetwork/krfb/framebuffers/x11

-- Configuring incomplete, errors occurred!


and my apt-get message:
Code: Select all
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libkwebkit-dev : Depends: kdelibs5-dev but it is not going to be installed
E: Broken packages

However I have kdelibs5-dev installed

Any thoughts on these errors?
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
You need to install the xorg development package(s). Not sure what they are called in *buntu though.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
udx6bs
Registered Member
Posts
11
Karma
0
OS
Hi there,
sorry I was on Vacation.
cmake runs ok, however compiling kget gives following error:

Code: Select all
[  0%] Built target kget_automoc
[  0%] Built target kgetcore_automoc
[ 18%] Built target kgetcore
[ 43%] Built target kget
[ 43%] Built target kget_kiofactory_automoc
[ 43%] Built target kget_kiofactory
[ 43%] Built target kcm_kget_multisegkiofactory_automoc
[ 43%] Built target kcm_kget_multisegkiofactory
[ 43%] Built target kget_multisegkiofactory_automoc
[ 43%] Built target kget_multisegkiofactory
[ 43%] Built target kcm_kget_metalinkfactory_automoc
[ 50%] Built target kcm_kget_metalinkfactory
[ 50%] Built target kget_metalinkfactory_automoc
[ 56%] Built target kget_metalinkfactory
[ 56%] Built target kcm_kget_bittorrentfactory_automoc
[ 56%] Built target kcm_kget_bittorrentfactory
[ 56%] Built target kget_bittorrentfactory_automoc
[ 56%] Building CXX object kget/transfer-plugins/bittorrent/CMakeFiles/kget_bittorrentfactory.dir/bttransferfactory.o
In file included from /usr/include/KDE/Nepomuk/../../nepomuk/class.h:28,                                                                       
                 from /usr/include/KDE/Nepomuk/../../nepomuk/resource.h:29,
                 from /usr/include/KDE/Nepomuk/../../nepomuk/tag.h:24,
                 from /usr/include/KDE/Nepomuk/Tag:1,
                 from /home/rendszergazda/Munka/kdenetwork/kget/transfer-plugins/bittorrent/../../core/transfergroup.h:26,
                 from /home/rendszergazda/Munka/kdenetwork/kget/transfer-plugins/bittorrent/../../core/transfergrouphandler.h:18,
                 from /home/rendszergazda/Munka/kdenetwork/kget/transfer-plugins/bittorrent/../../core/kget.h:33,
                 from /home/rendszergazda/Munka/kdenetwork/kget/transfer-plugins/bittorrent/../../core/plugin/transferfactory.h:37,
                 from /home/rendszergazda/Munka/kdenetwork/kget/transfer-plugins/bittorrent/bttransferfactory.h:13,
                 from /home/rendszergazda/Munka/kdenetwork/kget/transfer-plugins/bittorrent/bttransferfactory.cpp:11:
/usr/include/KDE/Nepomuk/../../nepomuk/entity.h:260: warning: ‘Entity’ is deprecated
/usr/include/KDE/Nepomuk/../../nepomuk/entity.h:263: warning: ‘Entity’ is deprecated (declared at /usr/include/KDE/Nepomuk/../../nepomuk/entity.h:258)
/usr/include/KDE/Nepomuk/../../nepomuk/entity.h:263: warning: ‘Entity’ is deprecated
In file included from /usr/include/KDE/Nepomuk/../../nepomuk/resource.h:29,
                 from /usr/include/KDE/Nepomuk/../../nepomuk/tag.h:24,
                 from /usr/include/KDE/Nepomuk/Tag:1,
                 from /home/rendszergazda/Munka/kdenetwork/kget/transfer-plugins/bittorrent/../../core/transfergroup.h:26,
                 from /home/rendszergazda/Munka/kdenetwork/kget/transfer-plugins/bittorrent/../../core/transfergrouphandler.h:18,
                 from /home/rendszergazda/Munka/kdenetwork/kget/transfer-plugins/bittorrent/../../core/kget.h:33,
                 from /home/rendszergazda/Munka/kdenetwork/kget/transfer-plugins/bittorrent/../../core/plugin/transferfactory.h:37,
                 from /home/rendszergazda/Munka/kdenetwork/kget/transfer-plugins/bittorrent/bttransferfactory.h:13,
                 from /home/rendszergazda/Munka/kdenetwork/kget/transfer-plugins/bittorrent/bttransferfactory.cpp:11:
/usr/include/KDE/Nepomuk/../../nepomuk/class.h:312: warning: ‘Class’ is deprecated
/usr/include/KDE/Nepomuk/../../nepomuk/class.h:319: warning: ‘Class’ is deprecated (declared at /usr/include/KDE/Nepomuk/../../nepomuk/class.h:302)
/usr/include/KDE/Nepomuk/../../nepomuk/class.h:319: warning: ‘Class’ is deprecated
/usr/include/KDE/Nepomuk/../../nepomuk/class.h:353: warning: ‘Class’ is deprecated (declared at /usr/include/KDE/Nepomuk/../../nepomuk/class.h:302)
/usr/include/KDE/Nepomuk/../../nepomuk/class.h:361: warning: ‘Class’ is deprecated (declared at /usr/include/KDE/Nepomuk/../../nepomuk/class.h:302)
/usr/include/KDE/Nepomuk/../../nepomuk/class.h:369: warning: ‘Class’ is deprecated
/usr/include/KDE/Nepomuk/../../nepomuk/class.h:377: warning: ‘Class’ is deprecated
/usr/include/KDE/Nepomuk/../../nepomuk/class.h:389: warning: ‘Class’ is deprecated (declared at /usr/include/KDE/Nepomuk/../../nepomuk/class.h:302)
/home/rendszergazda/Munka/kdenetwork/kget/transfer-plugins/bittorrent/bttransferfactory.cpp: In constructor ‘BTTransferFactory::BTTransferFactory(QObject*, const QVariantList&)’:
/home/rendszergazda/Munka/kdenetwork/kget/transfer-plugins/bittorrent/bttransferfactory.cpp:28: error: ‘InitLibKTorrent’ is not a member of ‘bt’
make[2]: *** [kget/transfer-plugins/bittorrent/CMakeFiles/kget_bittorrentfactory.dir/bttransferfactory.o] Error 1
make[1]: *** [kget/transfer-plugins/bittorrent/CMakeFiles/kget_bittorrentfactory.dir/all] Error 2
make: *** [all] Error 2


What now?
Thx in advance.

Also,
These are the packeges I needed for cmake to run on kubuntu:
subversion cmake g++ build-essential kdelibs5-dev kdepimlibs5-dev libjpeg-dev libsqlite3-dev libkonq5-dev libqimageblitz-dev libmeanwhile-dev libgadu-dev libgif-dev libortp-dev libxslt1-dev libotr2-dev libmsn-dev libv4l-dev libvncserver-dev libqca2-dev libgpgme11-dev libktorrent-dev libxtst-dev libspeex-dev libidn11-dev libmediastreamer-dev libtelepathy-qt4-dev libstrigihtmlgui-dev xorg-dev libxmmsclient-dev
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
It appears that the version of libktorrent you have installed is too old. Do you need Torrent support in KGet? If not, it may be best to uninstall the libktorrent-dev package.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
udx6bs
Registered Member
Posts
11
Karma
0
OS
Yeahyeahyeah,
thx a lot for your dedicated support. I've finally compiled and run it successfully.


Bookmarks



Who is online

Registered users: Bing [Bot], Evergrowing, Google [Bot], rockscient