[R-SIG-Mac] rgl configure error: "missing required library GL"

Davor Cubranic cubranic at stat.ubc.ca
Tue Jul 17 01:29:17 CEST 2012


I see the following error when installing rgl from CRAN source:

> install.packages('rgl')
trying URL 'http://cran.stat.sfu.ca/src/contrib/rgl_0.92.880.tar.gz'
Content type 'application/x-gzip' length 1742168 bytes (1.7 Mb)
opened URL
==================================================
downloaded 1.7 Mb

* installing *source* package 'rgl' ...
** package 'rgl' successfully unpacked and MD5 sums checked
checking for gcc... gcc -arch x86_64 -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 -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/Versions/2.15/Resources/library/rgl'

But I do have libGL in a number of locations, for instance:

/Developer/SDKs/MacOSX10.7.sdk/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
/Developer/SDKs/MacOSX10.7.sdk/usr/X11/lib/libGL.1.2.dylib
/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
/usr/X11/lib/libGL.dylib

I'm running R 2.15.0 on OSX 10.7.4. GCC is: i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.1.00). Is there something wrong with OpenGL on Lion or is this a bug in the configure script?

Davor



More information about the R-SIG-Mac mailing list