Building libtorrent in Debian Jessie on ARM

General support for problems installing or using Deluge
Post Reply
veribaka
New User
New User
Posts: 4
Joined: Wed Nov 18, 2015 12:32 pm

Building libtorrent in Debian Jessie on ARM

Post by veribaka »

I'm pulling my hair on this one. Have been trying to deal with this for a week already.

I tried downloading both source tarball for libtorrent 6 and 7. Steps taken:

Code: Select all

./configure --enable-python-binding --with-libgeoip=system --with-libiconv --prefix=/usr --with-boost-libdir=/usr/lib/arm-linux-gnueabihf

make
I try to track the build with htop, after some time the build stops using processor and starts using more and more ram, eventually filling swap and crashing the machine (I'm using a cubieboard with 1GB RAM).

if I configure without '--prefix=/usr' however, the 'make' finishes without any problems. However the lib won't be installed correctly, because when I run 'python -c "import libtorrent; print libtorrent.version"' I get an error: ImportError: No module named libtorrent

and deluge will use the older lib. I'm at the end of my wits... any suggestions?

PS. As I said, I am currently running Debian Jessie on ARM.
Kernel: 4.2.3-sunxi
Proc: ARMv7 Processor rev 2 (v7l)
Memory: 1GB ram

P.P.S.: When the make crashes I'm getting messages like the following:

Code: Select all

"cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++"
and

Code: Select all

‘libtorrent::torrent_info::file_iterator libtorrent::torrent_info::end_files() const’ is deprecated
Cas
Top Bloke
Top Bloke
Posts: 3681
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: Building libtorrent in Debian Jessie on ARM

Post by Cas »

Did you run ldconfig?

Those are warnings and have no effect on the make process.
veribaka
New User
New User
Posts: 4
Joined: Wed Nov 18, 2015 12:32 pm

Re: Building libtorrent in Debian Jessie on ARM

Post by veribaka »

I did, it gave no output (I don't think it's supposed to... is it?).

In fact I tried to follow most of the process on http://dev.deluge-torrent.org/wiki/Building/libtorrent

I think you should add in the wiki that building on ARM requires that you specify the location of lib boost location with --with-boost-libdir=/usr/lib/arm-linux-gnueabihf
Cas
Top Bloke
Top Bloke
Posts: 3681
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: Building libtorrent in Debian Jessie on ARM

Post by Cas »

I cannot test this so you are better asking on the libtorrent mailing list or open an issue on github, if you can also proved the config.log and any errors from make log.

The build instructions are generic so non-standard libdir are not covered however arvid could add that location to configure search pattern.
veribaka
New User
New User
Posts: 4
Joined: Wed Nov 18, 2015 12:32 pm

Re: Building libtorrent in Debian Jessie on ARM

Post by veribaka »

Fair enough. I'll try my luck there, thanks anyways!

Stupid question: If make produces a log, is it stored in the source folder?
Cas
Top Bloke
Top Bloke
Posts: 3681
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: Building libtorrent in Debian Jessie on ARM

Post by Cas »

veribaka
New User
New User
Posts: 4
Joined: Wed Nov 18, 2015 12:32 pm

Re: Building libtorrent in Debian Jessie on ARM

Post by veribaka »

Arvidn indicated that I should run

python setup.py install

Which I did, and now the bindings seem to be correct since 'python -c "import libtorrent; print libtorrent.version"' now outputs 1.0.6.0. However when I launch deluge, ltConfig says it's using 0.16.18.0, and if I uninstall libtorrent-rasterbar7 it takes deluged with it. Should I compile deluge instead of installing from repository?
Post Reply