SCM

[#1996] Install of either binary or source rgl under Lion 10.7.4 fails

View Trackers | Bugs | Download .csv | Monitor

Date:
2012-05-12 00:47
Priority:
3
State:
Closed
Submitted by:
Michael Neale (mcneale)
Assigned to:
Nobody (None)
Hardware:
Macintosh
Product:
None
Operating System:
MacOS X
Component:
None
Version:
None
Severity:
None
Resolution:
Invalid
 
URL:
Summary:
Install of either binary or source rgl under Lion 10.7.4 fails

Detailed description
I installed using the R GUI, with dependencies checked. No warnings and it looked to be fine. However:

> library(NeatMap)
Loading required package: ggplot2

Attaching package: ‘ggplot2’

The following object(s) are masked from ‘package:psych’:

%+%

Loading required package: rgl
Error : .onLoad failed in loadNamespace() for 'rgl', details:
call: dyn.load(file, DLLpath = DLLpath, ...)
error: unable to load shared object '/Library/Frameworks/R.framework/Versions/2.14/Resources/library/rgl/libs/x86_64/aglrgl.so':
dlopen(/Library/Frameworks/R.framework/Versions/2.14/Resources/library/rgl/libs/x86_64/aglrgl.so, 6): Symbol not found: __ZN3gui13OSXGUIFactory12hasEventLoopEv
Referenced from: /Library/Frameworks/R.framework/Versions/2.14/Resources/library/rgl/libs/x86_64/aglrgl.so
Expected in: dynamic lookup

Error: package ‘rgl’ could not be loaded

So then I try building from source, also via R GUI

trying URL 'http://watson.nci.nih.gov/cran_mirror/src/contrib/rgl_0.92.879.tar.gz'
Content type 'application/octet-stream' length 1742190 bytes (1.7 Mb)
opened URL
==================================================
downloaded 1.7 Mb


Welcome to R on this Macbook!

* installing *source* package ‘rgl’ ...
** package ‘rgl’ successfully unpacked and MD5 sums checked
checking for gcc... gcc -std=gnu99
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc -std=gnu99 accepts -g... yes
checking for gcc -std=gnu99 option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -std=gnu99 -E
checking for gcc... (cached) gcc -std=gnu99
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc -std=gnu99 accepts -g... (cached) yes
checking for gcc -std=gnu99 option to accept ISO C89... (cached) none needed
checking for libpng-config... no
checking libpng... checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... rm: conftest.dSYM: is a directory
rm: conftest.dSYM: is a directory
yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking png.h usability... yes
checking png.h presence... yes
checking for png.h... yes
checking for png_read_update_info in -lpng... no
configure: libpng header and lib found
configure: using libpng dynamic linkage
checking for X... libraries /usr/X11/lib, headers
checking for glEnd in -lGL... yes
checking for gluProject in -lGLU... yes
checking for freetype-config... no
configure: creating ./config.status
config.status: creating src/Makevars
** libs
*** arch - x86_64
g++ -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 -DDarwin -DNO_GL_PREFIX -I/usr/X11R6/include -Iext -I/usr/local/include -g -O2 -fPIC -g -O2 -c ABCLineSet.cpp -o ABCLineSet.o
g++ -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 -DDarwin -DNO_GL_PREFIX -I/usr/X11R6/include -Iext -I/usr/local/include -g -O2 -fPIC -g -O2 -c BBoxDeco.cpp -o BBoxDeco.o
g++ -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 -DDarwin -DNO_GL_PREFIX -I/usr/X11R6/include -Iext -I/usr/local/include -g -O2 -fPIC -g -O2 -c Background.cpp -o Background.o
g++ -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 -DDarwin -DNO_GL_PREFIX -I/usr/X11R6/include -Iext -I/usr/local/include -g -O2 -fPIC -g -O2 -c Color.cpp -o Color.o
g++ -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 -DDarwin -DNO_GL_PREFIX -I/usr/X11R6/include -Iext -I/usr/local/include -g -O2 -fPIC -g -O2 -c Disposable.cpp -o Disposable.o
g++ -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 -DDarwin -DNO_GL_PREFIX -I/usr/X11R6/include -Iext -I/usr/local/include -g -O2 -fPIC -g -O2 -c Light.cpp -o Light.o
g++ -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 -DDarwin -DNO_GL_PREFIX -I/usr/X11R6/include -Iext -I/usr/local/include -g -O2 -fPIC -g -O2 -c LineSet.cpp -o LineSet.o
g++ -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 -DDarwin -DNO_GL_PREFIX -I/usr/X11R6/include -Iext -I/usr/local/include -g -O2 -fPIC -g -O2 -c LineStripSet.cpp -o LineStripSet.o
g++ -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 -DDarwin -DNO_GL_PREFIX -I/usr/X11R6/include -Iext -I/usr/local/include -g -O2 -fPIC -g -O2 -c Material.cpp -o Material.o
g++ -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 -DDarwin -DNO_GL_PREFIX -I/usr/X11R6/include -Iext -I/usr/local/include -g -O2 -fPIC -g -O2 -c PlaneSet.cpp -o PlaneSet.o
g++ -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 -DDarwin -DNO_GL_PREFIX -I/usr/X11R6/include -Iext -I/usr/local/include -g -O2 -fPIC -g -O2 -c PointSet.cpp -o PointSet.o
g++ -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 -DDarwin -DNO_GL_PREFIX -I/usr/X11R6/include -Iext -I/usr/local/include -g -O2 -fPIC -g -O2 -c PrimitiveSet.cpp -o PrimitiveSet.o
g++ -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 -DDarwin -DNO_GL_PREFIX -I/usr/X11R6/include -Iext -I/usr/local/include -g -O2 -fPIC -g -O2 -c QuadSet.cpp -o QuadSet.o
g++ -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 -DDarwin -DNO_GL_PREFIX -I/usr/X11R6/include -Iext -I/usr/local/include -g -O2 -fPIC -g -O2 -c RenderContext.cpp -o RenderContext.o
g++ -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 -DDarwin -DNO_GL_PREFIX -I/usr/X11R6/include -Iext -I/usr/local/include -g -O2 -fPIC -g -O2 -c Shape.cpp -o Shape.o
g++ -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 -DDarwin -DNO_GL_PREFIX -I/usr/X11R6/include -Iext -I/usr/local/include -g -O2 -fPIC -g -O2 -c SphereMesh.cpp -o SphereMesh.o
g++ -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 -DDarwin -DNO_GL_PREFIX -I/usr/X11R6/include -Iext -I/usr/local/include -g -O2 -fPIC -g -O2 -c SphereSet.cpp -o SphereSet.o
g++ -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 -DDarwin -DNO_GL_PREFIX -I/usr/X11R6/include -Iext -I/usr/local/include -g -O2 -fPIC -g -O2 -c SpriteSet.cpp -o SpriteSet.o
g++ -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 -DDarwin -DNO_GL_PREFIX -I/usr/X11R6/include -Iext -I/usr/local/include -g -O2 -fPIC -g -O2 -c String.cpp -o String.o
g++ -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 -DDarwin -DNO_GL_PREFIX -I/usr/X11R6/include -Iext -I/usr/local/include -g -O2 -fPIC -g -O2 -c Surface.cpp -o Surface.o
g++ -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 -DDarwin -DNO_GL_PREFIX -I/usr/X11R6/include -Iext -I/usr/local/include -g -O2 -fPIC -g -O2 -c TextSet.cpp -o TextSet.o
g++ -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 -DDarwin -DNO_GL_PREFIX -I/usr/X11R6/include -Iext -I/usr/local/include -g -O2 -fPIC -g -O2 -c Texture.cpp -o Texture.o
g++ -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 -DDarwin -DNO_GL_PREFIX -I/usr/X11R6/include -Iext -I/usr/local/include -g -O2 -fPIC -g -O2 -c Viewpoint.cpp -o Viewpoint.o
g++ -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 -DDarwin -DNO_GL_PREFIX -I/usr/X11R6/include -Iext -I/usr/local/include -g -O2 -fPIC -g -O2 -c api.cpp -o api.o
g++ -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 -DDarwin -DNO_GL_PREFIX -I/usr/X11R6/include -Iext -I/usr/local/include -g -O2 -fPIC -g -O2 -c assert.cpp -o assert.o
g++ -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 -DDarwin -DNO_GL_PREFIX -I/usr/X11R6/include -Iext -I/usr/local/include -g -O2 -fPIC -g -O2 -c callbacks.cpp -o callbacks.o
g++ -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 -DDarwin -DNO_GL_PREFIX -I/usr/X11R6/include -Iext -I/usr/local/include -g -O2 -fPIC -g -O2 -c device.cpp -o device.o
g++ -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 -DDarwin -DNO_GL_PREFIX -I/usr/X11R6/include -Iext -I/usr/local/include -g -O2 -fPIC -g -O2 -c devicemanager.cpp -o devicemanager.o
g++ -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 -DDarwin -DNO_GL_PREFIX -I/usr/X11R6/include -Iext -I/usr/local/include -g -O2 -fPIC -g -O2 -c fps.cpp -o fps.o
g++ -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 -DDarwin -DNO_GL_PREFIX -I/usr/X11R6/include -Iext -I/usr/local/include -g -O2 -fPIC -g -O2 -c ftgl.cpp -o ftgl.o
g++ -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 -DDarwin -DNO_GL_PREFIX -I/usr/X11R6/include -Iext -I/usr/local/include -g -O2 -fPIC -g -O2 -c geom.cpp -o geom.o
gcc -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 -DDarwin -DNO_GL_PREFIX -I/usr/X11R6/include -Iext -I/usr/local/include -fPIC -g -O2 -c gl2ps.c -o gl2ps.o
g++ -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 -DDarwin -DNO_GL_PREFIX -I/usr/X11R6/include -Iext -I/usr/local/include -g -O2 -fPIC -g -O2 -c glErrors.cpp -o glErrors.o
g++ -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 -DDarwin -DNO_GL_PREFIX -I/usr/X11R6/include -Iext -I/usr/local/include -g -O2 -fPIC -g -O2 -c glgui.cpp -o glgui.o
g++ -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 -DDarwin -DNO_GL_PREFIX -I/usr/X11R6/include -Iext -I/usr/local/include -g -O2 -fPIC -g -O2 -c gui.cpp -o gui.o
g++ -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 -DDarwin -DNO_GL_PREFIX -I/usr/X11R6/include -Iext -I/usr/local/include -g -O2 -fPIC -g -O2 -c init.cpp -o init.o
g++ -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 -DDarwin -DNO_GL_PREFIX -I/usr/X11R6/include -Iext -I/usr/local/include -g -O2 -fPIC -g -O2 -c par3d.cpp -o par3d.o
g++ -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 -DDarwin -DNO_GL_PREFIX -I/usr/X11R6/include -Iext -I/usr/local/include -g -O2 -fPIC -g -O2 -c pixmap.cpp -o pixmap.o
g++ -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 -DDarwin -DNO_GL_PREFIX -I/usr/X11R6/include -Iext -I/usr/local/include -g -O2 -fPIC -g -O2 -c render.cpp -o render.o
g++ -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 -DDarwin -DNO_GL_PREFIX -I/usr/X11R6/include -Iext -I/usr/local/include -g -O2 -fPIC -g -O2 -c rglmath.cpp -o rglmath.o
g++ -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 -DDarwin -DNO_GL_PREFIX -I/usr/X11R6/include -Iext -I/usr/local/include -g -O2 -fPIC -g -O2 -c rglview.cpp -o rglview.o
g++ -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 -DDarwin -DNO_GL_PREFIX -I/usr/X11R6/include -Iext -I/usr/local/include -g -O2 -fPIC -g -O2 -c scene.cpp -o scene.o
g++ -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 -DDarwin -DNO_GL_PREFIX -I/usr/X11R6/include -Iext -I/usr/local/include -g -O2 -fPIC -g -O2 -c select.cpp -o select.o
g++ -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 -DDarwin -DNO_GL_PREFIX -I/usr/X11R6/include -Iext -I/usr/local/include -g -O2 -fPIC -g -O2 -c win32gui.cpp -o win32gui.o
g++ -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 -DDarwin -DNO_GL_PREFIX -I/usr/X11R6/include -Iext -I/usr/local/include -g -O2 -fPIC -g -O2 -c win32lib.cpp -o win32lib.o
g++ -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 -DDarwin -DNO_GL_PREFIX -I/usr/X11R6/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:468: warning: deprecated conversion from string constant to ‘char*’
g++ -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 -DDarwin -DNO_GL_PREFIX -I/usr/X11R6/include -Iext -I/usr/local/include -g -O2 -fPIC -g -O2 -c x11lib.cpp -o x11lib.o
g++ -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -single_module -multiply_defined suppress -L/usr/local/lib -o rgl.so ABCLineSet.o BBoxDeco.o Background.o Color.o Disposable.o Light.o LineSet.o LineStripSet.o Material.o PlaneSet.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 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 -lpng -L/usr/X11/lib -lX11 -F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework -Wl,CoreFoundation
ld: warning: ignoring file /usr/local/lib/libpng.dylib, missing required architecture x86_64 in file
mkdir Temp
mv x11*.o Temp
mkdir -p AGL
mv AGL/* .
MAKINGAGL=TRUE /Library/Frameworks/R.framework/Resources/bin/R CMD SHLIB -o aglrgl.so *.cpp *.c \
osx/*.mm osx/*.cpp
g++ -I/Library/Frameworks/R.framework/Resources/include -I/Library/Frameworks/R.framework/Resources/include/x86_64 -DHAVE_PNG_H -DRGL_USE_COCOA -Iext -I/usr/local/include -g -O2 -fPIC -g -O2 -c x11gui.cpp -o x11gui.o
g++ -I/Library/Frameworks/R.framework/Resources/include -I/Library/Frameworks/R.framework/Resources/include/x86_64 -DHAVE_PNG_H -DRGL_USE_COCOA -Iext -I/usr/local/include -g -O2 -fPIC -g -O2 -c x11lib.cpp -o x11lib.o
g++ -I/Library/Frameworks/R.framework/Resources/include -I/Library/Frameworks/R.framework/Resources/include/x86_64 -DHAVE_PNG_H -DRGL_USE_COCOA -Iext -I/usr/local/include -g -O2 -fPIC -g -O2 -c osx/osxlib.cpp -o osx/osxlib.o
g++ -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -single_module -multiply_defined suppress -L/usr/local/lib -o aglrgl.so ABCLineSet.o BBoxDeco.o Background.o Color.o Disposable.o Light.o LineSet.o LineStripSet.o Material.o PlaneSet.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 glErrors.o glgui.o gui.o init.o par3d.o pixmap.o render.o rglmath.o rglview.o scene.o select.o win32gui.o win32lib.o x11gui.o x11lib.o gl2ps.o osx/osxgui.o osx/osxlib.o -lpng -framework Cocoa -lobjc -F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework -Wl,CoreFoundation
ld: warning: ignoring file osx/osxgui.o, file was built for i386 which is not the architecture being linked (x86_64)
ld: warning: ignoring file /usr/local/lib/libpng.dylib, missing required architecture x86_64 in file
mv x11*.o AGL
mv Temp/* .
rm -rf Temp
installing to /Library/Frameworks/R.framework/Versions/2.14/Resources/library/rgl/libs/x86_64
** R
** demo
** inst
** preparing package for lazy loading
** help
*** installing help indices
** building package indices ...
** testing if installed package can be loaded

Welcome to R on Mike Neale's Macbook!

Error : .onLoad failed in loadNamespace() for 'rgl', details:
call: dyn.load(file, DLLpath = DLLpath, ...)
error: unable to load shared object '/Library/Frameworks/R.framework/Versions/2.14/Resources/library/rgl/libs/x86_64/rgl.so':
dlopen(/Library/Frameworks/R.framework/Versions/2.14/Resources/library/rgl/libs/x86_64/rgl.so, 6): Symbol not found: _png_create_info_struct
Referenced from: /Library/Frameworks/R.framework/Versions/2.14/Resources/library/rgl/libs/x86_64/rgl.so
Expected in: flat namespace
in /Library/Frameworks/R.framework/Versions/2.14/Resources/library/rgl/libs/x86_64/rgl.so
Error: loading failed
Execution halted
ERROR: loading failed
* removing ‘/Library/Frameworks/R.framework/Versions/2.14/Resources/library/rgl’
* restoring previous ‘/Library/Frameworks/R.framework/Versions/2.14/Resources/library/rgl’

The downloaded packages are in
‘/private/var/folders/ws/2y0x_04926j1ngdbhffgtvl80000gn/T/RtmpDr0ds5/downloaded_packages’


It's not happy, neither am I, and the course of corrective action isn't clear to me from the error and warning messages provided. Any ideas?

Followup

Message
Date: 2013-01-25 15:23
Sender: Duncan Murdoch

This was a problem with the wrong version of libpng. The current binary from CRAN has been tested to work on 10.7.4.
Date: 2012-05-12 01:23
Sender: Duncan Murdoch

I don't know how to fix this, but a workaround is to delete the aglrgl.so file mentioned in the first message. rgl will fall back to using X11 graphics.

Attached Files:

Changes:

Field Old Value Date By
ResolutionNone2013-01-25 15:23murdoch
close_dateNone2013-01-25 15:23murdoch
status_idOpen2013-01-25 15:23murdoch
Thanks to:
Vienna University of Economics and Business University of Wisconsin - Madison Powered By FusionForge