LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 01-30-2013, 12:40 PM   #1
_gin
LQ Newbie
 
Registered: Aug 2012
Posts: 20

Rep: Reputation: Disabled
hrktorrent with libtorrent-rasterbar-0.16


Hi guys,

I've been trying to compile hrktorrent (0.3.6 ?) against libtorrent-rasterbar-0.16.7 without success.

Here is the story:

hrktorrent (0.3.5) was released few years ago with libtorrent-rb-0.14.x at its core.

A few days ago, I emailed the author if he has a patch in order to make hrktorrent-0.3.5 compliant with either libtorrent-rb-0.15.x or libtorrent-rb-0.16.x.
Unfortunatly, he hasn't answered yet.

I could find a git repo "https://github.com/jmesmon/hrktorrent" where someone has adjusted the code for libtorrent-rb-0.15 but it doesn't work with libtorrent-rb-0.16.

I get this compiling error:

Code:
core.cpp:266:21: erreur: no match for ‘operator=’ in ‘parms.libtorrent::add_torrent_params::save_path = p’
core.cpp:266:21: note: candidates are:
In file included from /usr/lib64/gcc/x86_64-slackware-linux/4.7.2/../../../../include/c++/4.7.2/string:54:0,
                 from /usr/lib64/gcc/x86_64-slackware-linux/4.7.2/../../../../include/c++/4.7.2/bits/locale_classes.h:42,
                 from /usr/lib64/gcc/x86_64-slackware-linux/4.7.2/../../../../include/c++/4.7.2/bits/ios_base.h:43,
                 from /usr/lib64/gcc/x86_64-slackware-linux/4.7.2/../../../../include/c++/4.7.2/ios:43,
                 from /usr/lib64/gcc/x86_64-slackware-linux/4.7.2/../../../../include/c++/4.7.2/ostream:40,
                 from /usr/lib64/gcc/x86_64-slackware-linux/4.7.2/../../../../include/c++/4.7.2/iostream:40,
                 from hrktorrent.h:4,
                 from core.cpp:1:
Since I can't program, I can't fix this.

Does anyone has a solution and/or explain why the compilator is complaining ?

Here is where the problem lays

Code:
try {
		libtorrent::add_torrent_params parms;

		boost::intrusive_ptr<libtorrent::torrent_info> info = new libtorrent::torrent_info(_argv[_argc-1]);
		boost::filesystem::path p(Settings->GetS("downloaddir"));
		boost::filesystem::create_directory(p);
		if(!boost::filesystem::exists(p)) {
			std::cerr << "Download directory does not exist/could not be created." << std::endl;
			return EXIT_FAILURE;
		}

		parms.save_path = p;	// here is the line at fault
		parms.ti = info;
		parms.paused = false;

		_torrent = _session->add_torrent(parms);
	} catch(std::exception& e) {
		std::cerr << "Could not add torrent (" << e.what() <<")" << std::endl;
		return EXIT_FAILURE;
	}
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Errors with Alien Bob's libtorrent-rasterbar and qbittorrent packages. Daedra Slackware 6 02-27-2011 02:47 AM
Unable to build qBittorrent with libtorrent-rasterbar 0.15.2 and zlib 1.2.5 robertjinx Linux - Software 0 08-31-2010 06:49 AM
./configuring libtorrent Pytheas Linux - Software 6 07-08-2010 01:39 PM
rasterbar's libtorrent compiling a simple_client.cpp vikhr Programming 0 05-25-2008 09:16 PM
rtorrent/libtorrent error truthe Linux - Software 0 06-26-2005 02:41 AM


All times are GMT -5. The time now is 04:20 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration