SCM

Forum: help

Monitor Forum | Start New Thread Start New Thread
RE: Build of rgl fails to load [ Reply ]
By: Duncan Murdoch on 2021-01-27 11:32
[forum:48678]
The CRAN build does support OpenGL. It requires the user to install XQuartz to provide the windowing system.

RE: Build of rgl fails to load [ Reply ]
By: Peter West on 2021-01-27 10:42
[forum:48677]
Thanks Duncan. I think from hazy memory that the CRAN rgl (for OSX anyway) is built without opengl.

Has anyone managed to build with opengl in recent times?

RE: Build of rgl fails to load [ Reply ]
By: Duncan Murdoch on 2021-01-27 10:16
[forum:48676]
I don't use MacPorts, so I can't help you with the build. I'd advise you to use the R and rgl builds from CRAN instead. I've used some Homebrew libraries, but never MacPorts.

Alternatively, you can make the build much simpler by using the --disable-opengl configure option, e.g.

R CMD INSTALL --configure-args="--disable-opengl" rgl_0.104.16.tar.gz

This will remove dependency on X11 and OpenGL. It still allows displays in a browser using `rglwidget()` calls (which can be made implicit).

Build of rgl fails to load [ Reply ]
By: Peter West on 2021-01-27 03:23
[forum:48675]
MacOS 10.14.6
XQuartz 2.7.11

My build hangs at the step
testing if installed package can be loaded from temporary location

I originally tried with the MacPorts xorg-server installed. I then re-installed XQuartz and tried again. The 00LOCK-rgl directory has to be removed at each step, and the R processes killed.

I tried building from the gz file locally. pkg-config wasn't found, so I created a .Renviron file adding my MacPorts bin dir to the PATH. Build still hung.

I downloaded and installed all of the precompiled libs provided for MacOS, commented out the PATH change in the .Renviron file and linked pkg-config from /opt/local/bin into /usr/local/bin. Tried again. Load still hung.

Do I just give up on rgl at this point, or is there something else I can try?

Thanks to:
Vienna University of Economics and Business Powered By FusionForge