On 18/09/2007 2:55 PM, Dirk Eddelbuettel wrote:
 > On Tue, Sep 18, 2007 at 02:08:18PM -0400, Leeds, Mark (IED) wrote:
 >> I am using Redhat Linux and my info is below. I was trying to install
 >> the rgl package using R CMD INSTALL and it was doing
 >> fine until it got to the compilation of a pixmap program ? Does anyone
 >> know what I could do to fix that ? Is it possible that
 >> this package is not usable on this platform ? Thanks.
 >
 > Naaa, of course it does work on Linux. We have had rgl in Debian for 
years.
 >
 > [...]
 >> g++ -I/ms/dist/fsf/PROJ/R/2.5.0/exec/lib/R/include
 >> -I/ms/dist/fsf/PROJ/R/2.5.0/exec/lib/R/include -DHAVE_PNG_H
 >> -I/usr/X11R6/include -Iext    -g -O2 -fpic  -g -O2 -c pixmap.cpp -o
 >> pixmap.o
 >> In file included from pixmap.cpp:13:
 >> pngpixmap.h:273: syntax error before `*' token
 >> pngpixmap.h: In static member function `static void
 >>    PNGPixmapFormat::Load::info_callback(png_struct*, png_info*)':
 >> pngpixmap.h:180: `png_set_gray_1_2_4_to_8' undeclared (first use this
 >> function)
 >> pngpixmap.h:180: (Each undeclared identifier is reported only once for
 >> each
 >>    function it appears in.)
 >
 > You don't have the PNG library and/or headers. Install those, and try
 > again.

The configure script is supposed to detect that, but I guess it failed. 
  There's a configure option --disable-libpng-config that should allow 
the rest to compile.  (Various examples will fail, because the PNG code 
is used for textures and saving snapshots.  But most things should work.)

Duncan Murdoch

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to