Closed csaybar closed 1 year ago
Where is the GL lib located on your system? The configure script is not finding it. You can use the --with-gl-libs=DIR
configure option to override the automatic detection.
Hi @dmurdoch thanks for your reply,
I got the same error after running:
R CMD INSTALL --configure-args="--with-gl-libs=/usr/include/GL/"
csaybar@csaybar-pc01:~$ Tree /usr/include/GL
/usr/include/GL
├── freeglut_ext.h
├── freeglut.h
├── freeglut_std.h
├── glcorearb.h
├── glext.h
├── gl.h
├── glu.h
├── glu_mangle.h
├── glut.h
├── glxext.h
├── glx.h
├── glxint.h
├── glxmd.h
├── glxproto.h
├── glxtokens.h
└── internal
├── dri_interface.h
└── glcore.h
csaybar@csaybar-pc01:~$ glxinfo | grep 'version'
server glx version string: 1.4
client glx version string: 1.4
GLX version: 1.4
OpenGL core profile version string: 4.6.0 NVIDIA 460.73.01
OpenGL core profile shading language version string: 4.60 NVIDIA
OpenGL version string: 4.6.0 NVIDIA 460.73.01
OpenGL shading language version string: 4.60 NVIDIA
OpenGL ES profile version string: OpenGL ES 3.2 NVIDIA 460.73.01
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
GL_EXT_shader_group_vote, GL_EXT_shader_implicit_conversions,
Those are the header files. The lib is probably named something like libGL.so. It would normally be in a subdir of /usr, maybe /usr/lib or /usr/local/lib.
Thank you so much for your help. It seems that the libGL.so file was stored in my NVIDIA folder by default.
find / -name 'libGL.so'
/usr/lib/nsight-systems/host-linux-x64/Mesa/libGL.so
However, after running the install process again appears a different error.
install.packages("rgl", configure.args = "--with-gl-libs=/usr/lib/nsight-systems/host-linux-x64/Mesa/")
** testing if installed package can be loaded from temporary location
Error in dyn.load(dynlib <- getDynlib(dir)) :
unable to load shared object '/home/csaybar/R/x86_64-pc-linux-gnu-library/4.0/00LOCK-rgl/00new/rgl/libs/rgl.so':
libGL.so: cannot open shared object file: No such file or directory
Warning: Loading rgl's DLL failed.
Warning: Trying without OpenGL...
ERROR: loading failed
* removing ‘/home/csaybar/R/x86_64-pc-linux-gnu-library/4.0/rgl’
* restoring previous ‘/home/csaybar/R/x86_64-pc-linux-gnu-library/4.0/rgl’
Warning in install.packages :
installation of package ‘rgl’ had non-zero exit status
I tried to store the path in my PATH ENV but it doesn't work:
Sys.setenv(PATH=paste("/usr/lib/nsight-systems/host-linux-x64/Mesa/", Sys.getenv("PATH"), sep=":"))
install.packages("rgl")
I'm afraid you're going to need help from someone who knows Ubuntu better than me.
In the meantime, you should be able to build with the configure option "--disable-opengl". This will stop rgl from being able to display in an X11 window, but you should still be able to run rglwidget() to get a display in a browser.
I'm closing this as there doesn't seem to be anything I can do.
Hi, thank you for this fantastic package!.
I had a lot of problem trying to fully install
rgl
on my system.What I did:
I install without problems:
However in compiling time I got this warning:
To get more information about what was happening I run ./configure by manually downloading the package from CRAN. I attached the
config.log
Thank you so much for your time I will appreciate any help!