Skip to content
Prev 108802 / 398500 Next

rgl.snapshot "failed"

Hello Duncan,

no, it unfortunately does not find the paths. Here's what happens:

---------------------------
$ R CMD INSTALL rgl_0.70.552.tar.gz<ENTER>
...
checking for X... libraries , headers
checking for libpng-config... yes
...
...
g++ -I/usr/lib/R/include -I/usr/lib/R/include -I -DHAVE_PNG_H 
-I/usr/include/libpng12...
...
---------------------------

As you can see, it does not find the X libraries and headers, 
consequently it fails to construct the correct g++ command (note the 
-I<space>-DHAVE_PNG_H - incorrect definition of HAVE_PNG_H). This latter 
leads to the error, because if I modify the autoconf.ac with the 
following patch:

---------------------------
--- rgl/configure.ac    2006-12-11 12:37:13.000000000 +0100
+++ ../rgl/configure.ac 2007-02-02 23:03:27.800030897 +0100
@@ -29,7 +29,9 @@
    if test x$no_x == xyes ; then
      AC_MSG_ERROR([X11 not found but required, configure aborted.])
    fi
-  CPPFLAGS="${CPPFLAGS} -I${x_includes}"
+  #CPPFLAGS="${CPPFLAGS} -I${x_includes}"
+  # kajla
+  if test "x${x_includes}" != "x" ; then CPPFLAGS="${CPPFLAGS} 
-I${x_includes}"; fi
    LIBS="${LIBS} -L${x_libraries} -lX11 -lXext"
    if test `uname` = "Darwin" ; then
      CPPFLAGS="${CPPFLAGS} -DDarwin"
---------------------------

, run autoconf, re-create the tar.gz and R CMD INSTALL that, then it 
works (rgl.snapshot generates pngs) even in the absence of the paths for X!

I wouldn't be surprised if this turned out to be a problem with Fedora 
Core 6 and the installed packages though, rather than rgl.

Laszlo Kajan
Duncan Murdoch wrote: