Re: [Rcpp-devel] Rcpp - libtorrent

2019-02-17 Thread Morgan Morgan
Ok thanks i will but have added the Makevars file and the PKG_LIBS variable. I will have a look at other packages. On Sun, 17 Feb 2019 19:38 Dirk Eddelbuettel > On 17 February 2019 at 19:20, Morgan Morgan wrote: > | So I tried to create a github repo : > https://github.com/2005m/RLibTorrent > |

Re: [Rcpp-devel] Rcpp - libtorrent

2019-02-17 Thread Dirk Eddelbuettel
On 17 February 2019 at 19:20, Morgan Morgan wrote: | So I tried to create a github repo : https://github.com/2005m/RLibTorrent | | As suggested by Ralf, I started on Ubuntu and installed libtorrent. | I have few issues [...] | g++ -shared -L/usr/lib/R/lib -Wl,-Bsymbolic-functions -Wl,-z,relro

Re: [Rcpp-devel] Rcpp - libtorrent

2019-02-17 Thread Morgan Morgan
Hi All, So I tried to create a github repo : https://github.com/2005m/RLibTorrent As suggested by Ralf, I started on Ubuntu and installed libtorrent. I have few issues When I do R CMD build RLibTorrent and then R CMD check RLibTorrent_1.0.tar.gz , I get an error: * using log directory ‘/home/mo

Re: [Rcpp-devel] Rcpp - libtorrent

2019-02-11 Thread Ralf Stubner
On 11.02.19 10:29, Morgan Morgan wrote: > I use ubuntu and windows. But the idea would be to make the package > available to all users including Mac OS. I would start with Ubuntu, since there it should be sufficient to use sudo apt-get install libtorrent-dev together with PKG_LDFLAGS=-ltorrent

Re: [Rcpp-devel] Rcpp - libtorrent

2019-02-11 Thread Morgan Morgan
I use ubuntu and windows. But the idea would be to make the package available to all users including Mac OS. On Mon, 11 Feb 2019 09:20 Ralf Stubner On 11.02.19 10:09, Morgan Morgan wrote: > > In order to create a prototype would i need to build the libtorrent > > library? Or would including the

Re: [Rcpp-devel] Rcpp - libtorrent

2019-02-11 Thread Ralf Stubner
On 11.02.19 10:09, Morgan Morgan wrote: > In order to create a prototype would i need to  build the libtorrent > library? Or would including the source file in the package be enough? Which OS do you use? With Linux it is easiest to install the library (plus headers!) via the package manager. On Ma

Re: [Rcpp-devel] Rcpp - libtorrent

2019-02-11 Thread Morgan Morgan
Hi Thank you for your replies. In order to create a prototype would i need to build the libtorrent library? Or would including the source file in the package be enough? I have used Rcpp and the.c(), .call() function before but i have never tried to "wrap" such a large librairy. If you have any

Re: [Rcpp-devel] Rcpp - libtorrent

2019-02-10 Thread Dirk Eddelbuettel
On 10 February 2019 at 13:38, Neal Fultz wrote: | Rcpp should make this very straightforward; assuming you are putting this | in a package (because why wouldn't you?) you would just need to set some | flags in src/Makefile so that the external library gets picked up correctly | by R, and write a

Re: [Rcpp-devel] Rcpp - libtorrent

2019-02-10 Thread Neal Fultz
Rcpp should make this very straightforward; assuming you are putting this in a package (because why wouldn't you?) you would just need to set some flags in src/Makefile so that the external library gets picked up correctly by R, and write a few Rcpp wrapper functions for interacting with it. See a

[Rcpp-devel] Rcpp - libtorrent

2019-02-10 Thread Morgan Morgan
Hi All, I hope you are well. I wanted to have your view regarding the feasibility of a project. There is c++ library called libtorrent. I was wondering if it would be possible to use Rcpp in order to call some of libtorrent's functionality from R. It seems that there are some python bindings fo