Re: [R] rgl.snapshot failed

2007-02-05 Thread laszlo kajan
Dear Roger Koenker,

I have had just the same problem (rgl.snapshot returns failed) on my 
Fedora Core 6 system.

It took me quite a while to figure out the solution, so I would like to 
post it here to make others' lives easier.

My configuration:

Linux zachariasz.dns6.org 2.6.18-1.2869.fc6 #1 SMP Wed Dec 20 14:51:19 
EST 2006 i686 athlon i386 GNU/Linux

Fedora Core 6

R version 2.4.0 Patched (2006-11-03 r39789)

Package:  rgl
Version:  0.70
Date: 2007-01-06

What I had to do:

Download the rgl package, install libX11, libX11-devel, libXt, 
libXt-devel, and then run:

--
R CMD INSTALL --configure-args='--x-includes=/usr/include/X11
  --x-libraries=/usr/lib' path_to_rgl_0.70.tar.gz
--

The problem is that the ./configure script in the rgl_0.70 package does 
not seem to be able to locate the relevant X include and library paths. 
These have to be given explicitely, as shown.

Hope this will help some in a similar situation.

Best regards,

Laszlo Kajan

__
R-help@stat.math.ethz.ch 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.


Re: [R] rgl.snapshot failed

2007-02-05 Thread Duncan Murdoch
On 2/5/2007 8:48 AM, laszlo kajan wrote:
 Dear Roger Koenker,
 
 I have had just the same problem (rgl.snapshot returns failed) on my 
 Fedora Core 6 system.
 
 It took me quite a while to figure out the solution, so I would like to 
 post it here to make others' lives easier.
 
 My configuration:
 
 Linux zachariasz.dns6.org 2.6.18-1.2869.fc6 #1 SMP Wed Dec 20 14:51:19 
 EST 2006 i686 athlon i386 GNU/Linux
 
 Fedora Core 6
 
 R version 2.4.0 Patched (2006-11-03 r39789)
 
 Package:  rgl
 Version:  0.70
 Date: 2007-01-06
 
 What I had to do:
 
 Download the rgl package, install libX11, libX11-devel, libXt, 
 libXt-devel, and then run:
 
 --
 R CMD INSTALL --configure-args='--x-includes=/usr/include/X11
   --x-libraries=/usr/lib' path_to_rgl_0.70.tar.gz
 --
 
 The problem is that the ./configure script in the rgl_0.70 package does 
 not seem to be able to locate the relevant X include and library paths. 
 These have to be given explicitely, as shown.
 
 Hope this will help some in a similar situation.

The configure script in rgl 0.70 uses some very old autoconf material. 
The next release will replace it with newer versions.  Not sure when 
that will happen...

If you'd like to test the new script you can get a copy from

http://www.stats.uwo.ca/faculty/murdoch/temp/rgl_0.70.552.tar.gz

I don't see the error you solved, so it's hard for me to know if this 
version fixes it, but I would hope you could leave out the extra install 
args, and just use the regular

R CMD INSTALL path_to/rgl_0.70.552.tar.gz

on a wider variety of systems.

Duncan Murdoch

__
R-help@stat.math.ethz.ch 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.


Re: [R] rgl.snapshot failed

2007-02-05 Thread laszlo kajan
Hello Duncan,

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

---
$ R CMD INSTALL rgl_0.70.552.tar.gzENTER
...
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 
-Ispace-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.ac2006-12-11 12:37:13.0 +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:
 On 2/5/2007 8:48 AM, laszlo kajan wrote:
 
 Dear Roger Koenker,

 I have had just the same problem (rgl.snapshot returns failed) on my 
 Fedora Core 6 system.

 It took me quite a while to figure out the solution, so I would like 
 to post it here to make others' lives easier.

 My configuration:

 Linux zachariasz.dns6.org 2.6.18-1.2869.fc6 #1 SMP Wed Dec 20 14:51:19 
 EST 2006 i686 athlon i386 GNU/Linux

 Fedora Core 6

 R version 2.4.0 Patched (2006-11-03 r39789)

 Package:  rgl
 Version:  0.70
 Date: 2007-01-06

 What I had to do:

 Download the rgl package, install libX11, libX11-devel, libXt, 
 libXt-devel, and then run:

 --
 R CMD INSTALL --configure-args='--x-includes=/usr/include/X11
   --x-libraries=/usr/lib' path_to_rgl_0.70.tar.gz
 --

 The problem is that the ./configure script in the rgl_0.70 package 
 does not seem to be able to locate the relevant X include and library 
 paths. These have to be given explicitely, as shown.

 Hope this will help some in a similar situation.
 
 
 The configure script in rgl 0.70 uses some very old autoconf material. 
 The next release will replace it with newer versions.  Not sure when 
 that will happen...
 
 If you'd like to test the new script you can get a copy from
 
 http://www.stats.uwo.ca/faculty/murdoch/temp/rgl_0.70.552.tar.gz
 
 I don't see the error you solved, so it's hard for me to know if this 
 version fixes it, but I would hope you could leave out the extra install 
 args, and just use the regular
 
 R CMD INSTALL path_to/rgl_0.70.552.tar.gz
 
 on a wider variety of systems.
 
 Duncan Murdoch

__
R-help@stat.math.ethz.ch 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.


Re: [R] rgl.snapshot failed

2007-02-05 Thread Duncan Murdoch
On 2/5/2007 10:28 AM, laszlo kajan wrote:
 Hello Duncan,
 
 no, it unfortunately does not find the paths. Here's what happens:

Thanks for your patch.  It looks like it would be good on any system, so 
I'll put it in place.

Duncan Murdoch

 
 ---
 $ R CMD INSTALL rgl_0.70.552.tar.gzENTER
 ...
 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 
 -Ispace-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.ac2006-12-11 12:37:13.0 +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:
 On 2/5/2007 8:48 AM, laszlo kajan wrote:
 
 Dear Roger Koenker,

 I have had just the same problem (rgl.snapshot returns failed) on my 
 Fedora Core 6 system.

 It took me quite a while to figure out the solution, so I would like 
 to post it here to make others' lives easier.

 My configuration:

 Linux zachariasz.dns6.org 2.6.18-1.2869.fc6 #1 SMP Wed Dec 20 14:51:19 
 EST 2006 i686 athlon i386 GNU/Linux

 Fedora Core 6

 R version 2.4.0 Patched (2006-11-03 r39789)

 Package:  rgl
 Version:  0.70
 Date: 2007-01-06

 What I had to do:

 Download the rgl package, install libX11, libX11-devel, libXt, 
 libXt-devel, and then run:

 --
 R CMD INSTALL --configure-args='--x-includes=/usr/include/X11
   --x-libraries=/usr/lib' path_to_rgl_0.70.tar.gz
 --

 The problem is that the ./configure script in the rgl_0.70 package 
 does not seem to be able to locate the relevant X include and library 
 paths. These have to be given explicitely, as shown.

 Hope this will help some in a similar situation.
 
 
 The configure script in rgl 0.70 uses some very old autoconf material. 
 The next release will replace it with newer versions.  Not sure when 
 that will happen...
 
 If you'd like to test the new script you can get a copy from
 
 http://www.stats.uwo.ca/faculty/murdoch/temp/rgl_0.70.552.tar.gz
 
 I don't see the error you solved, so it's hard for me to know if this 
 version fixes it, but I would hope you could leave out the extra install 
 args, and just use the regular
 
 R CMD INSTALL path_to/rgl_0.70.552.tar.gz
 
 on a wider variety of systems.
 
 Duncan Murdoch
 
 __
 R-help@stat.math.ethz.ch 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.

__
R-help@stat.math.ethz.ch 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.


[R] rgl.snapshot failed

2005-06-10 Thread roger koenker
I've installed the rgl package on a Suse x86-64 machine (further  
details below)
and it produces nice screen images.  Unfortunately, rgl.snapshot   
attempts to
make png files produces only the response failed.  For other  
graphics png()
works fine, and capabilities indicates that it is there.  If anyone  
has a suggestion
of what might be explored at this point I'd be very appreciative.

platform x86_64-unknown-linux-gnu
arch x86_64
os   linux-gnu
system   x86_64, linux-gnu
status
major2
minor1.0
year 2005
month04
day  18
language R

url:www.econ.uiuc.edu/~rogerRoger Koenker
email[EMAIL PROTECTED]Department of Economics
vox: 217-333-4558University of Illinois
fax:   217-244-6678Champaign, IL 61820

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] rgl.snapshot failed

2005-06-10 Thread Duncan Murdoch
On 6/10/2005 10:17 AM, roger koenker wrote:
 I've installed the rgl package on a Suse x86-64 machine (further  
 details below)
 and it produces nice screen images.  Unfortunately, rgl.snapshot   
 attempts to
 make png files produces only the response failed.  For other  
 graphics png()
 works fine, and capabilities indicates that it is there.  If anyone  
 has a suggestion
 of what might be explored at this point I'd be very appreciative.

rgl is a contributed package, with maintainer Daniel Adler. It hasn't 
been updated on CRAN in around a year, though I know he has been working 
on it (because I've been doing some work with him, though I haven't been 
in contact since February).

I don't use Suse at all so I can't help you with your problem, but 
Daniel might be able to.

Duncan Murdoch

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] rgl.snapshot failed

2005-06-10 Thread Dirk Eddelbuettel

Roger,

roger koenker rkoenker at uiuc.edu writes:
 I've installed the rgl package on a Suse x86-64 machine (further  
 details below)
 and it produces nice screen images.  Unfortunately, rgl.snapshot   
 attempts to
 make png files produces only the response failed.  For other  
 graphics png()
 works fine, and capabilities indicates that it is there.  If anyone  
 has a suggestion
 of what might be explored at this point I'd be very appreciative.

We have the issue as an open Debian bug report against rgl, and I
have corresponded a little with Daniel on it.  

Unfortunately, there is no solution in sight as far as I can tell. 

Regards, Dirk

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html