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

[How to] Compile 3.2beta1 under Ubuntu-Intrepid (gnome)

Tags: None
(comma "," separated)
relaxedcrazyman
Registered Member
Posts
10
Karma
0

Fri Mar 20, 2009 3:13 am
alas, it got it working. i completely removed ktorrent through synaptic packet manager. and then went through the compiling steps again, but of course using cd ktorrent-3.2 in step 13. and it works. thanks again for this great guide.
cbit
Registered Member
Posts
6
Karma
0

Mon Apr 06, 2009 6:16 pm
Hey,

anybody got a solution for my problem on Ubuntu Linux 64 bit?

After following all steps i got the following Error Output after



Code: Select all
cmake -DCMAKE_INSTALL_PREFIX=$(kde4-config --prefix) ..




Code: Select all
-- Found Qt-Version 4.4.3 (using /usr/bin/qmake)
-- Found X11: /usr/lib/libX11.so
-- Phonon Version: 4.3.0
-- Found KDE 4.2 include dir: /usr/include
-- Found KDE 4.2 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)
-- 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)
CMake Error at /usr/share/cmake-2.6/Modules/FindPackageHandleStandardArgs.cmake:57 (MESSAGE):
  Could NOT find Taglib (missing: TAGLIB_INCLUDES TAGLIB_LIBRARIES)
Call Stack (most recent call first):
  /usr/share/kde4/apps/cmake/modules/FindTaglib.cmake:71 (find_package_handle_standard_args)
  plugins/mediaplayer/CMakeLists.txt:1 (find_package)


-- Configuring incomplete, errors occurred!



Thank you in advance,

Greetings,

cbit
MoDaX
Registered Member
Posts
241
Karma
0
OS

Mon Apr 06, 2009 6:17 pm
cbit wrote: Could NOT find Taglib (missing: TAGLIB_INCLUDES TAGLIB_LIBRARIES)
Call Stack (most recent call first):
/usr/share/kde4/apps/cmake/modules/FindTaglib.cmake:71 (find_package_handle_standard_args)
plugins/mediaplayer/CMakeLists.txt:1 (find_package)


-- Configuring incomplete, errors occurred!
[/code]

Install libtag1-dev.
cbit
Registered Member
Posts
6
Karma
0

Mon Apr 06, 2009 8:24 pm
Thank you. You solution worked for me.
vasiauvi
Registered Member
Posts
7
Karma
0

Sat Apr 25, 2009 7:54 pm
Can anyone help?
I have this errors:
Code: Select all
/home/paula/Documents/kitts/ktorrent-3.2.1/plugins/mediaplayer/mediaview.cpp:151: error: no matching function for call to ‘TagLib::FileRef::FileRef(char*, bool, TagLib::AudioProperties::ReadStyle)’
/usr/local/include/taglib/fileref.h:141: note: candidates are: TagLib::FileRef::FileRef(const TagLib::FileRef&)
/usr/local/include/taglib/fileref.h:116: note:                 TagLib::FileRef::FileRef()
make[2]: *** [plugins/mediaplayer/CMakeFiles/ktmediaplayerplugin.dir/mediaview.o] Error 1
make[1]: *** [plugins/mediaplayer/CMakeFiles/ktmediaplayerplugin.dir/all] Error 2
make: *** [all] Error 2


Thank you!!!
George
Moderator
Posts
5421
Karma
1

Mon Apr 27, 2009 12:16 pm
vasiauvi wrote:Can anyone help?
I have this errors:
Code: Select all
/home/paula/Documents/kitts/ktorrent-3.2.1/plugins/mediaplayer/mediaview.cpp:151: error: no matching function for call to ‘TagLib::FileRef::FileRef(char*, bool, TagLib::AudioProperties::ReadStyle)’
/usr/local/include/taglib/fileref.h:141: note: candidates are: TagLib::FileRef::FileRef(const TagLib::FileRef&)
/usr/local/include/taglib/fileref.h:116: note:                 TagLib::FileRef::FileRef()
make[2]: *** [plugins/mediaplayer/CMakeFiles/ktmediaplayerplugin.dir/mediaview.o] Error 1
make[1]: *** [plugins/mediaplayer/CMakeFiles/ktmediaplayerplugin.dir/all] Error 2
make: *** [all] Error 2


Thank you!!!


Probably an older version of taglib. Which version of taglib have you got installed ?
vasiauvi
Registered Member
Posts
7
Karma
0

Mon Apr 27, 2009 3:49 pm
George, thanks for the answer.
I have installed taglib from here: http://developer.kde.org/~wheeler/tagli ... ocs.tar.gz
I think that is the latest version.
George
Moderator
Posts
5421
Karma
1

Mon Apr 27, 2009 4:51 pm
That is the API documentation.

Just look in the file /usr/local/include/taglib/taglib.h
At the top of the file the version is mentioned like this :

#define TAGLIB_MAJOR_VERSION 1
#define TAGLIB_MINOR_VERSION 5
#define TAGLIB_PATCH_VERSION 0
vasiauvi
Registered Member
Posts
7
Karma
0

Tue Apr 28, 2009 5:41 pm
This is what I have in the taglib.h:
Code: Select all
#define TAGLIB_MAJOR_VERSION 1
#define TAGLIB_MINOR_VERSION 5
#define TAGLIB_PATCH_VERSION 0
George
Moderator
Posts
5421
Karma
1

Wed Apr 29, 2009 8:11 am
Can you try this :

In plugins/mediaplayer/mediaview.cpp at line 151, change this :

TagLib::FileRef ref(encoded.data(),true,TagLib::AudioProperties::Fast);


into :

TagLib::FileRef ref = TagLib::FileRef(encoded.data(),true,TagLib::AudioProperties::Fast);

Then recompile.

If this works, then the problem is caused by some compiler behavior differences.
vasiauvi
Registered Member
Posts
7
Karma
0

Wed Apr 29, 2009 6:50 pm
Hello George,
Thank's for your patience!
I have modified the mediaview.cpp as you said and now I get this:
Code: Select all
In file included from /home/paula/Documents/kitts/ktorrent-3.2.1/plugins/mediaplayer/mediaview.cpp:29:
/usr/local/include/taglib/fileref.h:107: error: ‘File’ declared as a ‘virtual’ field
/usr/local/include/taglib/fileref.h:107: error: expected ‘;’ before ‘*’ token
/usr/local/include/taglib/fileref.h:127: error: expected `)' before ‘fileName’
/usr/local/include/taglib/fileref.h:136: error: expected `)' before ‘*’ token
/usr/local/include/taglib/fileref.h:179: error: expected ‘;’ before ‘*’ token
/usr/local/include/taglib/fileref.h:216: error: ‘StringList’ does not name a type
/usr/local/include/taglib/fileref.h:250: error: expected ‘;’ before ‘*’ token
/home/paula/Documents/kitts/ktorrent-3.2.1/plugins/mediaplayer/mediaview.cpp: In member function ‘void kt::MediaView::metaDataChanged()’:
/home/paula/Documents/kitts/ktorrent-3.2.1/plugins/mediaplayer/mediaview.cpp:151: error: no matching function for call to ‘TagLib::FileRef::FileRef(char*, bool, TagLib::AudioProperties::ReadStyle)’
/usr/local/include/taglib/fileref.h:141: note: candidates are: TagLib::FileRef::FileRef(const TagLib::FileRef&)
/usr/local/include/taglib/fileref.h:116: note:                 TagLib::FileRef::FileRef()
make[2]: *** [plugins/mediaplayer/CMakeFiles/ktmediaplayerplugin.dir/mediaview.o] Error 1
make[2]: *** Waiting for unfinished jobs....


If there is no problem for you please tell me what is the next step.
Else it's not a problem, I will wait until I will can install directly the ktorrent.
Thanks again!
George
Moderator
Posts
5421
Karma
1

Thu Apr 30, 2009 8:54 am
The only thing I can think of is that you have two conflicting versions of taglib installed.

Is there also a /usr/include/taglib directory ?
vasiauvi
Registered Member
Posts
7
Karma
0

Thu Apr 30, 2009 6:02 pm
Yes, I have a taglib directory in the /usr/include/taglib.
Should I delete it and try again?
vasiauvi
Registered Member
Posts
7
Karma
0

Thu Apr 30, 2009 6:30 pm
Hello,
I've did it!It's working!
I've deleted the /usr/include/taglib folder and recompiled.An other error occured but what I did is I have leaved the /build folder and I have compiled again from the ktorrent3.2.1 folder with make -j4 and sudo make install.
Thank's for the patience !
ashwintv
Registered Member
Posts
1
Karma
0
i get the following error
[ 90%] Building CXX object ktorrent/CMakeFiles/ktorrent.dir/fileselectdlg.o
/home/ashwin/ktorrent-3.3.2/ktorrent/fileselectdlg.cpp: In member function ‘void kt::FileSelectDlg::setShowFileTree(bool)’:
/home/ashwin/ktorrent-3.3.2/ktorrent/fileselectdlg.cpp:503: error: invalid use of incomplete type ‘struct QHeaderView’
/usr/include/qt4/QtGui/qtreeview.h:58: error: forward declaration of ‘struct QHeaderView’
/home/ashwin/ktorrent-3.3.2/ktorrent/fileselectdlg.cpp:516: error: invalid use of incomplete type ‘struct QHeaderView’
/usr/include/qt4/QtGui/qtreeview.h:58: error: forward declaration of ‘struct QHeaderView’
make[2]: *** [ktorrent/CMakeFiles/ktorrent.dir/fileselectdlg.o] Error 1
make[1]: *** [ktorrent/CMakeFiles/ktorrent.dir/all] Error 2
make: *** [all] Error 2

help
thanks


Bookmarks



Who is online

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