Page 1 of 2

raspberry pi compiling libtorrent 1.1.6

Posted: Fri Jan 19, 2018 9:46 pm
by boomclick
on my rpi3 i'm running raspbian. i'm trying to install libtorrent 1.1.6 from source according to the directions at http://dev.deluge-torrent.org/wiki/Building/libtorrent. it supposedly works fine until after i enter python -c "import libtorrent; print libtorrent.version", at this point it returns the error:

Code: Select all

Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: /usr/local/lib/python2.7/dist-packages/libtorrent.so: undefined symbol: _ZN10libtorrent13upnp_categoryEv
this happens no matter how many times i remove/recompile/install libtorrent-rasterbar. also, dpkg --list | grep libtorrent lists

Code: Select all

ii  libtorrent-rasterbar            1.1.6-1                           armhf        Package created with checkinstall 1.6.2
ii  libtorrent-rasterbar9           1.1.1-1                           armhf        C++ bittorrent library by Rasterbar Software
ii  python-libtorrent               1.1.1-1                           armhf        Python bindings for libtorrent-rasterbar
i believe the two i's before the package name means that it's partially installed, but this happens no matter how many times i try installing. is there a build dependency for raspbian not listed in the tutorial? how do i install libtorrent-rasterbar-1.1.6-1?

Re: raspberry pi compiling libtorrent 1.1.6

Posted: Mon Jan 22, 2018 10:22 am
by shamael
the easiest way to install Deluge on a Debian like distribution (Raspian) is through the PPA repository (Deluge+libtorrent). Depending of your Raspian version

-based on Jessie follow the PPA tutorial: http://dev.deluge-torrent.org/wiki/Inst ... ian/Jessie
-based on Stretch read my post: http://forum.deluge-torrent.org/viewtop ... ch#p227568

The actual distributed version is Deluge 1.3.15 with Libtorrent 1.0.11

Re: raspberry pi compiling libtorrent 1.1.6

Posted: Mon Jan 22, 2018 2:40 pm
by boomclick
i can already install deluge fine from the repository. i'm looking to compile deluge 2.0 for testing on my raspberry pi. i need libtorrent >=1.1.2 for that. i saw that https://launchpad.net/~deluge-team/+arc ... tu/develop has libtorrent 1.1.3, but not for raspbian. my version is the latest version of stretch, 2017-11-29, if that helps. i see options for ubuntu and debian, but not for arm architecture raspbian.

Re: raspberry pi compiling libtorrent 1.1.6

Posted: Tue Jan 23, 2018 2:29 pm
by shamael
Backup first as always then give a try to artful version, it seems to have a compiled version of libtorrent 1.1.3
https://launchpad.net/~deluge-team/+arc ... d/14253072

Add the repo/refresh apt-cache first, then you should be good to go. You can grab/adapt the lines from the Jessie wiki to target the correct repository. something like (adapt if needed)
sudo apt-get install -t artful libtorrent-rasterbar9 python-libtorrent

Re: raspberry pi compiling libtorrent 1.1.6

Posted: Wed Jan 24, 2018 1:46 am
by boomclick
i added the repo. packages look fresh. when i type sudo apt-get install -t artful libtorrent-rasterbar9 python-libtorrent, it gives an error:

Code: Select all

pi@raspberrypi:/home $ sudo apt-get install -t artful libtorrent-rasterbar9 python-libtorrent
Reading package lists... Done
Building dependency tree        
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libtorrent-rasterbar9 : Depends: libssl1.0.0 (>= 1.0.2~beta3) but it is not installable
 python-libtorrent : Depends: libssl1.0.0 (>= 1.0.2~beta3) but it is not installable
E: Unable to correct problems, you have held broken packages.
while i have libssl1.1 and libssl1.0.2 both installed. i tried uninstalling them, reinstalling them individually, same error. is this an issue with raspbian headless that libssl can't be found? is there a way to remedy this?

Re: raspberry pi compiling libtorrent 1.1.6

Posted: Wed Jan 24, 2018 4:24 pm
by shamael
check my last post http://forum.deluge-torrent.org/viewtop ... =7&t=54783 and install libssl 1.0.0

Re: raspberry pi compiling libtorrent 1.1.6

Posted: Wed Jan 24, 2018 5:43 pm
by boomclick
thanks. based on your post, i was able to install the dependencies for deluge 2.0. i added deb http://deb.debian.org/debian jessie-backports main contrib non-free to my sources.list file. i was unable to find a signing key, so based on https://stackoverflow.com/questions/465 ... repository i was able to trust the repository. once i did apt-update, it let me install libssl1.0.0. then python-libtorrent, then deluge 2.0. thanks schamael.

Re: raspberry pi compiling libtorrent 1.1.6

Posted: Thu Jan 25, 2018 7:53 am
by shamael
You're welcome ;)

Re: raspberry pi compiling libtorrent 1.1.6

Posted: Sat Feb 10, 2018 11:43 am
by garryjoshi
shamael wrote:check my last post http://forum.deluge-torrent.org/viewtop ... =7&t=54783 and install libssl 1.0.0
I was able to successfully install it. Thank you so much for the reference Shamael :)

Garry Joshi
Showbox Mobdro Tutuapp

Re: raspberry pi compiling libtorrent 1.1.6

Posted: Mon Feb 12, 2018 1:57 pm
by shamael
You're welcome ;)