Bug 261494

Summary: kdenetwork: kget bittorrent factory 'InitLibKTorrent' is not a member of 'bt'
Product: [Applications] kget Reporter: Jeremy Lavergne <snc>
Component: torrentAssignee: KGet authors <kget>
Status: RESOLVED FIXED    
Severity: normal CC: mat69, scarpino
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: macOS   
Latest Commit: Version Fixed In:

Description Jeremy Lavergne 2010-12-28 22:28:02 UTC
Version:           unspecified (using KDE 4.5.90) 
OS:                OS X

Compiler complains that InitLibKTorrent is not part of bt.

Relevant line:
kget/transfer-plugins/bittorrent/bttransferfactory.cpp:31:
    if (!bt::InitLibKTorrent())


Reproducible: Always

Steps to Reproduce:
Build in MacPorts

Actual Results:  
Build fails.

Expected Results:  
Successful build.

/opt/local/var/macports/build/_Users_aeetes_kde_kdenetwork4/work/kdenetwork-4.5.90/kget/transfer-plugins/bittorrent/bttransferfactory.cpp: In constructor 'BTTransferFactory::BTTransferFactory(QObject*, const QVariantList&)':
/opt/local/var/macports/build/_Users_aeetes_kde_kdenetwork4/work/kdenetwork-4.5.90/kget/transfer-plugins/bittorrent/bttransferfactory.cpp:31: error: 'InitLibKTorrent' is not a member of 'bt'
make[2]: *** [kget/transfer-plugins/bittorrent/CMakeFiles/kget_bittorrentfactory.dir/bttransferfactory.o] Error 1
Comment 1 Christoph Feck 2010-12-28 22:54:00 UTC
Which version of libktorrent are you using?
Comment 2 Jeremy Lavergne 2010-12-28 22:54:53 UTC
libktorrent @1.0.4
Comment 4 Matthias Fuchs 2010-12-30 13:48:00 UTC
It was also fixed in branch, so should be in 4.6.
http://websvn.kde.org/branches/KDE/4.6/kdenetwork/kget/transfer-plugins/bittorrent/bttransferfactory.cpp?r1=1208598&r2=1209132