[Rcpp-devel] Rcpp - libtorrent
Morgan Morgan
morgan.emailbox at gmail.com
Sun Feb 17 20:43:42 CET 2019
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 <edd at debian.org wrote:
>
> 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 -o
> | RLibTorrent.so RcppExports.o get_torrent_info.o -L/usr/lib/R/lib -lR
>
> It does not link to libtorrent. So you haven't quite groked how this works.
> In short: add to src/Makevars adding to the PKG_LIBS variable.
>
> So I suggest you step back and study one or two existing packages that link
> to external libraries -- we have loads to choose from. Just pick one.
>
> Dirk
>
> --
> http://dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20190217/59ce9b64/attachment.html>
More information about the Rcpp-devel
mailing list