Skip to content
Prev 11104 / 12125 Next

[R-pkg-devel] Creating and hosting static libraries for package installation on Windows

On 12/11/24 05:23, Satyaprakash Nayak wrote:
Technically, it is possible to build sundials from the downloaded source 
code using cmake on Windows pretty much like on Unix. Rtools includes 
cmake as well as the toolchains and libraries to build sundials. The 
older version of sundialr was building sundials on Windows using make, 
there is no technical reason why it couldn't do that using cmake (and 
downloaded _sources_) as well.

I was able to build the new sundialr on my Windows with these changes, 
and the package passed its checks (with some warnings):

1. delete Makevars.win and Makevars.ucrt
2. create configure.win file with this content in the package root directory

---

#! /bin/sh

./configure $*

---

Whenever in doubt, I would recommend starting with the same code for 
Unix and Windows. Only customize for Windows (or macOS or another 
system) if needed.

Best Tomas