[R-pkg-devel] Github action setup for R 4.2.0 on Windows?

Hiroaki Yutani yut@n|@|n| @end|ng |rom gm@||@com
Sat Apr 23 15:42:17 CEST 2022


Hi,

I asked about it, but they decided to keep using Rtools40's UCRT
toolchain by default for r-lib/actions/setup-r, until GitHub's default
is switched to Rtools42. To obtain the Rtools42, we need to specify
`rtools-version: '42'`.

c.f. https://github.com/r-lib/actions/issues/553

Best,
Yutani

2022年4月23日(土) 22:37 Duncan Murdoch <murdoch.duncan using gmail.com>:
>
> Today a Github actions check of rgl failed on Windows with R 4.2.0 and
> this error:
>
>
> g++  -std=gnu++11 -I"C:/R/include" -DNDEBUG -DHAVE_PNG_H -DHAVE_FREETYPE
> -Iext -Iext/ftgl
> -Ic:/rtools42/x86_64-w64-mingw32.static.posix/include/freetype2
> -DRGL_W32    -I"c:/rtools42/x86_64-w64-mingw32.static.posix/include"
> -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign  -Wall -pedantic -c
> BBoxDeco.cpp -o BBoxDeco.o
> In file included from glgui.h:10,
>                   from BBoxDeco.cpp:6:
> ext/ftgl/FTGL/ftgl.h:32:10: fatal error: ft2build.h: No such file or
> directory
>     32 | #include <ft2build.h>
>        |          ^~~~~~~~~~~~
> compilation terminated.
> make: *** [C:/R/etc/x64/Makeconf:259: BBoxDeco.o] Error 1
> ERROR: compilation failed for package 'rgl'
> * removing
> 'C:/Users/RUNNER~1/AppData/Local/Temp/RtmpOc4X2w/Rinst105c7555452b/rgl'
>        -----------------------------------
> ERROR: package installation failed
> Error: Error in proc$get_built_file() : Build process failed
> Calls: <Anonymous> ... build_package -> with_envvar -> force -> <Anonymous>
> Execution halted
> Error: Process completed with exit code 1.
>
>
> If I'm interpreting it correctly, the problem is that the Freetype
> includes are not installed.  I don't have a good local Windows build
> system running currently, but I believe Rtools42 includes Freetype, so
> this makes it look as though the Github build doesn't have a proper
> install of Rtools42.
>
> The script I was using is here:
>
>
> https://github.com/dmurdoch/rgl/blob/master/.github/workflows/R-CMD-check.yaml
>
> Can anyone spot what I'm doing wrong, or is it just a matter of waiting
> until something else is updated on Github?
>
> Duncan Murdoch
>
> ______________________________________________
> R-package-devel using r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-package-devel



More information about the R-package-devel mailing list