On Jul 17, 2012, at 12:35 , peter dalgaard wrote:

> 
> On Jul 17, 2012, at 03:02 , Duncan Murdoch wrote:
> 
>> It also needs the headers, not just the library.  If you have them and it's 
>> not finding them, you can give hints to the configure script; after 
>> unpacking the source, run ./configure --help to see what's possible.
> 
> Red herring... It really is the library that goes AWOL. I'm not sure why, but 
> the magical incantation on OSX (Snow Leopard at least) seems to be 
> 
> install.packages("rgl", configure.args="--with-gl-libs=/usr/X11/lib")

If anyone cares to dig deeper, the dying words from configure (without the 
extra arg) are

configure:4270: checking for glEnd in -lGL
configure:4295: gcc -arch x86_64 -std=gnu99 -o conftest -g -O2 
-I/System/Library/Frameworks/OpenGL.framework/Headers  -DHAVE_PNG_H 
-I/opt/local/include/libpng14 -DDarwin -DNO_GL_PREFIX -I/usr/X11R6/include  
conftest.c -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/opt/local/lib -lpng14 -lX11 >&5
ld: library not found for -lGL
collect2: ld returned 1 exit status
configure:4295: $? = 1
configure: failed program was:
| /* confdefs.h */
...etc...

whereas the successful configure has

configure:4270: checking for glEnd in -lGL
configure:4295: gcc -arch x86_64 -std=gnu99 -o conftest -g -O2 
-I/System/Library/Frameworks/OpenGL.framework/Headers  -DHAVE_PNG_H 
-I/opt/local/include/libpng14 -DDarwin -DNO_GL_PREFIX -I/usr/X11R6/include  
-L/usr/X11/lib conftest.c -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/opt/local/lib -lpng14 -lX11 >&5
configure:4295: $? = 0
configure:4305: result: yes

The odd bit is that configure apparently does know about OpenGl.framework and 
the .dylibs inside of it; it just doesn't seem to know how to tell -lGL about 
it.

-- 
Peter Dalgaard, Professor,
Center for Statistics, Copenhagen Business School
Solbjerg Plads 3, 2000 Frederiksberg, Denmark
Phone: (+45)38153501
Email: [email protected]  Priv: [email protected]

_______________________________________________
R-SIG-Mac mailing list
[email protected]
https://stat.ethz.ch/mailman/listinfo/r-sig-mac

Reply via email to