Re: [R] rgl build warnings and loading error on Linux

From: Duncan Murdoch <murdoch_at_stats.uwo.ca>
Date: Sun, 16 Mar 2008 17:00:42 -0400

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



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Sun 16 Mar 2008 - 21:03:27 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 17 Mar 2008 - 22:30:22 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive