[R] Installing Package rgl - Compilation Fails

Prof Brian Ripley ripley at stats.ox.ac.uk
Mon Feb 19 21:04:21 CET 2007


You are missing the OpenGLU headers.  On FC5 they are in mesa-libGLU-devel
>From the README:

REQUIREMENTS
------------
Windowing System (osx/carbon, unix/x11 or win32)
OpenGL Library
OpenGL Utility Library (GLU)


On Mon, 19 Feb 2007, Rick Bilonick wrote:

> I'm running  R 2.4.1  (with the latest versions of all packages) on an
> FC6 32-bit system. When I try to install the rgl package, compilation
> fails:
>
>> install.packages("rgl")
> --- Please select a CRAN mirror for use in this session ---
> Loading Tcl/Tk interface ... done
> trying URL 'http://lib.stat.cmu.edu/R/CRAN/src/contrib/rgl_0.70.tar.gz'
> Content type 'application/x-gzip' length 705556 bytes
> opened URL
> ==================================================
> downloaded 689Kb
>
> * Installing *source* package 'rgl' ...
> checking for gcc... gcc
> checking for C compiler default output file name... a.out
> checking whether the C compiler works... yes
> checking whether we are cross compiling... no
> checking for suffix of executables...
> checking for suffix of object files... o
> checking whether we are using the GNU C compiler... yes
> checking whether gcc accepts -g... yes
> checking for gcc option to accept ANSI C... none needed
> checking how to run the C preprocessor... gcc -E
> checking for X... libraries , headers
> checking for libpng-config... yes
> configure: using libpng-config
> configure: using libpng dynamic linkage
> configure: creating ./config.status
> config.status: creating src/Makevars
> ** libs
> g++ -I/usr/lib/R/include -I/usr/lib/R/include -I -DHAVE_PNG_H
> -I/usr/include/libpng12 -Iext -I/usr/local/include    -fpic  -O2 -g
> -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
> --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic
> -fasynchronous-unwind-tables -c api.cpp -o api.o
> In file included from glgui.hpp:9,
>                 from gui.hpp:11,
>                 from rglview.h:10,
>                 from Device.hpp:11,
>                 from DeviceManager.hpp:9,
>                 from api.cpp:14:
> opengl.hpp:24:20: error: GL/glu.h: No such file or directory
> Disposable.hpp:13: warning: ÿÿstruct IDisposeListenerÿÿ has virtual
> functions but non-virtual destructor
> types.h:77: warning: ÿÿclass DestroyHandlerÿÿ has virtual functions but
> non-virtual destructor
> gui.hpp:56: warning: ÿÿclass gui::WindowImplÿÿ has virtual functions but
> non-virtual destructor
> gui.hpp:90: warning: ÿÿclass gui::GUIFactoryÿÿ has virtual functions but
> non-virtual destructor
> pixmap.h:39: warning: ÿÿclass PixmapFormatÿÿ has virtual functions but
> non-virtual destructor
> api.cpp: In function ÿÿvoid rgl_user2window(int*, int*, double*, double*,
> double*, double*, int*)ÿÿ:
> api.cpp:764: error: ÿÿgluProjectÿÿ was not declared in this scope
> api.cpp: In function ÿÿvoid rgl_window2user(int*, int*, double*, double*,
> double*, double*, int*)ÿÿ:
> api.cpp:792: error: ÿÿgluUnProjectÿÿ was not declared in this scope
> make: *** [api.o] Error 1
> chmod: cannot access `/usr/lib/R/library/rgl/libs/*': No such file or
> directory
> ERROR: compilation failed for package 'rgl'
> ** Removing '/usr/lib/R/library/rgl'
>
> The downloaded packages are in
>        /tmp/RtmpJY8uNp/downloaded_packages
> Warning message:
> installation of package 'rgl' had non-zero exit status in:
> install.packages("rgl")
>
> I was able to install this on an 64-bit system running FC4 and R 2.4.1.
>
> Any ideas on why it fails on FC6?
>
> Rick B.
>
> ______________________________________________
> R-help at stat.math.ethz.ch 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.
>

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595


More information about the R-help mailing list