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

Duncan Murdoch murdoch@dunc@n @end|ng |rom gm@||@com
Sat Apr 23 15:32:27 CEST 2022


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



More information about the R-package-devel mailing list