From murdoch@dunc@n @end|ng |rom gm@||@com  Sun Jun  2 18:27:31 2019
From: murdoch@dunc@n @end|ng |rom gm@||@com (Duncan Murdoch)
Date: Sun, 2 Jun 2019 12:27:31 -0400
Subject: [Rd] rgl install for R 3.7
In-Reply-To: <3730C08F-191C-4879-994F-145C6D8B6C69@illinois.edu>
References: <3730C08F-191C-4879-994F-145C6D8B6C69@illinois.edu>
Message-ID: <a4cb75e6-f75e-68ee-cc12-7ba9445009d5@gmail.com>

On 02/06/2019 11:28 a.m., Koenker, Roger W wrote:
> I?ve installed R 3.7.0 on a new laptop running macos 10.14.5 and have managed to get most of my usual packages
> to compile from source with a ~/.R/Makevars file that looks like this:
> 
> CC=/usr/local/clang8/bin/clang
> CXX=/usr/local/clang8/bin/clang++
> LDFLAGS=-L/usr/local/clang8/lib
> CPPFLAGS=-I/usr/local/clang8/include -I/opt/X11/include/freetype2
> FC=/usr/local/gfortran/bin/gfortran
> FLIBS=-L/usr/local/gfortran/lib -lgfortran
> 
> As usual, the last challenge seems to be to get rgl installed.  Compilation _seems_ to go
> smoothly, but I now see:
> 
> 
> Error in dyn.load(file, DLLpath = DLLpath, ...) :
>    unable to load shared object '/Library/Frameworks/R.framework/Versions/3.7/Resources/library/00LOCK-rgl/00new/rgl/libs/rgl.so':
>    dlopen(/Library/Frameworks/R.framework/Versions/3.7/Resources/library/00LOCK-rgl/00new/rgl/libs/rgl.so, 6): Symbol not found: _FT_Attach_File
>    Referenced from: /Library/Frameworks/R.framework/Versions/3.7/Resources/library/00LOCK-rgl/00new/rgl/libs/rgl.so
> 
> 
> There is a comment somewhat after this about rgl requiring XQuartz, but I have  XQuartz 2.7.11 so I don?t
> think that this is the problem.  Apparently, there is still a freetype problem, however I?m out of my depth at this
> point.   Any suggestions would be most welcome.
> 

I'm not up to date on MacOS (I have 10.13.6) or clang.  I'm compiling 
with something that calls itself gcc, but gcc --version gives

Apple LLVM version 9.0.0 (clang-900.0.39.2)

So this isn't very relevant, but for what it's worth, rgl compiles and 
loads fine in the current R-devel (r76642).

Duncan Murdoch



[Rd] rgl install for R 3.7
Duncan Murdoch