[R] install bug with specific JPEG library by exporting CPPFLAGS variable

Brian D Ripley ripley at stats.ox.ac.uk
Wed Dec 8 14:10:39 CET 2004


On 8 Dec 2004, Yves Magliulo wrote:

> Hi there,
> I think I have found a small problem in the
> "/my/path/R-2.0.1/src/modules/X11/MakeFile" generation.
> During the configure step, I have specified a specific JPEG library by
> exporting CPPFLAGS variable.

That only specifies a set of headers, not the library.
It is up to you to ensure that the library paths you need are also
specified, e.g. in LIBS.

To be definite, this is not a bug/problem in R.

> All compilation works well for individual files in the src/modules/X11/
> directory, but when linking, the -ljpeg option doesn't work.
> I obtain the following message (in french sorry):
>
> ------------------------------------------------------------------------------
> make[4]: Entre dans le repertoire `/mnt/softs/R/R-2.0.1/src/modules/X11'
> gcc -shared -L/usr/local/lib -o R_X11.so  dataentry.lo devX11.lo
> rotated.lo rbitmap.lo  -lSM -lICE -L/usr/X11R6/lib -lX11  -ljpeg
> -lpng -lz  -lreadline -ldl -lncurses -lm
> /usr/bin/ld: ne peut trouver -ljpeg
> collect2: ld a retourne 1 code d'?tat d'ex?cution

[...]

-- 
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-help mailing list