[R-SIG-Mac] Fwd: rgl 0.81 in R 2.8 on Mac OS X
Simon Urbanek
simon.urbanek at r-project.org
Thu Oct 23 15:18:53 CEST 2008
Ken,
I didn't follow the earlier discussion, but I can suggest why it works
in R 2.8.0 :). For R 2.8.0 we now use an updated (static) freetype in
R. On the CRAN build machine it has higher precedence than Apple's
freetype, so that's what rgl binary ends up using.
But then, I didn't see any problems before so it's hard to tell...
Cheers,
S
On Oct 23, 2008, at 6:44 , Kenneth Knoblauch wrote:
> Just a followup. With the updated CRAN R 2.8.0 binaries,
> and installing the binary builds of the packages, all works
> fine again. I'd still like to track down the source of
> the problem discussed at the beginning of this thread (at
> the bottom of this mail), if anyone has some suggestions,
> however.
>
> Thank you.
>
> Ken
>
>
> Quoting Duncan Murdoch <murdoch at stats.uwo.ca>:
>
>> Kenneth Knoblauch wrote:
>>> Hi again, Duncan,
>>>
>>> One more piece of information that seems relevant. I said that
>>> it rgl compiled by which I meant that it got to the end of
>>> the compilation and left an rgl package in my library directory,
>>> but looking back through the compilation, I found the following
>>> error which does seem to be pertinent, if that might help...
>>>
>>> mkdir -p AGL
>>> mv AGL/* .
>>> MAKINGAGL=TRUE /Library/Frameworks/R.framework/Resources/bin/R
>>> CMD SHLIB -o aglrgl.so *.cpp *.c
>>> mv: rename AGL/* to ./*: No such file or directory
>>> make: [aglrgl.so] Error 1 (ignored)
>>>
>>
>> That's not a problem -- the build script builds 2 versions of some
>> files, and the first time through they don't exist, so you get that
>> error, which is ignored.
>>
>> The problem is with the Freetype library, which is being detected at
>> build time but which is not available at run time. All I can say is
>> that it works for me, I don't know why it doesn't work for you. (I'm
>> on OS X 10.4.11, you're probably on 10.5?) You can try to configure
>> rgl without Freetype by using --disable-ftgl as a configure option,
>> i.e.
>>
>> R CMD INSTALL --configure-args=--disable-ftgl ...
>>
>> but I don't know how to get it to work.
>>
>> I've copied this to R-sig-mac; maybe someone there can suggest a fix.
>>
>> Duncan Murdoch
>>> Thank you.
>>>
>>> best,
>>>
>>> Ken
>>>
>>>
>>> ----- Forwarded message from ken.knoblauch at inserm.fr -----
>>> Date: Wed, 22 Oct 2008 10:06:21 +0200
>>> From: Kenneth Knoblauch <ken.knoblauch at inserm.fr>
>>> Reply-To: Kenneth Knoblauch <ken.knoblauch at inserm.fr>
>>> Subject: rgl 0.81 in R 2.8 on Mac OS X
>>> To: Duncan Murdoch <murdoch at stats.uwo.ca>
>>>
>>> Hi Duncan,
>>>
>>> I was able to install rgl with no problems from source
>>> on R 2.8 but get an error when I try to load it:
>>>
>>>
>>>> library(rgl)
>>>>
>>> Error in dyn.load(file, DLLpath = DLLpath, ...) :
>>> unable to load shared library
>>> '/Users/knoblauch/Library/R/2.8/library/rgl/libs/i386/aglrgl.so':
>>>
>>> dlopen(/Users/knoblauch/Library/R/2.8/library/rgl/libs/i386/
>>> aglrgl.so,
>>> 6): Symbol not found: _FT_Attach_File
>>> Referenced from:
>>> /Users/knoblauch/Library/R/2.8/library/rgl/libs/i386/aglrgl.so
>>> Expected in: dynamic lookup
>>>
>>> Error : .onLoad failed in 'loadNamespace' for 'rgl'
>>> Error: package/namespace load failed for 'rgl'
>>>
>>> The shared library is there:
>>>
>>> [Macintosh-6:rgl/libs/i386] knoblauch% pwd
>>> /Users/knoblauch/Library/R/2.8/library/rgl/libs/i386
>>> [Macintosh-6:rgl/libs/i386] knoblauch% ls
>>> aglrgl.so* rgl.so*
>>>
>>> Here is some further information:
>>>
>>> sessionInfo()
>>> R version 2.8.0 (2008-10-20)
>>> i386-apple-darwin8.11.1
>>>
>>> locale:
>>> en_US.UTF-8/en_US.UTF-8/C/C/en_US.UTF-8/en_US.UTF-8
>>>
>>> attached base packages:
>>> [1] stats graphics grDevices utils datasets methods base
>>>
>>> loaded via a namespace (and not attached):
>>> [1] tools_2.8.0
>>>
>>> Any ideas? Please don't slay the messenger. Hope that all is well
>>> otherwise.
>>>
>>> Thanks.
>>>
>>> best,
>>>
>>> Ken
>>>
>>>
>
>
>
> --
> Ken Knoblauch
> Inserm U846
> Institut Cellule Souche et Cerveau
> Département Neurosciences Intégratives
> 18 avenue du Doyen Lépine
> 69500 Bron
> France
> tel: +33 (0)4 72 91 34 77
> fax: +33 (0)4 72 91 34 61
> portable: +33 (0)6 84 10 64 10
> http://www.sbri.fr
>
> _______________________________________________
> R-SIG-Mac mailing list
> R-SIG-Mac at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
More information about the R-SIG-Mac
mailing list