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

peter dalgaard pdalgd at gmail.com
Tue Jul 17 20:33:17 CEST 2012

On Jul 17, 2012, at 19:31 , Davor Cubranic wrote:

> On 2012-07-17, at 10:05 AM, Duncan Murdoch wrote:
>> The aglrgl.so library is built from osxgui.mm and osxlib.cpp.  I'd been assuming the problem was an API change in recent OSX 64 bit, but maybe it's a problem with the makefiles or the compiler.  If you can suggest any fixes for this, I'd appreciate it.  (The newest OSX that I have is 10.6.8.)
> BTW, I see osxgui.o being of wrong architecture during an install on 10.6.8 as well...
> But I think this is caused by object files being left in the tar.gz:
> $ tar xzf rgl_0.92.880.tar.gz
> $ find rgl -name \*.o |xargs file
> rgl/src/AGL/x11gui.o: Mach-O object i386
> rgl/src/AGL/x11lib.o: Mach-O object i386
> rgl/src/osx/osxgui.o: Mach-O object i386
> rgl/src/osx/osxlib.o: Mach-O object i386
> Davor

Yay, nice catch! 

This allows me to build an rgl that loads in R.app:

tar xvfz rgl_0.92.880.tar.gz 
rm `find rgl -name \*.o`
R64 CMD INSTALL --configure-args=--with-gl-libs=/usr/X11/lib rgl

I still have some issues with the 32 bit version, but I believe those are unrelated. (MacPorts seems to be interfering....)

Peter Dalgaard, Professor,
Center for Statistics, Copenhagen Business School
Solbjerg Plads 3, 2000 Frederiksberg, Denmark
Phone: (+45)38153501
Email: pd.mes at cbs.dk  Priv: PDalgd at gmail.com

More information about the R-SIG-Mac mailing list