How can I make deluge use BOOST_ROOT during build

General support for problems installing or using Deluge
Post Reply
charlesz

How can I make deluge use BOOST_ROOT during build

Post by charlesz »

I am trying to get the latest version of Deluge to build on Fedora 10. There are no RPMs for this, so I need to compile everything by hand.

I have downloaded the 1.4.3 version of boost, and I have no problem getting libtorrent to compile against it manually by specifying the BOOST_ROOT environment variable. However, when I try and run the "python setup.py build" command line, it fails on the following:

gcc -fno-strict-aliasing -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fPIC -I./libtorrent -I./libtorrent/include -I./libtorrent/include/libtorrent -I/usr/include/python2.5 -I/usr/include -I -I/usr/include/python2.5 -c ./libtorrent/src/http_seed_connection.cpp -o build/temp.linux-x86_64-2.5/./libtorrent/src/http_seed_connection.o -D_FILE_OFFSET_BITS=64 -DNDEBUG -DTORRENT_USE_OPENSSL=1 -O2 -Wno-missing-braces
In file included from ./libtorrent/include/libtorrent/socket.hpp:76,
from ./libtorrent/include/libtorrent/peer_connection.hpp:61,
from ./libtorrent/include/libtorrent/http_seed_connection.hpp:60,
from ./libtorrent/src/http_seed_connection.cpp:39:
./libtorrent/include/libtorrent/error_code.hpp:251: error: 'boost::system' has not been declared
./libtorrent/include/libtorrent/error_code.hpp:251: error: expected constructor, destructor, or type conversion before 'const'

When I retype this gcc statement by hand, additionally specifying -I$BOOST_ROOT, the compile appears to complete successfully. So apparently, the problem is the build script for deluge is ignoring the BOOST_ROOT environment variable, and it doesn't accept that libtorrent has already been manually compiled.

How can I overcome this problem, or patch the build file so it successfully pulls in the correct include files?
johnnyg
Top Bloke
Top Bloke
Posts: 1522
Joined: Sun Oct 28, 2007 4:00 am
Location: Sydney, Australia

Re: How can I make deluge use BOOST_ROOT during build

Post by johnnyg »

If you've compiled and installed libtorrent with the python bindings than deluge will detect it and won't build libtorrent.

You could also add the BOOST_ROOT folder to _include_dirs (line ~124) in setup.py.
Post Reply