[R-SIG-Mac] compile minimal R for mac with quartz support

Prof Brian Ripley ripley at stats.ox.ac.uk
Thu Jun 26 10:26:54 CEST 2008


On Thu, 26 Jun 2008, Marc Lohse wrote:

> Hi,
>
> i would like to create a minimal build of the R engine to package together with
> a Java application. So far i have succeeded in doing this by compiling the R sources
> using the following args to configure:
>
> ../configure --prefix=/Users/marc/Desktop/standaloneR --enable-static=yes
  --enable-threads=posix --with-aqua=no --with-tcltk=no --enable-R-framework=no

Are you guessing here?  The first two do nothing in R.

> Unfortunately the R created using the above configuration does not 
> include support for the quartz() graphics device (which i would like to 
> have because of the antialiasing capabilities and also because quartz 
> should be available on any mac system - in constrast to X11 that might 
> not be available on Tiger systems)

Hmm, X11 does have 'antialiasing capabilities' by default in R 2.7.x. 
The availability of quartz() is controlled by HAVE_AQUA, so you need 
--with-aqua .

> A second and third question that i have (maybe only because i do not 
> have a lot of experience with compiling from the command line - sorry) 
> is: How do i tell the system to generate universal binaries?

Follow the FAQ, e.g.

http://cran.r-project.org/bin/macosx/RMacOSX-FAQ.html#How-to-build-universal-R

> The build also dynamically links to libpng and lipjpeg which causes 
> problems when the final app is started on different machines with 
> different versions of these libraries (or even wothout them). So evade 
> this problem i would like to link them statically - but i did not figure 
> out how...

How about (from configure --help)

   --with-libpng           use libpng library (if available) [yes]
   --with-jpeglib          use jpeglib library (if available) [yes]

Switching these off should do what you want.

> If this is all off-topic or in any other way not suitable to ask in this 
> list i apologize and would like to know where there would be a better 
> place to ask.

Most of it is in the FAQ.

> Thanks in advance,
>
> Marc
>
>
> ------------------------------------------------------------------------
> Dr. Marc Lohse
> Max-Planck-Institute of molecular plant phyiology
> AG Usadel
> Am Muehlenberg 1
> D-14476 Potsdam-Golm
>
> Tel.: 0331-5678157
> e-mail: lohse at mpimp-golm.mpg.de
> -----------------------------------------------------------------------

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595



More information about the R-SIG-Mac mailing list