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

Duncan Murdoch murdoch.duncan at gmail.com
Tue Jul 17 03:02:28 CEST 2012


On 12-07-16 7:29 PM, Davor Cubranic wrote:
> 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

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.

Duncan Murdoch

>
> 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
>
> _______________________________________________
> 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