[R] jpeglib.h in a strange place

Prof Brian Ripley ripley at stats.ox.ac.uk
Mon Aug 13 18:59:43 CEST 2001


On Mon, 13 Aug 2001, Laurent Gautier wrote:

> Dear All,
>
>
>
> Would anybody have any advice to give on that:
>
> The Facts:
> - I installed (compiled) R on SGI IRIX (6.5)
> - I am not root
> - I discovered the jpeg device I need now badly doesn't work
> (postscript is not so happy with 19 millions spots)
> - after investigation, it appeared the jpeglib.h was detected not recent
> enough at configure time
> - the jpeglib.h in /usr/include is version 6a
> - the jpeglib.h 6b is an exotic place (/usr/freeware/)
>
> The Question:
> How do I specify at configure (or compile ?) time where to find the
> right include file an elegant way ?
> (An RTFM answer is ok, but I just cannot make the flags in configure to
> make it...)

You have to tell it how to find the include file.  Look in config.site:

# Header file search directory (`-IDIR') and any other miscellaneous
# options for the C preprocessor and compiler.
# If unset defaults to `-I/usr/local/include'.
# CPPFLAGS=

so I guess you want

CPPFLAGS="-I/usr/local/include -I/usr/freeware/"

zap config.cache and start again.

-- 
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 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list