[R-SIG-Mac] rgl in R version 4.1.1 Patched (2021-08-13 r80752)
@te|@nML @end|ng |rom co||oc@t|on@@de
Thu Aug 19 11:54:47 CEST 2021
> On 19 Aug 2021, at 10:40, Duncan Murdoch <murdoch.duncan using gmail.com> wrote:
>> Error in dyn.load(dynlib <- getDynlib(dir)) :
>> unable to load shared object '/Library/Frameworks/R.framework/Versions/4.1-arm64/Resources/library/rgl/libs/rgl.so':
>> dlopen(/Library/Frameworks/R.framework/Versions/4.1-arm64/Resources/library/rgl/libs/rgl.so, 6): Symbol not found: _hb_buffer_add_utf8
>> Referenced from: /Library/Frameworks/R.framework/Versions/4.1-arm64/Resources/library/rgl/libs/rgl.so
>> Expected in: flat namespace
>> in /Library/Frameworks/R.framework/Versions/4.1-arm64/Resources/library/rgl/libs/rgl.so
> That looks like a symbol in the harfbuzz lib. rgl doesn't reference it directly, I think FreeType does. I don't know what you need to do to fix this, but maybe that's enough of a hint.
I just ran into the same problem with a M1 MacBook and XQuartz 2.8.1 installed. My MacBook has no developer tools installed, not even XCode – just R, "rgl" (and various other packages) from CRAN, and XQuartz.
XQuartz doesn't include libharfbuzz, so I doubt that it's libfreetype depends on it. Any chance that the CRAN machine that builds the aarch64 binary package links against some other version of freetype that pulls in the dependency?
More information about the R-SIG-Mac