Dear useRs, I have several problems in using rgl-0.77 (and recent earlier versions) on Gentoo Linux with a custom-built v. 2.6.22 kernel. Currently I use R-2.6.1. When I build rgl, # R CMD INSTALL "/home/liviu/inst/dwn/R/rgl_0.77.tar.gz" or install.packages("rgl", dependencies=TRUE, method ="wget"), I notice the following warning messages: i686-pc-linux-gnu-g++ -I/usr/lib/R/include -I/usr/lib/R/include -I/usr/local/include -fpic -O2 -march=pentium-m -pipe -fomit-frame-pointer -std=gnu99 -c api.cpp -o api.o cc1plus: warning: command line option "-std=gnu99" is valid for C/ObjC but not for C++ The warning message itself is repeated during the entire build process. However, the package builds fine, but fails to load:> library(rgl)Error in dyn.load(file, ...) : unable to load shared library '/usr/lib/R/library/rgl/libs/rgl.so': /usr/lib/R/library/rgl/libs/rgl.so: undefined symbol: glTexCoordPointer Error : .onLoad failed in 'loadNamespace' for 'rgl' Error: package/namespace load failed for 'rgl' I had the exact same error message with rgl_0.76. Could anyone suggest how to make rgl build correctly? Liviu
On 16/03/2008 3:38 PM, Liviu Andronic wrote:> Dear useRs, > > I have several problems in using rgl-0.77 (and recent earlier > versions) on Gentoo Linux with a custom-built v. 2.6.22 kernel. > Currently I use R-2.6.1. > > When I build rgl, > # R CMD INSTALL "/home/liviu/inst/dwn/R/rgl_0.77.tar.gz" > or > install.packages("rgl", dependencies=TRUE, method ="wget"), > > I notice the following warning messages: > i686-pc-linux-gnu-g++ -I/usr/lib/R/include -I/usr/lib/R/include > -I/usr/local/include -fpic -O2 -march=pentium-m -pipe > -fomit-frame-pointer -std=gnu99 -c api.cpp -o api.o > cc1plus: warning: command line option "-std=gnu99" is valid for C/ObjC > but not for C++ > > The warning message itself is repeated during the entire build > process. However, the package builds fine, but fails to load: >> library(rgl) > Error in dyn.load(file, ...) : > unable to load shared library '/usr/lib/R/library/rgl/libs/rgl.so': > /usr/lib/R/library/rgl/libs/rgl.so: undefined symbol: glTexCoordPointer > Error : .onLoad failed in 'loadNamespace' for 'rgl' > Error: package/namespace load failed for 'rgl' > > I had the exact same error message with rgl_0.76. > > Could anyone suggest how to make rgl build correctly?It sounds as though it is not finding the OpenGL libs when it configures. That function should be in libGL.so. Duncan Murdoch
On Sun, Mar 16, 2008 at 7:38 PM, Liviu Andronic <landronimirc at gmail.com> wrote:> I have several problems in using rgl-0.77 (and recent earlier > versions) on Gentoo Linux with a custom-built v. 2.6.22 kernel. > Currently I use R-2.6.1. > > When I build rgl, > # R CMD INSTALL "/home/liviu/inst/dwn/R/rgl_0.77.tar.gz" > or > install.packages("rgl", dependencies=TRUE, method ="wget"), > > I notice the following warning messages: > i686-pc-linux-gnu-g++ -I/usr/lib/R/include -I/usr/lib/R/include > -I/usr/local/include -fpic -O2 -march=pentium-m -pipe > -fomit-frame-pointer -std=gnu99 -c api.cpp -o api.o > cc1plus: warning: command line option "-std=gnu99" is valid for C/ObjC > but not for C++ > > The warning message itself is repeated during the entire build > process. However, the package builds fine, but fails to load: > > library(rgl) > Error in dyn.load(file, ...) : > unable to load shared library '/usr/lib/R/library/rgl/libs/rgl.so': > /usr/lib/R/library/rgl/libs/rgl.so: undefined symbol: glTexCoordPointer > Error : .onLoad failed in 'loadNamespace' for 'rgl' > Error: package/namespace load failed for 'rgl' > > I had the exact same error message with rgl_0.76. > > Could anyone suggest how to make rgl build correctly?What is your Linux distribution? Paul
On Sun, Mar 16, 2008 at 10:00 PM, Duncan Murdoch <murdoch at stats.uwo.ca> wrote:> It sounds as though it is not finding the OpenGL libs when it > configures. That function should be in libGL.so.This is what I have on my system: localhost liviu # locate libGL.so /usr/lib/opengl/xorg-x11/lib/libGL.so.1 /usr/lib/opengl/xorg-x11/lib/libGL.so.1.2 /usr/lib/opengl/xorg-x11/lib/libGL.so /usr/lib/libGL.so However, the funny thing is that "/usr/lib/libGL.so" belongs to no package, while the other libGL.so belongs to media-libs/mesa. localhost liviu # equery b /usr/lib/libGL.so [ Searching for file(s) /usr/lib/libGL.so in *... ] localhost liviu # equery b /usr/lib/opengl/xorg-x11/lib/libGL.so [ Searching for file(s) /usr/lib/opengl/xorg-x11/lib/libGL.so in *... ] media-libs/mesa-7.0.2 (/usr/lib/opengl/xorg-x11/lib/libGL.so -> libGL.so.1.2) localhost liviu # eix media-libs/mesa [I] media-libs/mesa Available versions: 6.5.2-r1 (~)7.0.2 Installed versions: 7.0.2(22:55:32 26/02/08) Do you think removing /usr/lib/libGL.so is reasonable?