Libtorrent 2.x on Manjaro?

If i should try qbittorrent with newer libtorrent 2.x what to do? I check “pamac search -a libtorrent|grep 2”

libtorrent-rasterbar-git                2.0.4.r297.gf0864b383-1       AUR 
libtorrent-rasterbar-2_0-git            r16804.g05560ba12-1           AUR 
    library (git branch RC_2_0)
libtorrent-rasterbar-1_2-git            r16804.gbf5d475a6-1           AUR 
    library (git branch RC_1_2)
libtorrent-rasterbar-1_1-git            1.1.14.r4.g760f94862-1        AUR 
libtorrent-git                          0.13.7.r1.g7b29b6bd-1         AUR 
libtorrent-rasterbar        [Installed] 1:1.2.15-1                    extra 
libtorrent                  [Installed] 0.13.8-2                      community

not knowing if -rasterbar is something different that qbt will not use, i do:

pamac build libtorrent-git

To build (1):
  libtorrent-git  0.13.7.r1.g7b29b6bd-1                                    AUR
To remove (1):
  libtorrent      0.13.8-2               (Conflicts With: libtorrent-git)  community

when it asks, i type “e” to edit and see "url=“GitHub - rakshasa/libtorrent: libTorrent BitTorrent library”. In that repository i do not see which version is inside. But when i visit different repository GitHub - arvidn/libtorrent: an efficient feature complete C++ bittorrent implementation it shows by default 2.0RC

so if i build from arvidn repository (i do not understand much building commands at libtorrent ) it will somehow make this libtorrent 2.x system-wide default or which commands i need to do? I can then install normal libtorrent from repo once i am finished testing 2.x i guess and that will make it default?

  • libtorrent and libtorrent-rasterbar are different.
  • qbittorrent currently uses libtorrent-rasterbar.
$ LANG=C pacman -Qi qbittorrent | grep Depends
Depends On      : libtorrent-rasterbar  qt5-base  qt5-svg  hicolor-icon-theme
1 Like

You would have to built qbittorrent 4.4.0 with libtorrent-rasterbar 2.0.5 + a newer commit that fixes building with boost 1.78.0.

FYI, libtorrent-rasterbar 1:2.0.5-1 and qbittorrent 4.4.0-2 just landed in Arch Testing.

1 Like

You would have to built qbittorrent 4.4.0 with libtorrent-rasterbar 2.0.5

i already have qbt 4.4.0beta3. Now i do:

pamac build libtorrent-rasterbar-2_0-git

->
==> WARNING: Package contains reference to $srcdir
usr/lib/python3.10/site-packages/libtorrent.cpython-310-x86_64-linux-gnu.so
usr/lib/libtorrent-rasterbar.so.2.0.5
Finished making: libtorrent-rasterbar-2_0-git r17537.g8e6e3c2d0-1

/usr/local/bin/qbittorrent
error while loading shared libraries: libtorrent-rasterbar.so.10: cannot open shared object file: No such file or directory

cd /usr/local/bin/;ldd qbittorrent|grep found
libtorrent-rasterbar.so.10 => not found

locate libtorrent-rasterbar.so.10
/usr/lib/libtorrent-rasterbar.so.10

sudo ln -s /usr/lib/libtorrent-rasterbar.so.10 /usr/local/lib/libtorrent-rasterbar.so.10

not helped, how to make qbt working with latest (2.x) libtorrent-rasterbar please?

You need to rebuild qbittorrent every time you rebuild libtorrent-rasterbar. You’ll also need to rebuild them both when there’s a new boost release.

1 Like

Somehow qbt failed to build when there was rasterbar 2.0.x or 2.0.5:
building rasterbar .x and .5
building qbt cloned from git repo: fail

What are proper commands you are doing?

Use the Arch PKGBUILDs.

Thanks,
Anyone knows which, where, how?

That’s something for you to learn yourself. The Arch Wiki is a great resource.

Teach a man to fish… you know the rest. :wink:

:fishing_pole_and_fish:

If you have questions along the way, you’re welcome to ask.

qbittorrent 4.4.0-2 built with libtorrent-rasterbar 1:2.0.5-1 are now in the unstable branch, FYI.