-
-
Notifications
You must be signed in to change notification settings - Fork 415
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rTorrent via Cygwin #163
Comments
Hello shaybracha, What error do you get, could you be more specific? Maybe you're missing dependencies or you've got missconfigured compilator paths. I've just compiled latest libtorrent and rtorrent under latest cygwin on windows 7 and it seems to work. Edit: if you get an error like this : directory.cc: In member function ‘bool utils::Directory::update(int)’: Find directory.cc file, it is in rtorrent\src\utils. Open it with text editor and alter line : itr->d_reclen = entry->d_reclen; to : itr->d_reclen = __builtin_offsetof (struct dirent, d_name) + strlen (entry->d_name) + 1; and ofc strlen requires including cstring Haven't much time tonight, so I compiled rtorrent without xmlrpc support (I didn't find xmlrpc-c packages in cygwin manager or I'm blind) so if you want it you have to compile xmlrpc from sources as well. |
Hello malwinMP, I tried your fix but as expected, it doesn't work as strlen isn't defined. I don't know how to go about that and still can't get rtorrent to build. I thought it was because of XMLRPC-C but even without XMLRPC-C, rtorrent still refuses to build due to the same error. I tried the patch mentioned here: http://rtwi.jmk.hu/wiki/rTorrentOnWindows#rtorrent |
If compiler says it's not defined then you're probably forgot to include string.h header. strlen function is defined in string.h. |
Ah, I see. Thank you very much, malwinMP. I got it built without any problems after that. Is there any reason why this isn't done in the codebase in the first place? Is it because this is a Cygwin or Windows only problem? |
malwinMP, I made the change you suggested to directory.cc but I don't know what you mean by "If compiler says it's not defined then you're probably forgot to include string.h header. strlen function is defined in string.h." Please assist, thank you! |
So I changed the itr but then I do not know where this (ofc strlen requires including cstring) is. directory.cc: In member function 'bool utils::Directory::update(int)': make: *** [all] Error 2 |
Add this line on top of directory.cc |
Hi, Give a try to my fork of libTorrent and rTorrent and see the updated compilation manual on how to install rTorrent on Windows Regards, |
Hi
i'm new with rTorrent and would like to know if there is user guide step by step installing and use rTorrent.
some user manual from http://rtwi.jmk.hu/wiki/rTorrentOnWindows#libsigc
got compile error
Thanks
The text was updated successfully, but these errors were encountered: