[R-pkg-devel] CMake on win-builder

Jialin Ma marlin- at gmx.cn
Mon Feb 12 23:51:11 CET 2018

Dear all,

I am trying to create a R interface to a C++ library which itself uses
cmake as its build tool.

For experimenting the idea, I copy the entire source of the library to
a sub-directory of "inst" and call "cmake" in the "configure" script,
then call "make", which generates a static library.

In another package, I write C code that interfacing with R and provide
the PKG_LIBS variable with the path of the static library.

This approach works on my machine (openSUSE), I would like to try to
port it to windows in future. Since this package needs cmake at build
time, is it possible to add cmake to the win-builder?
And I have found two previous discussions about cmake:

1. https://stat.ethz.ch/pipermail/r-package-devel/2015q2/000097.html
2. https://stat.ethz.ch/pipermail/r-package-devel/2016q2/000897.html

Also, I am in fact relative new to the build tools, do you have any
suggestions or comments on the approach taken? The two packages are:

1. https://github.com/marlin-na/Rlibsymengine (ship the C++ library)
2. https://github.com/marlin-na/symengine.R

Any help would be appreciated.


More information about the R-package-devel mailing list