[Rcpp-devel] Rcpp - libtorrent
Morgan Morgan
morgan.emailbox at gmail.com
Sun Feb 17 20:20:23 CET 2019
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/morgan/Documents/Packages/RLibTorrent.Rcheck’
* using R version 3.5.1 (2018-07-02)
* using platform: x86_64-pc-linux-gnu (64-bit)
* using session charset: UTF-8
* checking for file ‘RLibTorrent/DESCRIPTION’ ... OK
* checking extension type ... Package
* this is package ‘RLibTorrent’ version ‘1.0’
* checking package namespace information ... OK
* checking package dependencies ... OK
* checking if this is a source package ... OK
* checking if there is a namespace ... OK
* checking for executable files ... OK
* checking for hidden files and directories ... OK
* checking for portable file names ... OK
* checking for sufficient/correct file permissions ... OK
* checking whether package ‘RLibTorrent’ can be installed ... ERROR
Installation failed.
See ‘/home/morgan/Documents/Packages/RLibTorrent.Rcheck/00install.out’ for
details.
* DONE
Status: 1 ERROR
See
‘/home/morgan/Documents/Packages/RLibTorrent.Rcheck/00check.log’
for details.
In the file 00Install.out, I have the following:
* installing *source* package ‘RLibTorrent’ ...
** libs
g++ -I"/usr/share/R/include" -DNDEBUG -I"/usr/lib/x86_64-linux-gnu"
-I"/usr/include/libtorrent" -I"/usr/include/boost" -I"/usr/include"
-I"/home/morgan/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include" -fpic
-g -O2 -fdebug-prefix-map=/build/r-base-1SEA_D/r-base-3.5.1=.
-fstack-protector-strong -Wformat -Werror=format-security -Wdate-time
-D_FORTIFY_SOURCE=2 -g -c RcppExports.cpp -o RcppExports.o
g++ -I"/usr/share/R/include" -DNDEBUG -I"/usr/lib/x86_64-linux-gnu"
-I"/usr/include/libtorrent" -I"/usr/include/boost" -I"/usr/include"
-I"/home/morgan/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include" -fpic
-g -O2 -fdebug-prefix-map=/build/r-base-1SEA_D/r-base-3.5.1=.
-fstack-protector-strong -Wformat -Werror=format-security -Wdate-time
-D_FORTIFY_SOURCE=2 -g -c get_torrent_info.cpp -o get_torrent_info.o
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
installing to
/home/morgan/Documents/Packages/RLibTorrent.Rcheck/RLibTorrent/libs
** R
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded
Error: package or namespace load failed for ‘RLibTorrent’ in dyn.load(file,
DLLpath = DLLpath, ...):
unable to load shared object
'/home/morgan/Documents/Packages/RLibTorrent.Rcheck/RLibTorrent/libs/RLibTorrent.so':
/home/morgan/Documents/Packages/RLibTorrent.Rcheck/RLibTorrent/libs/RLibTorrent.so:
undefined symbol: _ZN10libtorrent6to_hexEPKciPc
Error: loading failed
Execution halted
ERROR: loading failed
* removing ‘/home/morgan/Documents/Packages/RLibTorrent.Rcheck/RLibTorrent’
I am struggling to solve this issue! Google it but it i didn't help me
solve it, because I didn't understand the explanation or the proposed
solution was not working for me.
Any idea what I am doing wrong?
Thank you
On Mon, Feb 11, 2019 at 12:01 PM Ralf Stubner <ralf.stubner at daqana.com>
wrote:
> 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
>
> in src/Makevars. After that I would focus on the functions to put into
> the package. Once the package has a clearer shape, I would tackle the
> cross-platform issues.
>
> cheerio
> ralf
>
> --
> Ralf Stubner
> Senior Software Engineer / Trainer
>
> daqana GmbH
> Dortustraße 48
> 14467 Potsdam
>
> T: +49 331 23 61 93 11
> F: +49 331 23 61 93 90
> M: +49 162 20 91 196
> Mail: ralf.stubner at daqana.com
>
> Sitz: Potsdam
> Register: AG Potsdam HRB 27966
> Ust.-IdNr.: DE300072622
> Geschäftsführer: Dr.-Ing. Stefan Knirsch, Prof. Dr. Dr. Karl-Kuno Kunze
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20190217/09efc93c/attachment.html>
More information about the Rcpp-devel
mailing list