Making libttorent for qbittorent

Issues related to applications and software problems
Post Reply
The_Immortal
Posts: 3
Joined: 2019/04/14 23:07:10

Making libttorent for qbittorent

Post by The_Immortal » 2019/04/14 23:22:59

Hi there!

Guys, I'm totally new on Linux so this is my first try to make something.

My current goal is make qbittorent. I was asking about getting the ready recent package of qbittorent on their forum but nobody cares.
So I found the instruction which states for two steps:
- make libtorrent;
- make qbittorent.

I'm stack on making libtorrent:

Code: Select all

[root@localhost libtorrent-rasterbar-1.2.0]# make
Making all in include/libtorrent
make[1]: Entering directory `/root/libtorrent-rasterbar-1.2.0/include/libtorrent                                                                                  '
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/root/libtorrent-rasterbar-1.2.0/include/libtorrent'
Making all in src
make[1]: Entering directory `/root/libtorrent-rasterbar-1.2.0/src'
  CXX      libtorrent_rasterbar_la-web_connection_base.lo
In file included from ../include/libtorrent/entry.hpp:76:0,
                 from ../include/libtorrent/settings_pack.hpp:36,
                 from ../include/libtorrent/aux_/session_settings.hpp:37,
                 from ../include/libtorrent/peer_connection.hpp:53,
                 from ../include/libtorrent/web_connection_base.hpp:42,
                 from web_connection_base.cpp:38:
../include/libtorrent/string_view.hpp:60:24: error: missing space between ‘""’ a                                                                                  nd suffix identifier
  constexpr string_view operator""_sv(char const* str, std::size_t len)
                        ^
In file included from ../include/libtorrent/settings_pack.hpp:36:0,
                 from ../include/libtorrent/aux_/session_settings.hpp:37,
                 from ../include/libtorrent/peer_connection.hpp:53,
                 from ../include/libtorrent/web_connection_base.hpp:42,
                 from web_connection_base.cpp:38:
../include/libtorrent/entry.hpp: In member function ‘typename libtorrent::aux::m                                                                                  ap_string<T>::base::iterator libtorrent::aux::map_string<T>::find(const string_v                                                                                  iew&)’:
../include/libtorrent/entry.hpp:110:33: error: ‘const string_view’ has no member                                                                                   named ‘to_string’
     return this->base::find(key.to_string());
                                 ^
../include/libtorrent/entry.hpp: In member function ‘typename libtorrent::aux::m                                                                                  ap_string<T>::base::const_iterator libtorrent::aux::map_string<T>::find(const st                                                                                  ring_view&) const’:
../include/libtorrent/entry.hpp:115:33: error: ‘const string_view’ has no member                                                                                   named ‘to_string’
     return this->base::find(key.to_string());
                                 ^
In file included from ../include/libtorrent/aux_/session_settings.hpp:37:0,
                 from ../include/libtorrent/peer_connection.hpp:53,
                 from ../include/libtorrent/web_connection_base.hpp:42,
                 from web_connection_base.cpp:38:
../include/libtorrent/settings_pack.hpp: At global scope:
../include/libtorrent/settings_pack.hpp:93:18: error: function ‘libtorrent::sett                                                                                  ings_pack& libtorrent::settings_pack::operator=(libtorrent::settings_pack&&)’ de                                                                                  faulted on its first declaration with an exception-specification that differs fr                                                                                  om the implicit declaration ‘libtorrent::settings_pack& libtorrent::settings_pac                                                                                  k::operator=(libtorrent::settings_pack&&)’
   settings_pack& operator=(settings_pack&&) noexcept = default;
                  ^
In file included from ../include/libtorrent/torrent_info.hpp:52:0,
                 from ../include/libtorrent/torrent.hpp:48,
                 from ../include/libtorrent/web_connection_base.hpp:43,
                 from web_connection_base.cpp:38:
../include/libtorrent/file_storage.hpp:64:15: error: function ‘libtorrent::file_                                                                                  entry& libtorrent::file_entry::operator=(libtorrent::file_entry&&) &’ defaulted                                                                                   on its first declaration with an exception-specification that differs from the i                                                                                  mplicit declaration ‘libtorrent::file_entry& libtorrent::file_entry::operator=(l                                                                                  ibtorrent::file_entry&&)’
   file_entry& operator=(file_entry&&) & noexcept = default;
               ^
In file included from ../include/libtorrent/aux_/socket_type.hpp:41:0,
                 from ../include/libtorrent/utp_socket_manager.hpp:39,
                 from ../include/libtorrent/aux_/session_udp_sockets.hpp:36,
                 from ../include/libtorrent/aux_/session_interface.hpp:46,
                 from ../include/libtorrent/ip_voter.hpp:40,
                 from ../include/libtorrent/peer_list.hpp:47,
                 from ../include/libtorrent/torrent.hpp:51,
                 from ../include/libtorrent/web_connection_base.hpp:43,
                 from web_connection_base.cpp:38:
../include/libtorrent/i2p_stream.hpp: In member function ‘void libtorrent::i2p_s                                                                                  tream::set_destination(libtorrent::string_view)’:
../include/libtorrent/i2p_stream.hpp:105:51: error: ‘using string_view = boost::                                                                                  string_ref’ has no member named ‘to_string’
  void set_destination(string_view d) { m_dest = d.to_string(); }
                                                   ^
make[1]: *** [libtorrent_rasterbar_la-web_connection_base.lo] Error 1
make[1]: Leaving directory `/root/libtorrent-rasterbar-1.2.0/src'
make: *** [all-recursive] Error 1
[root@localhost libtorrent-rasterbar-1.2.0]#
[root@localhost libtorrent-rasterbar-1.2.0]# ../include/libtorrent/string_view.hpp:60:24: error: missing space between ‘""’ a                                                                                  nd suffix identifier
-bash: ../include/libtorrent/string_view.hpp:60:24:: No such file or directory
Coudl you help me to fix it please or say where can I ask about that problem?

Thank you!

User avatar
TrevorH
Site Admin
Posts: 33219
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Making libttorent for qbittorent

Post by TrevorH » 2019/04/15 13:53:49

You can find qbitorrent packages in the EPEL repo. No need to build anything.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

The_Immortal
Posts: 3
Joined: 2019/04/14 23:07:10

Re: Making libttorent for qbittorent

Post by The_Immortal » 2019/04/15 15:22:18

Code: Select all

Available Packages
Name        : qbittorrent-nox
Arch        : x86_64
Epoch       : 1
Version     : 3.3.7
Release     : 1.el7
Size        : 3.0 M
Repo        : epel/x86_64
Summary     : A Headless Bittorrent Client
URL         : http://www.qbittorrent.org
License     : GPLv2+
Description : A Headless Bittorrent client using rb_libtorrent.
            : It aims to be as fast as possible and to provide multi-OS, unicode
            : support.
3.3.7 version is TOO OLD. The current is 4.1.5.

As for suggested EPEL - there is no qBittorrent here.


The_Immortal
Posts: 3
Joined: 2019/04/14 23:07:10

Re: Making libttorent for qbittorent

Post by The_Immortal » 2019/04/15 16:29:20

Oh, yes. But still the version is too old (3.x)

User avatar
TrevorH
Site Admin
Posts: 33219
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Making libttorent for qbittorent

Post by TrevorH » 2019/04/15 17:41:46

CentOS 7 dates from 2014 so most software for it also dates to the same sort of period. Building newer packages often requires newer pre-requisites and those sometimes will not build.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply