[kde-linux] Latest ktorrent

jd1008 jd1008 at gmail.com
Sun Jun 14 22:36:57 UTC 2015



On 06/13/2015 03:35 AM, Duncan wrote:
> jd1008 posted on Fri, 12 Jun 2015 20:40:40 -0600 as excerpted:
>
>> I downloaded from the kde ktorrent web page: ktorrent-4.3.1.tar.bz2
>> libktorrent-1.3.1.tar.bz2 I unpacked them and found they contain no
>> makefile and no instructions on how to build them
>>
>> Need info on how to build them.
> First, please turn off the HTML.  Plain text is all that is required to
> get the message across, and when posting a question it doesn't pay to
> irritate the folks that might have your answer by posting in HTML, which
> many techies (including me) believe belongs on the web, not in email,
> where it's more of a security issue than a help.
>
> That out of the way...
>
> Ktorrent webpage?  I see this, which works but doesn't have much info:
>
> https://userbase.kde.org/KTorrent
>
> ... which refers to
>
> ktorrent.org, which unfortunately seems to be an expired domain.
>
> So... which web page were you referring to?
>
> OK, looks like wikipedia has more current information than kde's own
> website.  It says the official website is...
>
> http://ktorrent.pwsp.net
>
> ... which actually works. =:^)
>
> Some of the links are dead, pointing to the expired ktorrent.org site,
> but it does actually have a reasonable bit of information, download
> links, etc.
>
> On the download page, in addition to the download links, there's build
> instructions.
>
> http://ktorrent.pwsp.net/?q=downloads
>
> Basically, make sure you have the necessary development packages, (like
> kdelibs-dev or kdelibs-devel, depending on your distro, on binary distros
> libs are normally split into two packages, the runtime package and the
> buildtime package, unnecessary at runtime but containing builtime files
> such as headers, etc), cmake, etc.  Then run cmake to create the makefile
> (this step being for cmake based packages much like running .configure on
> an autotools based package), make, and make install.
>
> But read the page for the specifics.
>
> On a more general note, there's...
>
> https://techbase.kde.org
>
> ... which is the tech/admin/developer oriented jumping off point for all
> things kde.  There you will find more general instructions for setting up
> a kde development environment, etc, if that is your wish, along with
> links to various projects, etc.  The kde sysadmin documentation, which
> I've found useful many times over the years, is linked from there as well.
>
OK,
so I did find the how-to-build   simple instructions.
I installed all the required packages and ran cmake
in the build dir, and that worked just fine.

Ran make and it belched the following error:


[  3%] Building CXX object src/CMakeFiles/ktorrent.dir/util/functions.o
/usr/src/redhat/NON-RPM/network-apps/ktorrent/libktorrent-1.3.1/src/util/functions.cpp: 
In function ‘QString bt::BytesToString(bt::Uint64)’:
/usr/src/redhat/NON-RPM/network-apps/ktorrent/libktorrent-1.3.1/src/util/functions.cpp:228:37: 
error: no matching function for call to 
‘KLocale::formatByteSize(bt::Uint64&, int)’
/usr/src/redhat/NON-RPM/network-apps/ktorrent/libktorrent-1.3.1/src/util/functions.cpp:228:37: 
note: candidate is:
In file included from 
/usr/src/redhat/NON-RPM/network-apps/ktorrent/libktorrent-1.3.1/src/util/functions.cpp:35:0:
/usr/include/kde4/klocale.h:479:11: note: QString 
KLocale::formatByteSize(double) const
/usr/include/kde4/klocale.h:479:11: note:   candidate expects 1 
argument, 2 provided
/usr/src/redhat/NON-RPM/network-apps/ktorrent/libktorrent-1.3.1/src/util/functions.cpp: 
In function ‘QString bt::BytesPerSecToString(double)’:
/usr/src/redhat/NON-RPM/network-apps/ktorrent/libktorrent-1.3.1/src/util/functions.cpp:234:49: 
error: no matching function for call to 
‘KLocale::formatByteSize(double&, int)’
/usr/src/redhat/NON-RPM/network-apps/ktorrent/libktorrent-1.3.1/src/util/functions.cpp:234:49: 
note: candidate is:
In file included from 
/usr/src/redhat/NON-RPM/network-apps/ktorrent/libktorrent-1.3.1/src/util/functions.cpp:35:0:
/usr/include/kde4/klocale.h:479:11: note: QString 
KLocale::formatByteSize(double) const
/usr/include/kde4/klocale.h:479:11: note:   candidate expects 1 
argument, 2 provided
/usr/src/redhat/NON-RPM/network-apps/ktorrent/libktorrent-1.3.1/src/util/functions.cpp:235:2: 
warning: control reaches end of non-void function [-Wreturn-type]
/usr/src/redhat/NON-RPM/network-apps/ktorrent/libktorrent-1.3.1/src/util/functions.cpp: 
In function ‘QString bt::BytesToString(bt::Uint64)’:
/usr/src/redhat/NON-RPM/network-apps/ktorrent/libktorrent-1.3.1/src/util/functions.cpp:229:2: 
warning: control reaches end of non-void function [-Wreturn-type]
make[2]: *** [src/CMakeFiles/ktorrent.dir/util/functions.o] Error 1
make[1]: *** [src/CMakeFiles/ktorrent.dir/all] Error 2
make: *** [all] Error 2



More information about the kde-linux mailing list