Dear all, I have tried installing "rgl" with the usual command: R CMD INSTALL rgl_0.67-2.tar.gz Differently from what happened last time I have succesfully installed this package, this time there was a failure: ... ...g++ -I/usr/lib/R/include -I/usr/lib/R/include -I -DHAVE_PNG_H -I/usr/include/libpng12 -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:23: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:707: error: ???gluProject??? was not declared in this scope api.cpp: In function ???void rgl_window2user(int*, int*, double*, double*, double*, double*, int*)???: api.cpp:735: 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' ... ... It is clear that glu.h cannot be found during installation and, indeed, I have checked and there is no glu.h under /usr/include/GL. Any suggestion on how I could proceed? I am using FEDORA CORE 5. By typing glxinfo it seems that glu 1.3 is installed. But where's glu.h, then? Many thanks J -- Dr James Foadi Department of Physics University of York York YO10 5DD email: jf117 at york.ac.uk Tel: 0044 1904 434622 Mobile: 0044 7740 678548 ___________________________________________________________ All New Yahoo! Mail ? Tired of Vi at gr@! come-ons? Let our SpamGuard protect you. http://uk.docs.yahoo.com/nowyoucan.html
On FC5: roc% rpm -q --file /usr/include/GL/glu.h mesa-libGLU-devel-6.4.2-6.FC5.3 Do check what the R-admin manual says about -devel RPMs. On Thu, 20 Jul 2006, James Foadi wrote:> Dear all, > I have tried installing "rgl" with the usual command: > > R CMD INSTALL rgl_0.67-2.tar.gz > > Differently from what happened last time I have succesfully installed this > package, this time there was a failure: > > ... > ...g++ -I/usr/lib/R/include -I/usr/lib/R/include -I -DHAVE_PNG_H > -I/usr/include/libpng12 -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:23: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:707: error: ??gluProject?? was not declared in this scope > api.cpp: In function ??void rgl_window2user(int*, int*, double*, double*, > double*, double*, int*)??: > api.cpp:735: 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' > ... > ... > > It is clear that glu.h cannot be found during installation and, indeed, I have > checked and there is no glu.h under /usr/include/GL. > > Any suggestion on how I could proceed? > I am using FEDORA CORE 5. > By typing glxinfo it seems that glu 1.3 is installed. But where's glu.h, then? > > Many thanks > > J > > -- > Dr James Foadi > Department of Physics > University of York > York YO10 5DD > > email: jf117 at york.ac.uk > Tel: 0044 1904 434622 > Mobile: 0044 7740 678548 > > > ___________________________________________________________ > All New Yahoo! Mail ? Tired of Vi at gr@! come-ons? Let our SpamGuard protect you. http://uk.docs.yahoo.com/nowyoucan.html > >-- 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
>Subject: Re: [R] failed installing rgl >Date: Friday 21 July 2006 10:08 >From: Prof Brian D Ripley <ripley at stats.ox.ac.uk> >To: James Foadi <jf117 at york.ac.uk> >Cc: r-help at stat.math.ethz.ch>On FC5:>roc% rpm -q --file /usr/include/GL/glu.h >mesa-libGLU-devel-6.4.2-6.FC5.3>Do check what the R-admin manual says about -devel RPMs.I have followed Brian Ripley advice to read the R-admin manual. In Appendix A it is reported: "Remember that some package management systems (such as RPM and deb) make a distinction between the user version of a package and the development version. The latter usually has the same name but with the extension `-devel' or `-dev': you need both versions installed." In fact file "glu.h" was not installed because only the user version of GLU was installed on my system. Thus, I have downloaded the development version of GLU (mesa-libGLU-devel-6.4.2-6.FC5.3.i386.rpm) and installed it. After that the package rgl has installed fine. Thank you, Brian. J ------------------------------------------------------- -- Dr James Foadi Department of Physics University of York York YO10 5DD email: jf117 at york.ac.uk Tel: 0044 1904 434622 Mobile: 0044 7740 678548