[Rcpp-devel] Help reading libzma file

Roberto Spadim roberto at spadim.com.br
Thu Jun 23 04:07:33 CEST 2022


Hi folks

I have a .xz file and need to read it and "convert" to a DataFrame using
Rcpp if possible.

But... I'm with a problem (first time testing this) using liblzma with
Rcpp, I already know how to do this with CMakeLists.txt, but I don't know
how to do with RCpp

Anyone have an idea?

Output from compile time:

> sourceCpp("D:/Trabalho/FTDB-R/FTDB/src/ftdbR.cpp")
/mingw64/bin/g++ -std=gnu++11  -I"C:/PROGRA~1/R/R-41~1.2/include" -DNDEBUG
  -I"C:/Users/rspadim/Documents/R/win-library/4.1/Rcpp/include"
-I"D:/Trabalho/FTDB-R/FTDB/src" -I"D:/Trabalho/FTDB-R/FTDB/inst/include"
     -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign  -c
D:/Trabalho/FTDB-R/FTDB/src/xz/xz/decode.cpp -o
D:/Trabalho/FTDB-R/FTDB/src/xz/xz/decode.o
D:/Trabalho/FTDB-R/FTDB/src/xz/xz/decode.cpp:5:10: fatal error: lzma.h: No
such file or directory
 #include <lzma.h>
          ^~~~~~~~
compilation terminated.
make: *** [C:/PROGRA~1/R/R-41~1.2/etc/x64/Makeconf:245:
D:/Trabalho/FTDB-R/FTDB/src/xz/xz/decode.o] Error 1
Error in sourceCpp("D:/Trabalho/FTDB-R/FTDB/src/ftdbR.cpp") :
  Error 1 occurred building shared library.
In addition: Warning message:
In normalizePath(path.expand(path), winslash, mustWork) :
  path[1]="D:/Trabalho/FTDB-R/FTDB/src/../inst/include": O sistema não pode
encontrar o caminho especificado
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20220622/2a4e6154/attachment.html>


More information about the Rcpp-devel mailing list