I tried compiling ctorrent, and failed...
Has anyone created a package for either CTorrent or Libtorrent/rtorrent. They are both light-weight, written in C++, and I know CTorrent only requires OpenSSL. Anyway, I figure it would be pretty easy for someone to port (assuming they are familiar with the whole cross compile thing and ipkg system). If there is an existing build for either, just ignore everything I say below and reply where to get it.
I tried creating a binary for ctorrent, but was getting failures saying I didn't have the library for openssl, so I removed the lines causing the problem, got it compiled, and tried it out. I got the most active torrent I could find, one for Desperate Housewives, threw the binary for ctorrent on my usb drive, and tried running it. Got an error saying it was missing libstdc++.so.6 or something. So I went and found the library in the build environment, copied it to my USB drive, and made sym links to the /lib folder. It worked!!, so I let it sit for a while and got a few errors saying could not connect to tracker or something, and then noticed that in the top where ctorrent scrolls things, it had said "error, failed to create desperate_housewives.avi file" during the whole initialization thing. I tried to track this error down and can't see why it is causing. A file was created of length 0, and I got sick of waiting to see if it would start downloading. On my computer, ctorrent allocated the full file length (350MB in this case) before hand, so I figured something was wrong anyway and stopped trying.
Could this have something to do with the fact that it was trying to create the file on a mounted FAT32 partition or could somehow removing the four lines dealing with SSL/SHA1 caused the problem. I looked in the code at the source of the problem, and it seems like pretty straight forward stdio.h type of calls to create the files.
Anyway, I give up. I am asking if anyone who knows the right way to cross compile and access those libraries could make the binary or package. I really think for someone with experience it wouldn't take long at all considering that someone who has never even cross-compiled a package or ever used that SDK was able to figure it out this far in a few hours.
My goal was to integrate a command line torrent client into the web server for friendly access so that me, my g/f, and roommates don't have to leave their computers running 24/7 giving us electricity bills over $140 a month. Torrents could be run on the router, leaving on all the time, and you could access the status easily, add new torrents easily over the web interface. I think 200MHz will be plenty, and since the whole purpose is to act as a file server/torrent client, it shouldn't be a big deal anyway.
Anyway, if someone can get either command line torrent program working, I will write the http scripts to give it a nice graphical frontend for the web server. I know there is reasonable demand