[R-SIG-Mac] rgl on 10.7: has anyone tried it?

Simon Urbanek simon.urbanek at r-project.org
Wed Oct 12 00:33:26 CEST 2011


On Oct 11, 2011, at 6:07 PM, Duncan Murdoch wrote:

> On 11-10-11 5:04 PM, Simon Urbanek wrote:
>> 
>> On Oct 11, 2011, at 4:10 PM, Marius Hofert wrote:
>> 
>>> Dear all,
>>> 
>>> I tried to install the package rgl on 10.7. Here's the output:
>>> 
>>> ##############################################################################
>>> 
>>>> install.packages("rgl", type="source")
>>> install.packages("rgl", type="source")
>>> Installing package(s) into ‘/Library/Frameworks/R.framework/library’
>>> (as ‘lib’ is unspecified)
>>> trying URL 'http://stat.ethz.ch/CRAN/src/contrib/rgl_0.92.798.tar.gz'
>>> Content type 'application/x-gzip' length 1677772 bytes (1.6 Mb)
>>> opened URL
>>> ==================================================
>>> downloaded 1.6 Mb
>>> 
>>> * installing *source* package ‘rgl’ ...
>>> checking for gcc... gcc -arch x86_64 -std=gnu99
>>> 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 -arch x86_64 -std=gnu99 accepts -g... yes
>>> checking for gcc -arch x86_64 -std=gnu99 option to accept ISO C89... none needed
>>> checking how to run the C preprocessor... gcc -arch x86_64 -std=gnu99 -E
>>> checking for gcc... (cached) gcc -arch x86_64 -std=gnu99
>>> checking whether we are using the GNU C compiler... (cached) yes
>>> checking whether gcc -arch x86_64 -std=gnu99 accepts -g... (cached) yes
>>> checking for gcc -arch x86_64 -std=gnu99 option to accept ISO C89... (cached) none needed
>>> checking for libpng-config... yes
>>> configure: using libpng-config
>>> configure: using libpng dynamic linkage
>>> checking for X... libraries , headers
>>> checking for glEnd in -lGL... no
>>> configure: error: missing required library GL
>>> ERROR: configuration failed for package ‘rgl’
>>> * removing ‘/Library/Frameworks/R.framework/library/rgl’
>>> 
>>> The downloaded packages are in
>>> 	‘/private/var/folders/5r/fpc7qzk55ll71t9j8l9d1d_00000gn/T/RtmpQ6nuVK/downloaded_packages’
>>> Warning message:
>>> In install.packages("rgl", type = "source") :
>>>  installation of package 'rgl' had non-zero exit status
>>>> 
>>> 
>>> ##############################################################################
>>> 
>>> Apparently, I'm missing the "GL" library. But how can I install it? I searched for it on the web and mainly found that the Mac should have Open GL already installed (?).
>>> 
>> 
>> Are you sure you installed X11 and Xcode4?
>> I have no problem with the *configuration* on vanilla Lion. There is still an issue in the rgl 0.92.798 code (opengl.hpp), though, it's including AGL/* instead of OpenGL/* which fails (hence CC to Duncan), but that's at compilation stage, not configuration.
> 
> I can't build on MacOS these days either.  The history is that at one point the R.app GUI worked better with the AGL code, while the command line version needed X11.  So it built separate shared libraries to be loaded depending on what it saw at package load time (I think rgl.* is for X11, aglrgl.* is for AGL).

But that is no longer the case, is it? I see only one .so being built (see below).


>  I haven't kept up with Apple's rearrangements, so I don't know what is currently needed, and am unlikely to have the time to figure it out.
> 

Hmm.. I think I'm getting somewhere. There are actually three possible libraries:

a) X11 + GLX: #include <GL/gl.h>
b) OpenGL framework: #include <OpenGL/gl.h>
c) AGL framework (Carbon, this in NOT OpenGL): #include <AGL/agl.h>

The X11 backend (x11gui) should be using a) only. The native backend (osxgui) should be using b) + c).

Right now I see only x11gui and it's adding include path for b) yet attempting to include c) which is wrong under all circumstances. It should really be using a) just like on any unix. The special includes for OSX are only relevant for the osxgui and it should include OpenGL/gl.h anyway, because there is no such thing as AGL/gl.h. The OpenGL framework just so happens to work also with X11 so there is not a big damage done once AGL is out of the picture.


> However, if someone who does know what's going on sends me a patch that doesn't obviously break something else, I'd be happy to commit it.
> 

Well, just
sed 's:AGL:OpenGL:' rgl/src/opengl.hpp
makes it work for the X11 part. But something is not right, because RGL_OSX should not even be defined when building against X11 ... that's why I'm a bit confused about what's actually being built - it's not what rgl used to do ..

Cheers,
Simon




* installing to library '/Library/Frameworks/R.framework/Versions/2.13/Resources/library'
* installing *source* package 'rgl' ...
checking for gcc... gcc-4.2 -arch x86_64 -std=gnu99
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-4.2 -arch x86_64 -std=gnu99 accepts -g... yes
checking for gcc-4.2 -arch x86_64 -std=gnu99 option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc-4.2 -arch x86_64 -std=gnu99 -E
checking for gcc... (cached) gcc-4.2 -arch x86_64 -std=gnu99
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc-4.2 -arch x86_64 -std=gnu99 accepts -g... (cached) yes
checking for gcc-4.2 -arch x86_64 -std=gnu99 option to accept ISO C89... (cached) none needed
checking for libpng-config... yes
configure: using libpng-config
configure: using libpng dynamic linkage
checking for X... libraries , headers 
checking for glEnd in -lGL... yes
checking for gluProject in -lGLU... yes
checking for freetype-config... yes
configure: using Freetype and FTGL
configure: creating ./config.status
config.status: creating src/Makevars
** libs
*** arch - x86_64
g++-4.2 -arch x86_64 -I/Library/Frameworks/R.framework/Resources/include -I/Library/Frameworks/R.framework/Resources/include/x86_64 -I/System/Library/Frameworks/OpenGL.framework/Headers  -DHAVE_PNG_H -I/usr/X11/include/libpng15 -DDarwin -DNO_GL_PREFIX -I/usr/X11R6/include -DHAVE_FREETYPE -Iext/ftgl -I/usr/X11/include/freetype2 -I/usr/X11/include -Iext -I/usr/local/include   -g -O2 -fPIC  -g -O2 -c BBoxDeco.cpp -o BBoxDeco.o
g++-4.2 -arch x86_64 -I/Library/Frameworks/R.framework/Resources/include -I/Library/Frameworks/R.framework/Resources/include/x86_64 -I/System/Library/Frameworks/OpenGL.framework/Headers  -DHAVE_PNG_H -I/usr/X11/include/libpng15 -DDarwin -DNO_GL_PREFIX -I/usr/X11R6/include -DHAVE_FREETYPE -Iext/ftgl -I/usr/X11/include/freetype2 -I/usr/X11/include -Iext -I/usr/local/include   -g -O2 -fPIC  -g -O2 -c Background.cpp -o Background.o
g++-4.2 -arch x86_64 -I/Library/Frameworks/R.framework/Resources/include -I/Library/Frameworks/R.framework/Resources/include/x86_64 -I/System/Library/Frameworks/OpenGL.framework/Headers  -DHAVE_PNG_H -I/usr/X11/include/libpng15 -DDarwin -DNO_GL_PREFIX -I/usr/X11R6/include -DHAVE_FREETYPE -Iext/ftgl -I/usr/X11/include/freetype2 -I/usr/X11/include -Iext -I/usr/local/include   -g -O2 -fPIC  -g -O2 -c Color.cpp -o Color.o
g++-4.2 -arch x86_64 -I/Library/Frameworks/R.framework/Resources/include -I/Library/Frameworks/R.framework/Resources/include/x86_64 -I/System/Library/Frameworks/OpenGL.framework/Headers  -DHAVE_PNG_H -I/usr/X11/include/libpng15 -DDarwin -DNO_GL_PREFIX -I/usr/X11R6/include -DHAVE_FREETYPE -Iext/ftgl -I/usr/X11/include/freetype2 -I/usr/X11/include -Iext -I/usr/local/include   -g -O2 -fPIC  -g -O2 -c Disposable.cpp -o Disposable.o
g++-4.2 -arch x86_64 -I/Library/Frameworks/R.framework/Resources/include -I/Library/Frameworks/R.framework/Resources/include/x86_64 -I/System/Library/Frameworks/OpenGL.framework/Headers  -DHAVE_PNG_H -I/usr/X11/include/libpng15 -DDarwin -DNO_GL_PREFIX -I/usr/X11R6/include -DHAVE_FREETYPE -Iext/ftgl -I/usr/X11/include/freetype2 -I/usr/X11/include -Iext -I/usr/local/include   -g -O2 -fPIC  -g -O2 -c Light.cpp -o Light.o
g++-4.2 -arch x86_64 -I/Library/Frameworks/R.framework/Resources/include -I/Library/Frameworks/R.framework/Resources/include/x86_64 -I/System/Library/Frameworks/OpenGL.framework/Headers  -DHAVE_PNG_H -I/usr/X11/include/libpng15 -DDarwin -DNO_GL_PREFIX -I/usr/X11R6/include -DHAVE_FREETYPE -Iext/ftgl -I/usr/X11/include/freetype2 -I/usr/X11/include -Iext -I/usr/local/include   -g -O2 -fPIC  -g -O2 -c LineSet.cpp -o LineSet.o
g++-4.2 -arch x86_64 -I/Library/Frameworks/R.framework/Resources/include -I/Library/Frameworks/R.framework/Resources/include/x86_64 -I/System/Library/Frameworks/OpenGL.framework/Headers  -DHAVE_PNG_H -I/usr/X11/include/libpng15 -DDarwin -DNO_GL_PREFIX -I/usr/X11R6/include -DHAVE_FREETYPE -Iext/ftgl -I/usr/X11/include/freetype2 -I/usr/X11/include -Iext -I/usr/local/include   -g -O2 -fPIC  -g -O2 -c LineStripSet.cpp -o LineStripSet.o
g++-4.2 -arch x86_64 -I/Library/Frameworks/R.framework/Resources/include -I/Library/Frameworks/R.framework/Resources/include/x86_64 -I/System/Library/Frameworks/OpenGL.framework/Headers  -DHAVE_PNG_H -I/usr/X11/include/libpng15 -DDarwin -DNO_GL_PREFIX -I/usr/X11R6/include -DHAVE_FREETYPE -Iext/ftgl -I/usr/X11/include/freetype2 -I/usr/X11/include -Iext -I/usr/local/include   -g -O2 -fPIC  -g -O2 -c Material.cpp -o Material.o
g++-4.2 -arch x86_64 -I/Library/Frameworks/R.framework/Resources/include -I/Library/Frameworks/R.framework/Resources/include/x86_64 -I/System/Library/Frameworks/OpenGL.framework/Headers  -DHAVE_PNG_H -I/usr/X11/include/libpng15 -DDarwin -DNO_GL_PREFIX -I/usr/X11R6/include -DHAVE_FREETYPE -Iext/ftgl -I/usr/X11/include/freetype2 -I/usr/X11/include -Iext -I/usr/local/include   -g -O2 -fPIC  -g -O2 -c PointSet.cpp -o PointSet.o
g++-4.2 -arch x86_64 -I/Library/Frameworks/R.framework/Resources/include -I/Library/Frameworks/R.framework/Resources/include/x86_64 -I/System/Library/Frameworks/OpenGL.framework/Headers  -DHAVE_PNG_H -I/usr/X11/include/libpng15 -DDarwin -DNO_GL_PREFIX -I/usr/X11R6/include -DHAVE_FREETYPE -Iext/ftgl -I/usr/X11/include/freetype2 -I/usr/X11/include -Iext -I/usr/local/include   -g -O2 -fPIC  -g -O2 -c PrimitiveSet.cpp -o PrimitiveSet.o
g++-4.2 -arch x86_64 -I/Library/Frameworks/R.framework/Resources/include -I/Library/Frameworks/R.framework/Resources/include/x86_64 -I/System/Library/Frameworks/OpenGL.framework/Headers  -DHAVE_PNG_H -I/usr/X11/include/libpng15 -DDarwin -DNO_GL_PREFIX -I/usr/X11R6/include -DHAVE_FREETYPE -Iext/ftgl -I/usr/X11/include/freetype2 -I/usr/X11/include -Iext -I/usr/local/include   -g -O2 -fPIC  -g -O2 -c QuadSet.cpp -o QuadSet.o
g++-4.2 -arch x86_64 -I/Library/Frameworks/R.framework/Resources/include -I/Library/Frameworks/R.framework/Resources/include/x86_64 -I/System/Library/Frameworks/OpenGL.framework/Headers  -DHAVE_PNG_H -I/usr/X11/include/libpng15 -DDarwin -DNO_GL_PREFIX -I/usr/X11R6/include -DHAVE_FREETYPE -Iext/ftgl -I/usr/X11/include/freetype2 -I/usr/X11/include -Iext -I/usr/local/include   -g -O2 -fPIC  -g -O2 -c RenderContext.cpp -o RenderContext.o
g++-4.2 -arch x86_64 -I/Library/Frameworks/R.framework/Resources/include -I/Library/Frameworks/R.framework/Resources/include/x86_64 -I/System/Library/Frameworks/OpenGL.framework/Headers  -DHAVE_PNG_H -I/usr/X11/include/libpng15 -DDarwin -DNO_GL_PREFIX -I/usr/X11R6/include -DHAVE_FREETYPE -Iext/ftgl -I/usr/X11/include/freetype2 -I/usr/X11/include -Iext -I/usr/local/include   -g -O2 -fPIC  -g -O2 -c Shape.cpp -o Shape.o
g++-4.2 -arch x86_64 -I/Library/Frameworks/R.framework/Resources/include -I/Library/Frameworks/R.framework/Resources/include/x86_64 -I/System/Library/Frameworks/OpenGL.framework/Headers  -DHAVE_PNG_H -I/usr/X11/include/libpng15 -DDarwin -DNO_GL_PREFIX -I/usr/X11R6/include -DHAVE_FREETYPE -Iext/ftgl -I/usr/X11/include/freetype2 -I/usr/X11/include -Iext -I/usr/local/include   -g -O2 -fPIC  -g -O2 -c SphereMesh.cpp -o SphereMesh.o
g++-4.2 -arch x86_64 -I/Library/Frameworks/R.framework/Resources/include -I/Library/Frameworks/R.framework/Resources/include/x86_64 -I/System/Library/Frameworks/OpenGL.framework/Headers  -DHAVE_PNG_H -I/usr/X11/include/libpng15 -DDarwin -DNO_GL_PREFIX -I/usr/X11R6/include -DHAVE_FREETYPE -Iext/ftgl -I/usr/X11/include/freetype2 -I/usr/X11/include -Iext -I/usr/local/include   -g -O2 -fPIC  -g -O2 -c SphereSet.cpp -o SphereSet.o
g++-4.2 -arch x86_64 -I/Library/Frameworks/R.framework/Resources/include -I/Library/Frameworks/R.framework/Resources/include/x86_64 -I/System/Library/Frameworks/OpenGL.framework/Headers  -DHAVE_PNG_H -I/usr/X11/include/libpng15 -DDarwin -DNO_GL_PREFIX -I/usr/X11R6/include -DHAVE_FREETYPE -Iext/ftgl -I/usr/X11/include/freetype2 -I/usr/X11/include -Iext -I/usr/local/include   -g -O2 -fPIC  -g -O2 -c SpriteSet.cpp -o SpriteSet.o
g++-4.2 -arch x86_64 -I/Library/Frameworks/R.framework/Resources/include -I/Library/Frameworks/R.framework/Resources/include/x86_64 -I/System/Library/Frameworks/OpenGL.framework/Headers  -DHAVE_PNG_H -I/usr/X11/include/libpng15 -DDarwin -DNO_GL_PREFIX -I/usr/X11R6/include -DHAVE_FREETYPE -Iext/ftgl -I/usr/X11/include/freetype2 -I/usr/X11/include -Iext -I/usr/local/include   -g -O2 -fPIC  -g -O2 -c String.cpp -o String.o
g++-4.2 -arch x86_64 -I/Library/Frameworks/R.framework/Resources/include -I/Library/Frameworks/R.framework/Resources/include/x86_64 -I/System/Library/Frameworks/OpenGL.framework/Headers  -DHAVE_PNG_H -I/usr/X11/include/libpng15 -DDarwin -DNO_GL_PREFIX -I/usr/X11R6/include -DHAVE_FREETYPE -Iext/ftgl -I/usr/X11/include/freetype2 -I/usr/X11/include -Iext -I/usr/local/include   -g -O2 -fPIC  -g -O2 -c Surface.cpp -o Surface.o
g++-4.2 -arch x86_64 -I/Library/Frameworks/R.framework/Resources/include -I/Library/Frameworks/R.framework/Resources/include/x86_64 -I/System/Library/Frameworks/OpenGL.framework/Headers  -DHAVE_PNG_H -I/usr/X11/include/libpng15 -DDarwin -DNO_GL_PREFIX -I/usr/X11R6/include -DHAVE_FREETYPE -Iext/ftgl -I/usr/X11/include/freetype2 -I/usr/X11/include -Iext -I/usr/local/include   -g -O2 -fPIC  -g -O2 -c TextSet.cpp -o TextSet.o
g++-4.2 -arch x86_64 -I/Library/Frameworks/R.framework/Resources/include -I/Library/Frameworks/R.framework/Resources/include/x86_64 -I/System/Library/Frameworks/OpenGL.framework/Headers  -DHAVE_PNG_H -I/usr/X11/include/libpng15 -DDarwin -DNO_GL_PREFIX -I/usr/X11R6/include -DHAVE_FREETYPE -Iext/ftgl -I/usr/X11/include/freetype2 -I/usr/X11/include -Iext -I/usr/local/include   -g -O2 -fPIC  -g -O2 -c Texture.cpp -o Texture.o
g++-4.2 -arch x86_64 -I/Library/Frameworks/R.framework/Resources/include -I/Library/Frameworks/R.framework/Resources/include/x86_64 -I/System/Library/Frameworks/OpenGL.framework/Headers  -DHAVE_PNG_H -I/usr/X11/include/libpng15 -DDarwin -DNO_GL_PREFIX -I/usr/X11R6/include -DHAVE_FREETYPE -Iext/ftgl -I/usr/X11/include/freetype2 -I/usr/X11/include -Iext -I/usr/local/include   -g -O2 -fPIC  -g -O2 -c Viewpoint.cpp -o Viewpoint.o
g++-4.2 -arch x86_64 -I/Library/Frameworks/R.framework/Resources/include -I/Library/Frameworks/R.framework/Resources/include/x86_64 -I/System/Library/Frameworks/OpenGL.framework/Headers  -DHAVE_PNG_H -I/usr/X11/include/libpng15 -DDarwin -DNO_GL_PREFIX -I/usr/X11R6/include -DHAVE_FREETYPE -Iext/ftgl -I/usr/X11/include/freetype2 -I/usr/X11/include -Iext -I/usr/local/include   -g -O2 -fPIC  -g -O2 -c api.cpp -o api.o
g++-4.2 -arch x86_64 -I/Library/Frameworks/R.framework/Resources/include -I/Library/Frameworks/R.framework/Resources/include/x86_64 -I/System/Library/Frameworks/OpenGL.framework/Headers  -DHAVE_PNG_H -I/usr/X11/include/libpng15 -DDarwin -DNO_GL_PREFIX -I/usr/X11R6/include -DHAVE_FREETYPE -Iext/ftgl -I/usr/X11/include/freetype2 -I/usr/X11/include -Iext -I/usr/local/include   -g -O2 -fPIC  -g -O2 -c assert.cpp -o assert.o
g++-4.2 -arch x86_64 -I/Library/Frameworks/R.framework/Resources/include -I/Library/Frameworks/R.framework/Resources/include/x86_64 -I/System/Library/Frameworks/OpenGL.framework/Headers  -DHAVE_PNG_H -I/usr/X11/include/libpng15 -DDarwin -DNO_GL_PREFIX -I/usr/X11R6/include -DHAVE_FREETYPE -Iext/ftgl -I/usr/X11/include/freetype2 -I/usr/X11/include -Iext -I/usr/local/include   -g -O2 -fPIC  -g -O2 -c callbacks.cpp -o callbacks.o
g++-4.2 -arch x86_64 -I/Library/Frameworks/R.framework/Resources/include -I/Library/Frameworks/R.framework/Resources/include/x86_64 -I/System/Library/Frameworks/OpenGL.framework/Headers  -DHAVE_PNG_H -I/usr/X11/include/libpng15 -DDarwin -DNO_GL_PREFIX -I/usr/X11R6/include -DHAVE_FREETYPE -Iext/ftgl -I/usr/X11/include/freetype2 -I/usr/X11/include -Iext -I/usr/local/include   -g -O2 -fPIC  -g -O2 -c device.cpp -o device.o
g++-4.2 -arch x86_64 -I/Library/Frameworks/R.framework/Resources/include -I/Library/Frameworks/R.framework/Resources/include/x86_64 -I/System/Library/Frameworks/OpenGL.framework/Headers  -DHAVE_PNG_H -I/usr/X11/include/libpng15 -DDarwin -DNO_GL_PREFIX -I/usr/X11R6/include -DHAVE_FREETYPE -Iext/ftgl -I/usr/X11/include/freetype2 -I/usr/X11/include -Iext -I/usr/local/include   -g -O2 -fPIC  -g -O2 -c devicemanager.cpp -o devicemanager.o
g++-4.2 -arch x86_64 -I/Library/Frameworks/R.framework/Resources/include -I/Library/Frameworks/R.framework/Resources/include/x86_64 -I/System/Library/Frameworks/OpenGL.framework/Headers  -DHAVE_PNG_H -I/usr/X11/include/libpng15 -DDarwin -DNO_GL_PREFIX -I/usr/X11R6/include -DHAVE_FREETYPE -Iext/ftgl -I/usr/X11/include/freetype2 -I/usr/X11/include -Iext -I/usr/local/include   -g -O2 -fPIC  -g -O2 -c fps.cpp -o fps.o
g++-4.2 -arch x86_64 -I/Library/Frameworks/R.framework/Resources/include -I/Library/Frameworks/R.framework/Resources/include/x86_64 -I/System/Library/Frameworks/OpenGL.framework/Headers  -DHAVE_PNG_H -I/usr/X11/include/libpng15 -DDarwin -DNO_GL_PREFIX -I/usr/X11R6/include -DHAVE_FREETYPE -Iext/ftgl -I/usr/X11/include/freetype2 -I/usr/X11/include -Iext -I/usr/local/include   -g -O2 -fPIC  -g -O2 -c ftgl.cpp -o ftgl.o
g++-4.2 -arch x86_64 -I/Library/Frameworks/R.framework/Resources/include -I/Library/Frameworks/R.framework/Resources/include/x86_64 -I/System/Library/Frameworks/OpenGL.framework/Headers  -DHAVE_PNG_H -I/usr/X11/include/libpng15 -DDarwin -DNO_GL_PREFIX -I/usr/X11R6/include -DHAVE_FREETYPE -Iext/ftgl -I/usr/X11/include/freetype2 -I/usr/X11/include -Iext -I/usr/local/include   -g -O2 -fPIC  -g -O2 -c geom.cpp -o geom.o
gcc-4.2 -arch x86_64 -std=gnu99 -I/Library/Frameworks/R.framework/Resources/include -I/Library/Frameworks/R.framework/Resources/include/x86_64 -I/System/Library/Frameworks/OpenGL.framework/Headers  -DHAVE_PNG_H -I/usr/X11/include/libpng15 -DDarwin -DNO_GL_PREFIX -I/usr/X11R6/include -DHAVE_FREETYPE -Iext/ftgl -I/usr/X11/include/freetype2 -I/usr/X11/include -Iext -I/usr/local/include    -fPIC  -g -O2 -c gl2ps.c -o gl2ps.o
g++-4.2 -arch x86_64 -I/Library/Frameworks/R.framework/Resources/include -I/Library/Frameworks/R.framework/Resources/include/x86_64 -I/System/Library/Frameworks/OpenGL.framework/Headers  -DHAVE_PNG_H -I/usr/X11/include/libpng15 -DDarwin -DNO_GL_PREFIX -I/usr/X11R6/include -DHAVE_FREETYPE -Iext/ftgl -I/usr/X11/include/freetype2 -I/usr/X11/include -Iext -I/usr/local/include   -g -O2 -fPIC  -g -O2 -c glErrors.cpp -o glErrors.o
g++-4.2 -arch x86_64 -I/Library/Frameworks/R.framework/Resources/include -I/Library/Frameworks/R.framework/Resources/include/x86_64 -I/System/Library/Frameworks/OpenGL.framework/Headers  -DHAVE_PNG_H -I/usr/X11/include/libpng15 -DDarwin -DNO_GL_PREFIX -I/usr/X11R6/include -DHAVE_FREETYPE -Iext/ftgl -I/usr/X11/include/freetype2 -I/usr/X11/include -Iext -I/usr/local/include   -g -O2 -fPIC  -g -O2 -c glgui.cpp -o glgui.o
g++-4.2 -arch x86_64 -I/Library/Frameworks/R.framework/Resources/include -I/Library/Frameworks/R.framework/Resources/include/x86_64 -I/System/Library/Frameworks/OpenGL.framework/Headers  -DHAVE_PNG_H -I/usr/X11/include/libpng15 -DDarwin -DNO_GL_PREFIX -I/usr/X11R6/include -DHAVE_FREETYPE -Iext/ftgl -I/usr/X11/include/freetype2 -I/usr/X11/include -Iext -I/usr/local/include   -g -O2 -fPIC  -g -O2 -c gui.cpp -o gui.o
g++-4.2 -arch x86_64 -I/Library/Frameworks/R.framework/Resources/include -I/Library/Frameworks/R.framework/Resources/include/x86_64 -I/System/Library/Frameworks/OpenGL.framework/Headers  -DHAVE_PNG_H -I/usr/X11/include/libpng15 -DDarwin -DNO_GL_PREFIX -I/usr/X11R6/include -DHAVE_FREETYPE -Iext/ftgl -I/usr/X11/include/freetype2 -I/usr/X11/include -Iext -I/usr/local/include   -g -O2 -fPIC  -g -O2 -c init.cpp -o init.o
g++-4.2 -arch x86_64 -I/Library/Frameworks/R.framework/Resources/include -I/Library/Frameworks/R.framework/Resources/include/x86_64 -I/System/Library/Frameworks/OpenGL.framework/Headers  -DHAVE_PNG_H -I/usr/X11/include/libpng15 -DDarwin -DNO_GL_PREFIX -I/usr/X11R6/include -DHAVE_FREETYPE -Iext/ftgl -I/usr/X11/include/freetype2 -I/usr/X11/include -Iext -I/usr/local/include   -g -O2 -fPIC  -g -O2 -c osxgui.cpp -o osxgui.o
g++-4.2 -arch x86_64 -I/Library/Frameworks/R.framework/Resources/include -I/Library/Frameworks/R.framework/Resources/include/x86_64 -I/System/Library/Frameworks/OpenGL.framework/Headers  -DHAVE_PNG_H -I/usr/X11/include/libpng15 -DDarwin -DNO_GL_PREFIX -I/usr/X11R6/include -DHAVE_FREETYPE -Iext/ftgl -I/usr/X11/include/freetype2 -I/usr/X11/include -Iext -I/usr/local/include   -g -O2 -fPIC  -g -O2 -c osxlib.cpp -o osxlib.o
g++-4.2 -arch x86_64 -I/Library/Frameworks/R.framework/Resources/include -I/Library/Frameworks/R.framework/Resources/include/x86_64 -I/System/Library/Frameworks/OpenGL.framework/Headers  -DHAVE_PNG_H -I/usr/X11/include/libpng15 -DDarwin -DNO_GL_PREFIX -I/usr/X11R6/include -DHAVE_FREETYPE -Iext/ftgl -I/usr/X11/include/freetype2 -I/usr/X11/include -Iext -I/usr/local/include   -g -O2 -fPIC  -g -O2 -c par3d.cpp -o par3d.o
g++-4.2 -arch x86_64 -I/Library/Frameworks/R.framework/Resources/include -I/Library/Frameworks/R.framework/Resources/include/x86_64 -I/System/Library/Frameworks/OpenGL.framework/Headers  -DHAVE_PNG_H -I/usr/X11/include/libpng15 -DDarwin -DNO_GL_PREFIX -I/usr/X11R6/include -DHAVE_FREETYPE -Iext/ftgl -I/usr/X11/include/freetype2 -I/usr/X11/include -Iext -I/usr/local/include   -g -O2 -fPIC  -g -O2 -c pixmap.cpp -o pixmap.o
g++-4.2 -arch x86_64 -I/Library/Frameworks/R.framework/Resources/include -I/Library/Frameworks/R.framework/Resources/include/x86_64 -I/System/Library/Frameworks/OpenGL.framework/Headers  -DHAVE_PNG_H -I/usr/X11/include/libpng15 -DDarwin -DNO_GL_PREFIX -I/usr/X11R6/include -DHAVE_FREETYPE -Iext/ftgl -I/usr/X11/include/freetype2 -I/usr/X11/include -Iext -I/usr/local/include   -g -O2 -fPIC  -g -O2 -c render.cpp -o render.o
g++-4.2 -arch x86_64 -I/Library/Frameworks/R.framework/Resources/include -I/Library/Frameworks/R.framework/Resources/include/x86_64 -I/System/Library/Frameworks/OpenGL.framework/Headers  -DHAVE_PNG_H -I/usr/X11/include/libpng15 -DDarwin -DNO_GL_PREFIX -I/usr/X11R6/include -DHAVE_FREETYPE -Iext/ftgl -I/usr/X11/include/freetype2 -I/usr/X11/include -Iext -I/usr/local/include   -g -O2 -fPIC  -g -O2 -c rglmath.cpp -o rglmath.o
g++-4.2 -arch x86_64 -I/Library/Frameworks/R.framework/Resources/include -I/Library/Frameworks/R.framework/Resources/include/x86_64 -I/System/Library/Frameworks/OpenGL.framework/Headers  -DHAVE_PNG_H -I/usr/X11/include/libpng15 -DDarwin -DNO_GL_PREFIX -I/usr/X11R6/include -DHAVE_FREETYPE -Iext/ftgl -I/usr/X11/include/freetype2 -I/usr/X11/include -Iext -I/usr/local/include   -g -O2 -fPIC  -g -O2 -c rglview.cpp -o rglview.o
g++-4.2 -arch x86_64 -I/Library/Frameworks/R.framework/Resources/include -I/Library/Frameworks/R.framework/Resources/include/x86_64 -I/System/Library/Frameworks/OpenGL.framework/Headers  -DHAVE_PNG_H -I/usr/X11/include/libpng15 -DDarwin -DNO_GL_PREFIX -I/usr/X11R6/include -DHAVE_FREETYPE -Iext/ftgl -I/usr/X11/include/freetype2 -I/usr/X11/include -Iext -I/usr/local/include   -g -O2 -fPIC  -g -O2 -c scene.cpp -o scene.o
g++-4.2 -arch x86_64 -I/Library/Frameworks/R.framework/Resources/include -I/Library/Frameworks/R.framework/Resources/include/x86_64 -I/System/Library/Frameworks/OpenGL.framework/Headers  -DHAVE_PNG_H -I/usr/X11/include/libpng15 -DDarwin -DNO_GL_PREFIX -I/usr/X11R6/include -DHAVE_FREETYPE -Iext/ftgl -I/usr/X11/include/freetype2 -I/usr/X11/include -Iext -I/usr/local/include   -g -O2 -fPIC  -g -O2 -c select.cpp -o select.o
g++-4.2 -arch x86_64 -I/Library/Frameworks/R.framework/Resources/include -I/Library/Frameworks/R.framework/Resources/include/x86_64 -I/System/Library/Frameworks/OpenGL.framework/Headers  -DHAVE_PNG_H -I/usr/X11/include/libpng15 -DDarwin -DNO_GL_PREFIX -I/usr/X11R6/include -DHAVE_FREETYPE -Iext/ftgl -I/usr/X11/include/freetype2 -I/usr/X11/include -Iext -I/usr/local/include   -g -O2 -fPIC  -g -O2 -c win32gui.cpp -o win32gui.o
g++-4.2 -arch x86_64 -I/Library/Frameworks/R.framework/Resources/include -I/Library/Frameworks/R.framework/Resources/include/x86_64 -I/System/Library/Frameworks/OpenGL.framework/Headers  -DHAVE_PNG_H -I/usr/X11/include/libpng15 -DDarwin -DNO_GL_PREFIX -I/usr/X11R6/include -DHAVE_FREETYPE -Iext/ftgl -I/usr/X11/include/freetype2 -I/usr/X11/include -Iext -I/usr/local/include   -g -O2 -fPIC  -g -O2 -c win32lib.cpp -o win32lib.o
g++-4.2 -arch x86_64 -I/Library/Frameworks/R.framework/Resources/include -I/Library/Frameworks/R.framework/Resources/include/x86_64 -I/System/Library/Frameworks/OpenGL.framework/Headers  -DHAVE_PNG_H -I/usr/X11/include/libpng15 -DDarwin -DNO_GL_PREFIX -I/usr/X11R6/include -DHAVE_FREETYPE -Iext/ftgl -I/usr/X11/include/freetype2 -I/usr/X11/include -Iext -I/usr/local/include   -g -O2 -fPIC  -g -O2 -c x11gui.cpp -o x11gui.o
x11gui.cpp: In constructor 'gui::X11GUIFactory::X11GUIFactory(const char*)':
x11gui.cpp:459: warning: deprecated conversion from string constant to 'char*'
g++-4.2 -arch x86_64 -I/Library/Frameworks/R.framework/Resources/include -I/Library/Frameworks/R.framework/Resources/include/x86_64 -I/System/Library/Frameworks/OpenGL.framework/Headers  -DHAVE_PNG_H -I/usr/X11/include/libpng15 -DDarwin -DNO_GL_PREFIX -I/usr/X11R6/include -DHAVE_FREETYPE -Iext/ftgl -I/usr/X11/include/freetype2 -I/usr/X11/include -Iext -I/usr/local/include   -g -O2 -fPIC  -g -O2 -c x11lib.cpp -o x11lib.o
g++-4.2 -arch x86_64 -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -single_module -multiply_defined suppress -L/usr/local/lib -o rgl.so BBoxDeco.o Background.o Color.o Disposable.o Light.o LineSet.o LineStripSet.o Material.o PointSet.o PrimitiveSet.o QuadSet.o RenderContext.o Shape.o SphereMesh.o SphereSet.o SpriteSet.o String.o Surface.o TextSet.o Texture.o Viewpoint.o api.o assert.o callbacks.o device.o devicemanager.o fps.o ftgl.o geom.o gl2ps.o glErrors.o glgui.o gui.o init.o osxgui.o osxlib.o par3d.o pixmap.o render.o rglmath.o rglview.o scene.o select.o win32gui.o win32lib.o x11gui.o x11lib.o -lGLU -lGL -framework OpenGL -dylib_file /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib -L/usr/X11/lib -lpng15 -lX11 -L/usr/X11/lib -lfreetype -lz -F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework -Wl,CoreFoundation
installing to /Library/Frameworks/R.framework/Versions/2.13/Resources/library/rgl/libs/x86_64


> Duncan Murdoch
> 
> 
>> BTW: why don't you just use
>> install.packages("rgl")
>> that works on Lion as well...
>> 
>> Cheers,
>> Simon
>> 
>> 
>> [PS: while at it - I'm a bit confused about the current setup, though, since it uses the (non-X11) OpenGL framework yet links X11;  Also it crashes when GLX is not supported (e.g. ssh tunneling). I remember that at some point in the past it was building native and X11 versions but what is left is some mix of both...]
>> 
>> 
>> 
>> 
>> 
>>> Cheers,
>>> 
>>> Marius
>>> _______________________________________________
>>> R-SIG-Mac mailing list
>>> R-SIG-Mac at r-project.org
>>> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
>>> 
>>> 
>> 
> 
> 



More information about the R-SIG-Mac mailing list