none
package rgl installation failed RRS feed

  • Question

  • I'm on a mac with MRAN R 3.4 installed. I tried to install the rgl package earlier today, both through RStudio (from CRAN) and via GitHub. Both approaches failed with the following error messages. I filed a report on github. The author claims he has no problems installing into regular R. Here are the error messages.

    platform.cpp:38:18: error: no member named 'x' in '_GLKVector3'
      *winX = result.x;
              ~~~~~~ ^
    platform.cpp:39:18: error: no member named 'y' in '_GLKVector3'
      *winY = result.y;
              ~~~~~~ ^
    platform.cpp:40:18: error: no member named 'z' in '_GLKVector3'
      *winZ = result.z;
              ~~~~~~ ^
    platform.cpp:64:18: error: no member named 'x' in '_GLKVector3'
      *objX = result.x;
              ~~~~~~ ^
    platform.cpp:65:18: error: no member named 'y' in '_GLKVector3'
      *objY = result.y;
              ~~~~~~ ^
    platform.cpp:66:18: error: no member named 'z' in '_GLKVector3'
      *objZ = result.z;
              ~~~~~~ ^
    6 errors generated.
    make: *** [platform.o] Error 1
    ERROR: compilation failed for package ‘rgl’

    Monday, July 31, 2017 9:46 PM

All replies

  • I also have an instance of ubuntu running on AWS and the shiny/rstudio combo installed as well. It uses the non-MRAN version of R and I don't get these errors. 

    Seems like a problem someone at MRAN ought to take a look at  and fix. 

    Wednesday, August 16, 2017 7:30 PM
  • The install of 'rgl' via CRAN worked for me on my Mac using MRO 3.4.0 from mran. I am still running Sierra, OS 10.12.1.

    Can you tell us what version of Mac-OSX you are running?

    Thanks.

    Stephen Weller

    Microsoft R Open Product Team

    Thursday, August 24, 2017 8:40 PM
  • I'm using OS10.12.16. I solved the problem based on an exchange on stackoverflow. The key response was this

    "You appear to have the compiler define __STRICT_ANSI__ set. Normally rgl doesn't set that. The latest version of rgl on R-forge (0.98.13) has this fixed in the platform.cpp file where you saw the error, but there may be other places where problems arise."

    So what I did was download rgl_0.98.13.tar.gz from https://r-forge.r-project.org/R/?group_id=234 and put it at the root of my project directory. Then run install.packages("rgl_0.98.13.tar.gz", repos=NULL) 

    I'm not a c programmer so I wouldn't know where the strict_ansi variable is set or more generally what is going on but I do have rgl installed now.

    Here's the process I used. Download rgl_0.98.13.tar.gz from https://r-forge.r-project.org/R/?group_id=234 and put it at the root of my project directory. Then run install.packages("rgl_0.98.13.tar.gz", repos=NULL)
    Here's the process I used. Download rgl_0.98.13.tar.gz from https://r-forge.r-project.org/R/?group_id=234 and put it at the root of my project directory. Then run install.packages("rgl_0.98.13.tar.gz", repos=NULL)
    Here's the process I used. Download rgl_0.98.13.tar.gz from https://r-forge.r-project.org/R/?group_id=234 and put it at the root of my project directory. Then run install.packages("rgl_0.98.13.tar.gz", repos=NULL)
    Here's the process I used. Download rgl_0.98.13.tar.gz from https://r-forge.r-project.org/R/?group_id=234 and put it at the root of my project directory. Then run install.packages("rgl_0.98.13.tar.gz", repos=NULL)
    Thursday, August 24, 2017 9:40 PM