On 17/07/2012 2:33 PM, peter dalgaard wrote:
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....)
Yes, nice catch indeed. If you get the tarball from R-forge, you'll
get a slightly newer version, and no *.o files included. I'll send that
one to CRAN.
Duncan Murdoch
_______________________________________________
R-SIG-Mac mailing list
[email protected]
https://stat.ethz.ch/mailman/listinfo/r-sig-mac