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

KT 4.0.1 and libktorrent 1.0.1 have been release

Tags: None
(comma "," separated)
George
Moderator
Posts
5421
Karma
1
The first bugfix release for the 4.0 series has arrived. Several crashes have been fixed, as well as a problem which caused a lot of disk activity when downloading at high speed on certain filesystems.

If you upgrade ktorrent to 4.0.1, it is recommended to also upgrade libktorrent to 1.0.1, seeing that several of the bugfixes are in libktorrent.
MoDaX
Registered Member
Posts
241
Karma
0
OS
George wrote:The first bugfix release for the 4.0 series has arrived. Several crashes have been fixed, as well as a problem which caused a lot of disk activity when downloading at high speed on certain filesystems.

If you upgrade ktorrent to 4.0.1, it is recommended to also upgrade libktorrent to 1.0.1, seeing that several of the bugfixes are in libktorrent.


So my biggest fears came true in the very first minor release of libktorrent 1.0.1. Binary compatibility was broken and soversion was not bumped.

From Policies/Binary Compatibility Issues With C++:

Code: Select all
You cannot...
<snip>
For non-static members:
 add new, data members to an existing class.


From the 1.0.0 vs. 1.0.1 diff:
Code: Select all
--- a/src/utp/utpserver.h
+++ b/src/utp/utpserver.h
<snip>
@@ -128,6 +161,8 @@ namespace utp
       QSocketNotifier* read_notifier;
       QSocketNotifier* write_notifier;
       QBasicTimer timer;
+      QList<mse::StreamSocket*> pending;
+      MainThreadCall* mtc;
    };
 
 }


UTPServer is a public class. This breakage is probably (I'm not sure) limited to classes which inherit from UTPServer if there are any but it's still a BIC change without SOVERSION bump. libktorrent is supposedly a public library now.

Unfortunately, it was pretty clear that your hands were tied wrt more stable binary compatibility because classes in libktorrent do not use d pointers. libktorrent is going to be tough library to manage :(
MoDaX
Registered Member
Posts
241
Karma
0
OS
Fortunately, it appears that nothing in KTorrent/KGet inherits from UTPServer so this BIC is not destructive.
George
Moderator
Posts
5421
Karma
1
Indeed I overlooked that.

Will update the packages soon.
imported4-Steve
Registered Member
Posts
2
Karma
0
I now have no access to the plugins or other functionalities that were in 4.0 since I upgraded.

(Only Magnet and Que Manager are available?)

Is this normal, or should I reinstall?
bjb
Registered Member
Posts
4
Karma
0
Steve wrote:I now have no access to the plugins or other functionalities that were in 4.0 since I upgraded.

(Only Magnet and Que Manager are available?)

Is this normal, or should I reinstall?

I have noticed this in Kubuntu 10.4 using the version of ktorrent from this location:

http://www.manast.com/2010/05/26/install-ktorrent-4-0-in-ubuntu-kubuntu-lucid/

I thought it was a packaging error, maybe I am wrong.

4.0 works fine though.. Hmmmm.. Perhaps the plugins are not in the right location and not found?
George
Moderator
Posts
5421
Karma
1
Run kbuildsycoca4 then restart ktorrent
imported4-Steve
Registered Member
Posts
2
Karma
0
Running kbuildsycoca4 didnt do it for me.

Also kubuntu 10.04, and from the same source as above (bjb post). http://ppa.launchpad.net/blca/published/ubuntu lucid main

ktorrent is working better though. I still have no access to trackers etc.

(sorry admin, I must apologize, maybe this post should have been in help, my bad)

UPDATE:

Theres been an update from the ppa repository we were using, now everything's working again,

ktorrent's perfect!
aguo0719
Registered Member
Posts
1
Karma
0
Cenxi City was informed today from the Guangxi, on the city's stabilization plate Sanbao Lam Reservoir Reservoir South liduzhen old unattended in the inspection issue, the city started the accountability system, Caoch Outlet hold Municipal Standing Committee decided that the three Town of Party secretary, crossed the town party secretary, crossed the town mayor and other responsible persons, 11 were given notice of criticism, admonishing remarks, administrative demerit, Coach Hanbags warning other party. Thus, in a week, 38 people in Guangxi have been issue for reservoirs to be processed unattended.
June 20, the Standing Committee of Liuzhou Rong'an County held a meeting on the first rural county collapsed cave Tam Reservoir management Momou absent without leave to deal with the views of the event, Coach Bags decided to give Lake the first township party secretary admonishing remarks, the first village on the Lake township administrative warning, the first township People's Congress Chairman of the Lake (township leader in charge), rural armed Minister (including village leaders) were given administrative demerit of reservoir management Momou hole collapse to firing handle.
To ensure that all measures are in place, Caoch Purses Guangxi Water Conservancy Department transferred 68 key working group composed of 34 to conducted a thorough investigation of the reservoir form a rigorous and comprehensive inspection security issues, and problems found in strict supervision accountability , the four reservoirs unattended events, that is, Caoch Shoes the working group found in the inspection.
sergep71
Registered Member
Posts
4
Karma
0
Please let me know if I need to post this message in a new topic.

I've downloaded KT 4.0.1 and libkt 1.0.1, and I'm running Kubuntu Lucid. I made sure that I got all the dependencies as listed in the faq on the wiki.
I'm getting an error on the cmake command:


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


Is there a file I have to modify or is there some other pkg I need to install?

Thanks in advance.

~S
George
Moderator
Posts
5421
Karma
1
First compile libktorrent and install it, FindKTorrent.cmake will be installed as part of libktorrent
sergep71
Registered Member
Posts
4
Karma
0
odd. I had compiled and installed libktorrent prior to compiling ktorrent and it gave the above error. I recompiled and reinstalled libktorrent and the cmake command went thru without error.

Now I get an error on the make command:

Scanning dependencies of target ktmediaplayerplugin
[ 48%] Building CXX object plugins/mediaplayer/CMakeFiles/ktmediaplayerplugin.dir/ktmediaplayerplugin_automoc.o
In file included from /home/serge/Downloads/ktorrent-4.0.1/build/plugins/mediaplayer/moc_videowidget.cpp:10,
from /home/serge/Downloads/ktorrent-4.0.1/build/plugins/mediaplayer/ktmediaplayerplugin_automoc.cpp:10:
/home/serge/Downloads/ktorrent-4.0.1/build/plugins/mediaplayer/../../../plugins/mediaplayer/videowidget.h:70: error: ISO C++ forbids declaration of ‘VideoWidget’ with no type
/home/serge/Downloads/ktorrent-4.0.1/build/plugins/mediaplayer/../../../plugins/mediaplayer/videowidget.h:70: error: invalid use of ‘::’
/home/serge/Downloads/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


Translation of this error would be greatly appreciated. Thanks :)
sergep71
Registered Member
Posts
4
Karma
0
After reviewing the cmake command output I see the following:

serge@ubuntu-D4600:~/Downloads/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)


... and noticed that the phonon version is 4.3.1, but I know that according to the kpkg installer that 4.6.2 should be installed. Where is it reading phonon from? Any way to fix this?

Also, based on the error with videowidget.h that I have from my prior post, how do I use the '-DENABLE_MEDIAPLAYER_PLUGIN=false' switch?

Further assistance on this would be greatly appreciated. Thanks :)
George
Moderator
Posts
5421
Karma
1
Some people get that compile error, you can add -DENABLE_MEDIAPLAYER_PLUGIN=false to the cmake command line to disable the plugin.

However it would be more interesting to find out why. Before disabling the plugin, could you try the following:

In the root of the ktorrent directory tree is a file named CMakeLists.txt, try adding the following line to it.

remove_definitions(-DQT_NO_PHONON_VIDEO)

Add it right before this section:

add_subdirectory(libktcore)
add_subdirectory(plugins)
add_subdirectory(ideal)
add_subdirectory(ktorrent)
add_subdirectory(ktupnptest)
add_subdirectory(plasma)
add_subdirectory(ktmagnetdownloader)

Then rerun make
User avatar
roentgen
Registered Member
Posts
20
Karma
0
OS
I just tried it with no luck. I added those lines at the end of CMakeLists.txt, is it OK?

Result of make

Code: Select all
Linking CXX shared module ../../lib/ktbwschedulerplugin.so                                                                                                                                                         
[ 25%] Built target ktbwschedulerplugin                                                                                                                                                                           
Generating moc_mediaplayerplugin.cpp
Generating moc_playlist.cpp                                                                                                                                                                                       
Generating moc_mediamodel.cpp                                                                                                                                                                                     
Generating moc_videowidget.cpp                                                                                                                                                                                     
Generating moc_playlistwidget.cpp                                                                                                                                                                                 
Generating moc_mediaview.cpp                                                                                                                                                                                       
Generating moc_mediaplayer.cpp                                                                                                                                                                                     
Generating moc_mediaplayeractivity.cpp                                                                                                                                                                             
[ 25%] Built target ktmediaplayerplugin_automoc                                                                                                                                                                   
[ 25%] Generating mediaplayerpluginsettings.h, mediaplayerpluginsettings.cpp
[ 25%] Generating screensaver_interface.cpp, screensaver_interface.h                                                                                                                                               
[ 25%] Generating screensaver_interface.moc                                                                                                                                                                       
[ 26%] Building CXX object plugins/mediaplayer/CMakeFiles/ktmediaplayerplugin.dir/ktmediaplayerplugin_automoc.o                                                                                                   
In file included from /usr/src/ktorrent-4.0.1/plugins/mediaplayer/moc_videowidget.cpp:10,                                                                                                                         
                 from /usr/src/ktorrent-4.0.1/plugins/mediaplayer/ktmediaplayerplugin_automoc.cpp:7:
/usr/src/ktorrent-4.0.1/plugins/mediaplayer/videowidget.h:70: error: ISO C++ forbids declaration of ‘VideoWidget’ with no type
/usr/src/ktorrent-4.0.1/plugins/mediaplayer/videowidget.h:70: error: invalid use of ‘::’
/usr/src/ktorrent-4.0.1/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



Bookmarks



Who is online

Registered users: abc72656, Bing [Bot], daret, Google [Bot], lockheed, Sogou [Bot], Yahoo [Bot]