PDA

View Full Version : Deluge on PPC. Help with compiling


Note360
October 9th, 2006, 02:32 PM
Ok, I decided I wanted to try this out, but I am on ppc. So I had to build everything on my own. so i get the svn stuff I get everything set up. I run ./makeit and it goes all error crazy on me.

Make!

running build
running build_ext
building 'torrent' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -I./include -I./include/libtorrent -I/usr/include/python2.4 -I/usr/include/python2.4 -c alert.cpp -o build/temp.linux-ppc-2.4/alert.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
In file included from alert.cpp:33:
./include/libtorrent/alert.hpp:46:34: error: boost/thread/mutex.hpp: No such file or directory
./include/libtorrent/alert.hpp:48:72: error: boost/preprocessor/repetition/enum_params_with_a_default.hpp: No such file or directory
./include/libtorrent/alert.hpp:49:50: error: boost/preprocessor/repetition/enum.hpp: No such file or directory
./include/libtorrent/alert.hpp:50:57: error: boost/preprocessor/repetition/enum_params.hpp: No such file or directory
./include/libtorrent/alert.hpp:51:65: error: boost/preprocessor/repetition/enum_shifted_params.hpp: No such file or directory
./include/libtorrent/alert.hpp:52:53: error: boost/date_time/posix_time/posix_time.hpp: No such file or directory
In file included from ./include/libtorrent/alert.hpp:58,
from alert.cpp:33:
./include/libtorrent/config.hpp:36:28: error: boost/config.hpp: No such file or directory
./include/libtorrent/alert.hpp:73: error: ‘boost’ has not been declared
./include/libtorrent/alert.hpp:73: error: ‘ptime’ does not name a type
./include/libtorrent/alert.hpp:84: error: ‘boost’ has not been declared
./include/libtorrent/alert.hpp:84: error: ‘ptime’ does not name a type
./include/libtorrent/alert.hpp:103: error: ‘boost’ has not been declared
./include/libtorrent/alert.hpp:103: error: ‘mutex’ does not name a type
./include/libtorrent/alert.hpp:117: error: ‘BOOST_PP_ENUM_PARAMS’ has not been declared
./include/libtorrent/alert.hpp:117: error: expected `)' before numeric constant
./include/libtorrent/alert.hpp:117: error: expected `>' before numeric constant
./include/libtorrent/alert.hpp:117: error: expected unqualified-id before ‘)’ token
./include/libtorrent/alert.hpp:141: error: ‘BOOST_PP_ENUM_PARAMS’ has not been declared
./include/libtorrent/alert.hpp:141: error: expected `)' before numeric constant
./include/libtorrent/alert.hpp:141: error: expected ‘,’ or ‘...’ before numeric constant
./include/libtorrent/alert.hpp:141: error: expected initializer before ‘)’ token./include/libtorrent/alert.hpp:149: error: ‘BOOST_PP_ENUM_PARAMS_WITH_A_DEFAULT’ has not been declared
./include/libtorrent/alert.hpp:149: error: expected `)' before numeric constant
./include/libtorrent/alert.hpp:149: error: expected `>' before numeric constant
./include/libtorrent/alert.hpp:149: error: expected unqualified-id before ‘)’ token
alert.cpp: In constructor ‘libtorrent::alert::alert(libtorrent::alert::sever ity_t, const std::string&)’:
alert.cpp:40: error: class ‘libtorrent::alert’ does not have any field named ‘m_timestamp’
alert.cpp:40: error: ‘boost’ has not been declared
alert.cpp:40: error: ‘universal_time’ was not declared in this scope
alert.cpp: At global scope:
alert.cpp:48: error: ‘boost’ has not been declared
alert.cpp:48: error: ‘ptime’ does not name a type
alert.cpp: In member function ‘void libtorrent::alert_manager::post_alert(const libtorrent::alert&)’:
alert.cpp:80: error: ‘boost’ has not been declared
alert.cpp:80: error: ‘scoped_lock’ was not declared in this scope
alert.cpp:80: error: expected `;' before ‘lock’
alert.cpp: In member function ‘std::auto_ptr<libtorrent::alert> libtorrent::alert_manager::get()’:
alert.cpp:95: error: ‘boost’ has not been declared
alert.cpp:95: error: ‘scoped_lock’ was not declared in this scope
alert.cpp:95: error: expected `;' before ‘lock’
alert.cpp: In member function ‘bool libtorrent::alert_manager::pending() const’:alert.cpp:106: error: ‘boost’ has not been declared
alert.cpp:106: error: ‘scoped_lock’ was not declared in this scope
alert.cpp:106: error: expected `;' before ‘lock’
alert.cpp: In member function ‘void libtorrent::alert_manager::set_severity(libtorrent ::alert::severity_t)’:
alert.cpp:113: error: ‘boost’ has not been declared
alert.cpp:113: error: ‘scoped_lock’ was not declared in this scope
alert.cpp:113: error: expected `;' before ‘lock’
error: command 'gcc' failed with exit status 1

Krakatos
October 9th, 2006, 02:58 PM
Something quite similar to what happened to me initially, so I suppose the problem is the same. You need to install the libboost libraries. I don't know exactly which ones, I simply ended up installing all of them.

I think this is the complete list

libboost-date-time1.33.1
libboost-date-time-dev
libboost-dbg
libboost-dev
libboost-filesystem1.33.1
libboost-filesystem-dev
libboost-graph1.33.1
libboost-graph-dev
libboost-iostreams1.33.1
libboost-iostreams-dev
libboost-program-options1.33.1
libboost-program-options-dev
libboost-python1.33.1
libboost-python-dev
libboost-regex1.33.1
libboost-regex-dev
libboost-serialization-dev
libboost-signals1.33.1
libboost-signals-dev
libboost-test1.33.1
libboost-test-dev
libboost-thread1.33.1
libboost-thread-dev
libboost-dev.33.1

zachtib
October 9th, 2006, 03:06 PM
I expected this subject would come up, install the libraries that krakatos suggested, and try building again

Note360
October 9th, 2006, 03:25 PM
k man. I will giev you the deb when I am done so no one else has to go through this. (I know there are very few ppc users).

zachtib
October 9th, 2006, 03:39 PM
k man. I will giev you the deb when I am done so no one else has to go through this. (I know there are very few ppc users).

does this mean that you've gotten it to build properly?

Note360
October 9th, 2006, 03:40 PM
Urg.


running build
running build_ext
building 'torrent' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -I./include -I./include/libtorrent -I/usr/include/python2.4 -I/usr/include/python2.4 -c storage.cpp -o build/temp.linux-ppc-2.4/storage.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
./include/libtorrent/asio/socket_base.hpp:432: error: ‘__invalid_size_argument_for_IOC’ cannot appear in a constant-expression
./include/libtorrent/asio/socket_base.hpp:432: error: template argument 1 is invalid
./include/libtorrent/asio/socket_base.hpp:455: error: ‘__invalid_size_argument_for_IOC’ cannot appear in a constant-expression
./include/libtorrent/asio/socket_base.hpp:455: error: template argument 1 is invalid
./include/libtorrent/asio/basic_stream_socket.hpp: In member function ‘size_t asio::basic_stream_socket<Protocol, Service>::in_avail()’:
./include/libtorrent/asio/basic_stream_socket.hpp:786: error: request for member ‘get’ in ‘command’, which is of non-class type ‘int’
./include/libtorrent/asio/basic_stream_socket.hpp: In member function ‘size_t asio::basic_stream_socket<Protocol, Service>::in_avail(Error_Handler)’:
./include/libtorrent/asio/basic_stream_socket.hpp:808: error: request for member ‘get’ in ‘command’, which is of non-class type ‘int’
error: command 'gcc' failed with exit status 1

I am trying to figure it ou, but the cryptic messages are not helping.

Also no it doesnt mean I got it to buildproperly. It means I promise a deb one day.

Note360
October 9th, 2006, 05:06 PM
Sorry If I was rude. I am slightly agrivated trying to figure this out. I am not a c or c++ expert. I only dabbled in it.

zachtib
October 9th, 2006, 05:13 PM
Sorry If I was rude. I am slightly agrivated trying to figure this out. I am not a c or c++ expert. I only dabbled in it.

that's fine, i didn't think you were being rude.

anyways, I'm no c++ expert either, you'll have to wait till kripken gets online, as he's the one that wrote the library

trash
October 9th, 2006, 05:18 PM
k man. I will giev you the deb when I am done so no one else has to go through this. (I know there are very few ppc users).

Many thanks!!

Note360
October 9th, 2006, 05:18 PM
Their is some compilation problem from what I am gathering.

jae1227
November 4th, 2006, 01:14 AM
hey has anyone created a .deb for ppc yet. I still get the same error.

kripkenstein
November 4th, 2006, 03:29 AM
1. The list of needed dependencies should appear in the INSTALL file in python-libtorrent. I didn't test it much though, so if anyone finds missing packages, please tell me.

2. The specific errors mentioned seem to be related to compiler conventions, but I've never seen them before. Perhaps it depends on the version of gcc?

fkdev
November 13th, 2006, 04:57 PM
I managed to build a deb on edgy (The bug was probably related to older versions of g++, I think).

However, it is too large to attach here.

Where should I put it?

zachtib
November 13th, 2006, 05:32 PM
I managed to build a deb on edgy (The bug was probably related to older versions of g++, I think).

However, it is too large to attach here.

Where should I put it?

can you email it to me? zach AT the domainname in my sig

and does it work? IE, have you used it with the client?

zachtib
November 13th, 2006, 11:54 PM
ok, the (unofficial) version of python-libtorrent for ppc is available here: http://deluge-torrent.org/wiki/Downloads

fuoco
November 23rd, 2006, 04:24 AM
If I install that .deb file for python-libtorrent 0.3.2 for ppc how do I follow with the installation of deluge? Where do I find a deb for deluge itself or something?

zachtib
November 23rd, 2006, 10:27 AM
The problem is that that's an old deb. I need the person who built it to rebuild a newer one from SVN.. I'll at least ask him to do so once 0.4 is released

fuoco
November 24th, 2006, 10:07 AM
So when there's a deb for ppc it will be posted here, or as part of the repository?

zachtib
November 24th, 2006, 10:25 AM
If I can get a 0.4 deb built, I'll likely add it to the repository. Regardless, it will be posted at the downloads page

fuoco
December 2nd, 2006, 11:39 AM
I think I managed to install this through the deb file available in the debian unstable repository. I just clicked the link for the powerpc deb and it installed. It looks like everything runs ok, but torrent downloads are very slow so far.