jupyter-xeus / xeus-r

Jupyter kernel for the R programming language
Other
41 stars 5 forks source link

Strip R_LDFLAGS strings in FindR.cmake #3

Closed SylvainCorlay closed 1 month ago

SylvainCorlay commented 11 months ago

Attempting to fix the Windows build.

SylvainCorlay commented 11 months ago

So we are now failing at the next step (configure passes, but build does not).

JohanMabille commented 11 months ago

It tries to link with the .dll files instead of the companions .lib files.

SylvainCorlay commented 11 months ago

Yeah, FindR returns the DLLs.

romainfrancois commented 11 months ago

Oh. So maybe FindR needs more logic to deal with windows. We can probably take some inspiration from how they do it for RInside with the windows specific Makefile.win file:

https://github.com/eddelbuettel/rinside/blob/master/inst/examples/standard/Makefile.win

romainfrancois commented 10 months ago

Moving the 🪡 a bit, now with this error :

D:\a\xeus-r\xeus-r\src\xinterpreter.cpp(28): fatal error C1083: Cannot open include file: 'Rinterface.h': No such file or directory
romainfrancois commented 10 months ago

The Rinterface.h file is unix only, we're going to need to set the callbacks differently on windows. See https://vscode.dev/github/rstudio/rstudio/blob/main/src/cpp/r/session/REmbeddedWin32.cpp for how Rstudio does it.