[R-SIG-Mac] RGL again
Bill Northcott
w.northcott at internode.on.net
Tue Jul 19 14:13:36 CEST 2005
On 18/07/2005, at 8:00 PM, Anestis Antoniadis wrote:
> I have upgraded to Tiger 10.4.2 and R 2.1.1.
> When launching rgl, everything seems to work OK.
> However the demo(rgl) doesn't do what it is supposed to do.
> demo(hist3d) works perfectly, but demo(abundance) just produces a
> single sphere. demo(regression) doesn't draw the points, demo(lsystem)
> displays the error message
> RGL: Pixmap load: file format unsupported
> RGL: Pixmap load: failed
> and in demo(bivar) once you click and try to move the surface
> on the X11 graphics window it disappears.
> Any similar behaviour from any of you?
> Any hints?
You are doing better than me. My attempt to install rgl from source
ends thus:
g++ -no-cpp-precomp -I/Library/Frameworks/R.framework/Resources/
include -I/System/Library/Frameworks/OpenGL.framework/Headers -I/usr/
X11R6/include -DDarwin -DNO_GL_PREFIX -I/usr/X11R6/include -I/usr/
local/include -Wall -pedantic -fno-exceptions -fno-rtti -fno-common
-g -O2 -c scene.cpp -o scene.o
types.h:76: warning: 'class DestroyHandler' has virtual functions but
non-virtual destructor
gui.h:55: warning: 'class gui::WindowImpl' has virtual functions but
non-virtual destructor
gui.h:89: warning: 'class gui::GUIFactory' has virtual functions but
non-virtual destructor
pixmap.h:39: warning: 'class PixmapFormat' has virtual functions but
non-virtual destructor
scene.cpp: In member function 'void Texture::beginUse(RenderContext*)':
scene.cpp:1994: error: invalid conversion from 'int*' to 'GLint*'
make: *** [scene.o] Error 1
which looks pretty terminal.
I fudged up the code in scene.cpp and got it to install. Now I have
your problem. I assume this is because the R binary has been built
without libpng. Mine certainly was. I will try again with libpng.
Bill Northcott
PS Rebuilt R with libpng and now it all works.
More information about the R-SIG-Mac
mailing list