extendr: .dylib, not .so files are produced on Mac, which makes installation fail
When I tried to R CMD INSTALL .
the hello
example on Mac, it fails because:
cp: ../target/release/libhello.so: No such file or directory
and I fount that libhello.dylib
was produced instead
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 22 (19 by maintainers)
I could have sworn that I had seen the
.dylib
version working previously, but it’s not now. However, renaming to.so
does indeed seem to work fine…@andy-thomason You could be right. But I think we still need a standard “Makevars”. Note that R is using a dialect of standard “make”. Specifically, in 1.2.1 of Writing R Extensions
The manpage of
?SHLIB
shows that,So I guess, it will correctly generate
.so
for both macOS and Linux. Therefore, I suggest to useMakevars
as other R packages are using.