Skip to content

rgl.open does not work

7 messages · Christoph Hofer, Jan de Leeuw, Duncan Murdoch +1 more

#
Dear Mac-R-users

I installed the rgl package via the R-GUI installation menu as a  
binary (version 0.79).
I use the R- 2.7.1 and i run it on a intel Mac (Leopard 10.5.4).

The command rgl.open() gives me the following error:

error in rgl.open() : Cannot create font, error code: 1

Any suggestion to solve my problem?


Thanks

Yours Faithfully,

Christoph Hofer
#
On 7/7/2008 11:15 AM, Christoph Hofer wrote:
There are problems with the font handling in 0.79 on MacOSX.  Your 
options are to rebuild from source without including the FTGL/Freetype 
handling, or go back to 0.77, or to figure out what's wrong with the 
configuration and fix it (and then tell me or Daniel what's needed!)

Duncan Murdoch
#
On 07/07/2008 11:15 AM, Christoph Hofer wrote:
Another suggestion:

Don't use rgl.open, use open3d.  But before you do that, try

r3dDefaults$useFreeType <- FALSE

I don't know how to get FTGL/Freetype to run properly on MacOSX, but 
this avoids trying.

Duncan Murdoch
#
in src/ext/FTVectorizer.cpp lines 8-9 change

#ifdef __APPLE_CC__
     typedef GLvoid (*GLUTesselatorFunction)(...);

to

#ifdef __APPLE_CC__
     typedef GLvoid (*GLUTesselatorFunction)();

then rgl compiles on OS X (using g++-4.0, even with FTGL)

-- Jan
On Jul 7, 2008, at 18:29 , Duncan Murdoch wrote:

            
===
Jan de Leeuw; Distinguished Professor and Chair, UCLA Department of  
Statistics;
Director: UCLA Center for Environmental Statistics (CES);
Editor: Journal of Multivariate Analysis, Journal of Statistical  
Software;
US mail: 8125 Math Sciences Bldg, Box 951554, Los Angeles, CA 90095-1554
phone (310)-825-9550;  fax (310)-206-5658;  email: deleeuw at stat.ucla.edu
.mac: jdeleeuw ++++++  aim: deleeuwjan ++++++ skype: j_deleeuw
homepages: http://gifi.stat.ucla.edu ++++++ http://www.cuddyvalley.org
   
-------------------------------------------------------------------------------------------------
           No matter where you go, there you are. --- Buckaroo Banzai
                    http://gifi.stat.ucla.edu/sounds/nomatter.au
#
On 07/07/2008 11:46 PM, Jan de Leeuw wrote:
I believe the first line is needed in 10.4.  Is there a conditional to 
select just that version?

Duncan Murdoch
#
Byron Ellis wrote:
Thanks, that looks simple, and rgl still compiles in Tiger.  I'll commit 
the change as soon as I have an Internet connection again.

I'm still seeing problems with the display of glyphs: it appears that 
FTGL is not reading what FreeType sends properly, or FreeType is not 
reading the .ttf file properly.  For now I'm going to set 
useFreeType=FALSE on MacOSX.  It might help if FTGL could specify fonts 
by their characteristics, so I could use cairo or pango the way other 
devices do  -- but FTGL isn't currently being maintained.  Maybe it 
would be worth the effort to figure out what's going on in it and adding 
this myself.

Duncan Murdoch