Re: [R] Installing Package rgl - Compilation Fails - FreeBSD
Dirk, I agree with you. My statements were only related to rgl on FreeBSD. With the changes from Brian since yesterday I am finally able to compile and work with this package on all our FreeBSD scientific desktops. At the same time I am very conscious about the great job of Daniel and Duncan. Without there work we would not have rgl :-) Rainer Dirk Eddelbuettel schrieb: > FWIW, Debian had working rgl packages since March 2004 -- version 0.64. > > So I respectfully disagree with the general state of despair regarding > the source package. I had my build issues at times, but Daniel and > Duncan worked hard and diligently to overcome these. > > Hence, "apt-get install r-cran-rgl" may be all it takes to play with > rgl, at least on Debian and its derivatives such as Ubuntu et al > > 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 and provide commented, minimal, self-contained, reproducible code.
Re: [R] Installing Package rgl - Compilation Fails - FreeBSD
FWIW, Debian had working rgl packages since March 2004 -- version 0.64. So I respectfully disagree with the general state of despair regarding the source package. I had my build issues at times, but Daniel and Duncan worked hard and diligently to overcome these. Hence, "apt-get install r-cran-rgl" may be all it takes to play with rgl, at least on Debian and its derivatives such as Ubuntu et al Dirk -- Hell, there are no rules here - we're trying to accomplish something. -- Thomas A. Edison __ 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] Installing Package rgl - Compilation Fails - FreeBSD
Just another note: rgl_0.70-2 works also for R-2.5.0 on FreeBSD 7.0-CURRENT (amd64) and for R-2.4.1 on (i386). Rainer Prof Brian Ripley wrote: > This looks to me like a problem in your OpenGL, I am afraid. > > I've made available a (completely unofficial) revised tarball at > > http://www.stats.ox.ac.uk/pub/R/rgl_0.70-2.tar.gz > > that attempts to work around various configure issues. Not only does it > assume a vanilla make, it also tests if the various headers and > libraries are actually present (without assuming they are in .../lib, > which they are not on my main system). So the enquiry with originally > started this thread will get a clear error from configure about what is > wrong. > > Duncan: I have left in -Iext in PKG_CPPFLAGS, but AFAICS it is only > needed on Windows. We've lost the ability to use a static libpng unless > we have libpng-config: that is I am afraid inevitable as there is no > way to find where it might be, and you can't just grab a object of the > right name on a multi-architecture system. Actually, I think it is > fundamentally broken as only on a few systems would a static library be > PIC (and as i386 Linux with recent gcc is one of those, people tend to > forget that). > > Brian Ripley __ 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] Installing Package rgl - Compilation Fails - FreeBSD
Brian, I just tried your version rgl_0.70-2 with R-2.5.0 on FreeBSD 7.0-CURRENT (i386) and it works! Thank you very much for this competently and very fast help. Next I will try if it compiles on amd64, too ... Rainer Prof Brian Ripley schrieb: > This looks to me like a problem in your OpenGL, I am afraid. > > I've made available a (completely unofficial) revised tarball at > > http://www.stats.ox.ac.uk/pub/R/rgl_0.70-2.tar.gz > > that attempts to work around various configure issues. Not only does it > assume a vanilla make, it also tests if the various headers and > libraries are actually present (without assuming they are in .../lib, > which they are not on my main system). So the enquiry with originally > started this thread will get a clear error from configure about what is > wrong. > > Duncan: I have left in -Iext in PKG_CPPFLAGS, but AFAICS it is only > needed on Windows. We've lost the ability to use a static libpng unless > we have libpng-config: that is I am afraid inevitable as there is no > way to find where it might be, and you can't just grab a object of the > right name on a multi-architecture system. Actually, I think it is > fundamentally broken as only on a few systems would a static library be > PIC (and as i386 Linux with recent gcc is one of those, people tend to > forget that). > > Brian Ripley > > On Wed, 21 Feb 2007, Hiroyuki Kawakatsu wrote: > >> Hi Rainer, >> >> Have you had any luck after Prof Ripley's suggested fix? I am on >> FreeBSD 6.2 (amd64) and cannot get rgl to work either. With the >> suggested fix and after commenting out the log2() declaration in >> math.h, the package builds but segfaults when running the examples in >> R CMD check. (I have contacted one of the maintainers about this a >> while back on an earlier version of rgl but no response.) If you had >> success, are you on a 32bit or 64bit system? >> >> h. >> >> * checking examples ... ERROR >> Running examples in 'rgl-Ex.R' failed. >> The error most likely occurred in: >> >>> ### * 3dobjects >>> >>> flush(stderr()); flush(stdout()) >>> >>> ### Name: points3d >>> ### Title: add primitive set shape >>> ### Aliases: points3d lines3d segments3d triangles3d quads3d >>> ### Keywords: dynamic >>> >>> ### ** Examples >>> >>> # Show 12 random vertices in various ways. >>> >>> M <- matrix(rnorm(36), 3, 12, dimnames=list(c('x','y','z'), >> +rep(LETTERS[1:4], 3))) >>> >>> # Force 4-tuples to be convex in planes so that quads3d works. >>> >>> for (i in c(1,5,9)) { >> + quad <- as.data.frame(M[,i+0:3]) >> + coeffs <- runif(2,0,3) >> + if (mean(coeffs) < 1) coeffs <- coeffs + 1 - mean(coeffs) >> + quad$C <- with(quad, coeffs[1]*(B-A) + coeffs[2]*(D-A) + A) >> + M[,i+0:3] <- as.matrix(quad) >> + } >>> >>> open3d() >> [1] 1 >>> >>> # Rows of M are x, y, z coords; transpose to plot >>> >>> M <- t(M) >>> shift <- matrix(c(-3,3,0), 12, 3, byrow=TRUE) >>> >>> points3d(M, size=2) >> >> *** caught segfault *** >> address 0x0, cause 'unknown' >> >> Traceback: >> 1: .C(rgl_primitive, success = as.integer(FALSE), idata, >> as.numeric(vertex), NAOK = TRUE) >> 2: rgl.primitive("points", x, y, z, ...) >> 3: rgl.points(x = c(-0.626453810742332, 1.59528080213779, >> 2.00575308060846, -0.305388387156356, -0.621240580541804, >> -0.0449336090152309, 3.95860460385714, 0.782136300731067, >> 0.61982574789471, -1.47075238389927, -5.58920873034883, >> -0.0538050405829051, 0.183643324222082, 0.329507771815361, >> 1.66524706227070, 1.51178116845085, -2.2146998871775, >> -0.0161902630989461, 7.05452342645083, 0.0745649833651906, >> -0.0561287395290008, -0.47815005510862, -2.69588540023329, >> -1.37705955682861, -0.835628612410047, -0.820468384118015, >> 0.407234134716211, 0.389843236411431, 1.12493091814311, >> 0.94383621068530, -7.46953644668121, -1.98935169586337, >> -0.155795506705329, 0.417941560199702, 1.02866050611420, >> -0.41499456329968), y = NULL, z = NULL, color = "#00", alpha = >> numeric(0), lit = TRUE, ambient = "#00", specular = "#FF", >> emission = "#00", shininess = 50, smooth = TRUE, front = "filled", >> back = "filled", size = 2, fog = FALSE) >> 4:
Re: [R] Installing Package rgl - Compilation Fails - FreeBSD
It seems log2 is not used so you can just comment out the line. I am working on a better configure script, and will have something to show you later today. BDR On Wed, 21 Feb 2007, Rainer Hurling wrote: > Brian, > > thank you for the adaptions. I tried the new version under R-2.5.0 > (2007-01-23 r40560) on FreeBSD 7.0-CURRENT and got the following output. > > > - > #R CMD INSTALL rgl_0.70-1.tar.gz > * Installing to library '/usr/local/lib/R/library' > * Installing *source* package 'rgl' ... > checking for gcc... gcc > checking for C compiler default output file name... a.out > checking whether the C compiler works... yes > checking whether we are cross compiling... no > checking for suffix of executables... > checking for suffix of object files... o > checking whether we are using the GNU C compiler... yes > checking whether gcc accepts -g... yes > checking for gcc option to accept ANSI C... none needed > checking how to run the C preprocessor... gcc -E > checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include > checking for libpng-config... yes > configure: using libpng-config > configure: using libpng dynamic linkage > configure: creating ./config.status > config.status: creating src/Makevars > ** libs > g++ -I/usr/local/lib/R/include -I/usr/local/lib/R/include > -I/usr/X11R6/include -DHAVE_PNG_H > -I/usr/local/include/libpng -Iext -I/usr/local/include-fpic -g -O2 -c > BBoxDeco.cpp -o BBoxDeco.o > In file included from BBoxDeco.hpp:11, > from BBoxDeco.cpp:1: > math.h: In function `T math::log2(T)': > math.h:43: error: `::log2' has not been declared > *** Error code 1 > > Stop in /tmp/R.INSTALL.hVDVXM/rgl/src. > chmod: /usr/local/lib/R/library/rgl/libs/*: No such file or directory > ERROR: compilation failed for package 'rgl' > ** Removing '/usr/local/lib/R/library/rgl' > - > > > It seems there is a problem with math.h. The FreeBSD manual for math(3) > says: > > The log2() and nan() functions are missing, and many functions > are not available in their long double variants. > > > I do not know how to locate the library that contains function log2, sorry. > What can I do next to help? > > Rainer > > > Prof Brian Ripley wrote: >> Please try the attached. >> >> Duncan: I fixed some other errors in configure.ac and src/Makevars.in, and >> added a FIXME. If this works on MacOS X (and I am fairly confident it will >> on FreeBSD since it now works on Solaris make), I can fix up the FIXME >> too. >> >> I was presuming the MacOS code came from Simon Urbanek, but I would have >> expected him to know better than to use GNU make extensions. >> >> Brian >> >> On Tue, 20 Feb 2007, Prof Brian Ripley wrote: >> >>> The problem is that rgl is apparently written for GNU make, and has (as >>> shipped) >>> >>> ifdef MAKINGAGL >>> [EMAIL PROTECTED]@ -Iext >>> [EMAIL PROTECTED]@ >>> else >>> PKG_CPPFLAGS= -If:/R/R-2.4.1/src/extra/zlib -DHAVE_PNG_H >>> -If:/R/R-2.4.1/src/gnuwin32/bitmap/libpng -Iext >>> PKG_LIBS=-lgdi32 -lopengl32 -lglu32 >>> -Lf:/R/R-2.4.1/src/gnuwin32/bitmap/libpng - >>> lpng -Lf:/R/R-2.4.1/src/extra/zlib -lz >>> endif >>> >>> and similar for BUILDAGL. >>> >>> That seems to have been written to make it workable on MacOS X. Given >>> that configure knows (or could know) the OS, it seems better to write >>> (via configure) a separate Makevars for MacOS X and remove all the >>> ifdef...endif stuff for everyone else. (If you do that in Makevars.in it >>> should work.) >>> >>> >>> On Tue, 20 Feb 2007, Rainer Hurling wrote: >>> Duncan Murdoch schrieb: > On 2/20/2007 1:11 PM, Ranjan Maitra wrote: >> Hi Duncan, >> I don't know if this will list all the dependencies for your >> documentation, since Rick's error messages did not involve libraries >> and header files already installed by him for something else, perhaps. > > No, but it's a start: I'm thinking of something more like a FAQ than > comprehensive documentation. Comprehensive docs are not feasible to > maintain (there are so many systems that Daniel and I don't use), but > hints that two non-standard packages solved one person's problems might > be enough of a hint to get someone else going. Duncan, thank you for this purpose. I am such a person who could need some help with installing rgl and hope it is ok to place it in this thread. My trial to install rgl_0.70.tar.gz on R-2.4.1 on FreeBSD 7.0-CURRENT ends up with errors. Obiously something is wrong with Makevars. I have no idea what to do next. 'rgl' is one of the rare cases that do not install under R on FreeBSD. The install messages are short: - #R CMD INSTALL rgl_0.70.tar.gz * Installing to library '/usr/local/lib/R/library' * Installing *source* package 'rgl' ... checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C
Re: [R] Installing Package rgl - Compilation Fails - FreeBSD
Brian, thank you for the adaptions. I tried the new version under R-2.5.0 (2007-01-23 r40560) on FreeBSD 7.0-CURRENT and got the following output. - #R CMD INSTALL rgl_0.70-1.tar.gz * Installing to library '/usr/local/lib/R/library' * Installing *source* package 'rgl' ... checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking how to run the C preprocessor... gcc -E checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include checking for libpng-config... yes configure: using libpng-config configure: using libpng dynamic linkage configure: creating ./config.status config.status: creating src/Makevars ** libs g++ -I/usr/local/lib/R/include -I/usr/local/lib/R/include -I/usr/X11R6/include -DHAVE_PNG_H -I/usr/local/include/libpng -Iext -I/usr/local/include-fpic -g -O2 -c BBoxDeco.cpp -o BBoxDeco.o In file included from BBoxDeco.hpp:11, from BBoxDeco.cpp:1: math.h: In function `T math::log2(T)': math.h:43: error: `::log2' has not been declared *** Error code 1 Stop in /tmp/R.INSTALL.hVDVXM/rgl/src. chmod: /usr/local/lib/R/library/rgl/libs/*: No such file or directory ERROR: compilation failed for package 'rgl' ** Removing '/usr/local/lib/R/library/rgl' - It seems there is a problem with math.h. The FreeBSD manual for math(3) says: The log2() and nan() functions are missing, and many functions are not available in their long double variants. I do not know how to locate the library that contains function log2, sorry. What can I do next to help? Rainer Prof Brian Ripley wrote: > Please try the attached. > > Duncan: I fixed some other errors in configure.ac and src/Makevars.in, > and added a FIXME. If this works on MacOS X (and I am fairly confident > it will on FreeBSD since it now works on Solaris make), I can fix up the > FIXME too. > > I was presuming the MacOS code came from Simon Urbanek, but I would have > expected him to know better than to use GNU make extensions. > > Brian > > On Tue, 20 Feb 2007, Prof Brian Ripley wrote: > >> The problem is that rgl is apparently written for GNU make, and has >> (as shipped) >> >> ifdef MAKINGAGL >> [EMAIL PROTECTED]@ -Iext >> [EMAIL PROTECTED]@ >> else >> PKG_CPPFLAGS= -If:/R/R-2.4.1/src/extra/zlib -DHAVE_PNG_H >> -If:/R/R-2.4.1/src/gnuwin32/bitmap/libpng -Iext >> PKG_LIBS=-lgdi32 -lopengl32 -lglu32 >> -Lf:/R/R-2.4.1/src/gnuwin32/bitmap/libpng - >> lpng -Lf:/R/R-2.4.1/src/extra/zlib -lz >> endif >> >> and similar for BUILDAGL. >> >> That seems to have been written to make it workable on MacOS X. Given >> that configure knows (or could know) the OS, it seems better to write >> (via configure) a separate Makevars for MacOS X and remove all the >> ifdef...endif stuff for everyone else. (If you do that in Makevars.in >> it should work.) >> >> >> On Tue, 20 Feb 2007, Rainer Hurling wrote: >> >>> Duncan Murdoch schrieb: On 2/20/2007 1:11 PM, Ranjan Maitra wrote: > Hi Duncan, > I don't know if this will list all the dependencies for your > documentation, since Rick's error messages did not involve > libraries and header files already installed by him for something > else, perhaps. No, but it's a start: I'm thinking of something more like a FAQ than comprehensive documentation. Comprehensive docs are not feasible to maintain (there are so many systems that Daniel and I don't use), but hints that two non-standard packages solved one person's problems might be enough of a hint to get someone else going. >>> >>> Duncan, >>> >>> thank you for this purpose. I am such a person who could need some help >>> with installing rgl and hope it is ok to place it in this thread. >>> >>> My trial to install rgl_0.70.tar.gz on R-2.4.1 on FreeBSD 7.0-CURRENT >>> ends up with errors. Obiously something is wrong with Makevars. I have >>> no idea what to do next. 'rgl' is one of the rare cases that do not >>> install under R on FreeBSD. >>> >>> The install messages are short: >>> >>> - >>> #R CMD INSTALL rgl_0.70.tar.gz >>> * Installing to library '/usr/local/lib/R/library' >>> * Installing *source* package 'rgl' ... >>> checking for gcc... gcc >>> checking for C compiler default output file name... a.out >>> checking whether the C compiler works... yes >>> checking whether we are cross compiling... no >>> checking for suffix of executables... >>> checking for suffix of object files... o >>> checking whether we are using the GNU C compiler... yes >>> checking whether gcc accepts -g... yes >>> checking for gcc option to accept ANSI C... none needed >>> checking how to run the C preprocessor... gcc -E >>> ch
Re: [R] Installing Package rgl - Compilation Fails - FreeBSD
On 2/20/2007 4:45 PM, Prof Brian Ripley wrote: > The problem is that rgl is apparently written for GNU make, and has (as > shipped) > > ifdef MAKINGAGL > [EMAIL PROTECTED]@ -Iext > [EMAIL PROTECTED]@ > else > PKG_CPPFLAGS= -If:/R/R-2.4.1/src/extra/zlib -DHAVE_PNG_H > -If:/R/R-2.4.1/src/gnuwin32/bitmap/libpng -Iext > PKG_LIBS=-lgdi32 -lopengl32 -lglu32 > -Lf:/R/R-2.4.1/src/gnuwin32/bitmap/libpng - > lpng -Lf:/R/R-2.4.1/src/extra/zlib -lz > endif > > and similar for BUILDAGL. > > That seems to have been written to make it workable on MacOS X. Given that > configure knows (or could know) the OS, it seems better to write (via > configure) a separate Makevars for MacOS X and remove all the > ifdef...endif stuff for everyone else. (If you do that in Makevars.in it > should work.) On MacOS X we currently build two libraries, one for X11 and one for AGL, and these tests choose between those two targets (which need different compilation of a few files, and separate linking of all files against different libraries). Fixing this to work more portably isn't something that I know how to do. If someone wants to fix it and send me a patch I'll incorporate it, but otherwise it likely won't get fixed. By the way, the file you quote is Makevars, which shouldn't have been shipped: it gets produced from Makevars.in. I'll have to be careful to do the packaging from a clean checkout next time. 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] Installing Package rgl - Compilation Fails - FreeBSD
The problem is that rgl is apparently written for GNU make, and has (as shipped) ifdef MAKINGAGL [EMAIL PROTECTED]@ -Iext [EMAIL PROTECTED]@ else PKG_CPPFLAGS= -If:/R/R-2.4.1/src/extra/zlib -DHAVE_PNG_H -If:/R/R-2.4.1/src/gnuwin32/bitmap/libpng -Iext PKG_LIBS=-lgdi32 -lopengl32 -lglu32 -Lf:/R/R-2.4.1/src/gnuwin32/bitmap/libpng - lpng -Lf:/R/R-2.4.1/src/extra/zlib -lz endif and similar for BUILDAGL. That seems to have been written to make it workable on MacOS X. Given that configure knows (or could know) the OS, it seems better to write (via configure) a separate Makevars for MacOS X and remove all the ifdef...endif stuff for everyone else. (If you do that in Makevars.in it should work.) On Tue, 20 Feb 2007, Rainer Hurling wrote: > Duncan Murdoch schrieb: >> On 2/20/2007 1:11 PM, Ranjan Maitra wrote: >>> Hi Duncan, >>> I don't know if this will list all the dependencies for your documentation, >>> since Rick's error messages did not involve libraries and header files >>> already installed by him for something else, perhaps. >> >> No, but it's a start: I'm thinking of something more like a FAQ than >> comprehensive documentation. Comprehensive docs are not feasible to >> maintain (there are so many systems that Daniel and I don't use), but >> hints that two non-standard packages solved one person's problems might >> be enough of a hint to get someone else going. > > Duncan, > > thank you for this purpose. I am such a person who could need some help > with installing rgl and hope it is ok to place it in this thread. > > My trial to install rgl_0.70.tar.gz on R-2.4.1 on FreeBSD 7.0-CURRENT > ends up with errors. Obiously something is wrong with Makevars. I have > no idea what to do next. 'rgl' is one of the rare cases that do not > install under R on FreeBSD. > > The install messages are short: > > - > #R CMD INSTALL rgl_0.70.tar.gz > * Installing to library '/usr/local/lib/R/library' > * Installing *source* package 'rgl' ... > checking for gcc... gcc > checking for C compiler default output file name... a.out > checking whether the C compiler works... yes > checking whether we are cross compiling... no > checking for suffix of executables... > checking for suffix of object files... o > checking whether we are using the GNU C compiler... yes > checking whether gcc accepts -g... yes > checking for gcc option to accept ANSI C... none needed > checking how to run the C preprocessor... gcc -E > checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include > checking for libpng-config... yes > configure: using libpng-config > configure: using libpng dynamic linkage > configure: creating ./config.status > config.status: creating src/Makevars > ** libs > "Makevars", line 9: Need an operator > "Makevars", line 12: Need an operator > "Makevars", line 15: Need an operator > "Makevars", line 21: Need an operator > "Makevars", line 23: Need an operator > "Makevars", line 36: Need an operator > "Makevars", line 38: Need an operator > make: fatal errors encountered -- cannot continue > chmod: /usr/local/lib/R/library/rgl/libs/*: No such file or directory > ERROR: compilation failed for package 'rgl' > ** Removing '/usr/local/lib/R/library/rgl' > - > > Are there any experiences with installing rgl on FreeBSD? Do you know if > it is at all possible to get rgl to work on FreeBSD? If I can do > anything like testing or giving more information let me know. > > I appreciate any help. Thank you in advance. > > Rainer Hurling > > __ > 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. > -- Brian D. Ripley, [EMAIL PROTECTED] 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, UKFax: +44 1865 272595 __ 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] Installing Package rgl - Compilation Fails - FreeBSD
Duncan Murdoch schrieb: > On 2/20/2007 1:11 PM, Ranjan Maitra wrote: >> Hi Duncan, >> I don't know if this will list all the dependencies for your documentation, >> since Rick's error messages did not involve libraries and header files >> already installed by him for something else, perhaps. > > No, but it's a start: I'm thinking of something more like a FAQ than > comprehensive documentation. Comprehensive docs are not feasible to > maintain (there are so many systems that Daniel and I don't use), but > hints that two non-standard packages solved one person's problems might > be enough of a hint to get someone else going. Duncan, thank you for this purpose. I am such a person who could need some help with installing rgl and hope it is ok to place it in this thread. My trial to install rgl_0.70.tar.gz on R-2.4.1 on FreeBSD 7.0-CURRENT ends up with errors. Obiously something is wrong with Makevars. I have no idea what to do next. 'rgl' is one of the rare cases that do not install under R on FreeBSD. The install messages are short: - #R CMD INSTALL rgl_0.70.tar.gz * Installing to library '/usr/local/lib/R/library' * Installing *source* package 'rgl' ... checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking how to run the C preprocessor... gcc -E checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include checking for libpng-config... yes configure: using libpng-config configure: using libpng dynamic linkage configure: creating ./config.status config.status: creating src/Makevars ** libs "Makevars", line 9: Need an operator "Makevars", line 12: Need an operator "Makevars", line 15: Need an operator "Makevars", line 21: Need an operator "Makevars", line 23: Need an operator "Makevars", line 36: Need an operator "Makevars", line 38: Need an operator make: fatal errors encountered -- cannot continue chmod: /usr/local/lib/R/library/rgl/libs/*: No such file or directory ERROR: compilation failed for package 'rgl' ** Removing '/usr/local/lib/R/library/rgl' - Are there any experiences with installing rgl on FreeBSD? Do you know if it is at all possible to get rgl to work on FreeBSD? If I can do anything like testing or giving more information let me know. I appreciate any help. Thank you in advance. Rainer Hurling __ 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] Installing Package rgl - Compilation Fails - Summary
On Tue, 20 Feb 2007, Ranjan Maitra wrote: > Hi Duncan, > > I don't know if this will list all the dependencies for your > documentation, since Rick's error messages did not involve libraries and > header files already installed by him for something else, perhaps. It will not, and most of this is already in the README. The problem is the penchant for linux distros to break standard pieces of software into ever smaller pieces, so naming the pieces is often no great help 6 months later. On FC5/6 I think yum install mesa-libGL-devel mesa-libGLU-devel libXext-devel libpng-devel should do it. (Note that mesa-libGL-devel appears to have been already there, and libXext-devel pulls in the rest of the X11 stuff.) A quick check shows -lXext is actually not needed, so it could be removed from configure.ac and the requirements: that would make a lot more sense. > > Just a thought. > > Ranjan > > > > On Tue, 20 Feb 2007 11:59:24 -0500 Rick Bilonick <[EMAIL PROTECTED]> wrote: > >> Summarizing: >> >> I'm running R 2.4.1 on a current FC6 32-bit system. In order to have the >> rgl R package install, I needed to install both mesa-libGLU-devel (FC6 >> version is 6.5.1-9) and libXext-devel (FC6) rpm packages. Thanks to >> everyone who commented. >> >> Rick B. -- Brian D. Ripley, [EMAIL PROTECTED] 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, UKFax: +44 1865 272595 __ 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] Installing Package rgl - Compilation Fails - Summary
On 2/20/2007 1:11 PM, Ranjan Maitra wrote: > Hi Duncan, > > I don't know if this will list all the dependencies for your documentation, > since Rick's error messages did not involve libraries and header files > already installed by him for something else, perhaps. No, but it's a start: I'm thinking of something more like a FAQ than comprehensive documentation. Comprehensive docs are not feasible to maintain (there are so many systems that Daniel and I don't use), but hints that two non-standard packages solved one person's problems might be enough of a hint to get someone else going. 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] Installing Package rgl - Compilation Fails - Summary
Hi Duncan, I don't know if this will list all the dependencies for your documentation, since Rick's error messages did not involve libraries and header files already installed by him for something else, perhaps. Just a thought. Ranjan On Tue, 20 Feb 2007 11:59:24 -0500 Rick Bilonick <[EMAIL PROTECTED]> wrote: > Summarizing: > > I'm running R 2.4.1 on a current FC6 32-bit system. In order to have the > rgl R package install, I needed to install both mesa-libGLU-devel (FC6 > version is 6.5.1-9) and libXext-devel (FC6) rpm packages. Thanks to > everyone who commented. > > Rick B. > > __ > 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.
Re: [R] Installing Package rgl - Compilation Fails - Summary
Summarizing: I'm running R 2.4.1 on a current FC6 32-bit system. In order to have the rgl R package install, I needed to install both mesa-libGLU-devel (FC6 version is 6.5.1-9) and libXext-devel (FC6) rpm packages. Thanks to everyone who commented. Rick B. __ 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] Installing Package rgl - Compilation Fails
On 2/20/2007 9:44 AM, Rick Bilonick wrote: > On Mon, 2007-02-19 at 15:11 -0600, Ranjan Maitra wrote: >> The error is different now. It now cannot find Xext library. Do a yum search >> on this and install that. >> >> yum provides libXext >> >> which will give you the package Xext which needs to be installed. >> >> You may also need to install the libXext-devel.i386 package. >> >> HTH. >> Ranjan >> >> > > Thanks. Installing libXext-devel allowed rgl to install. Would you mind summarizing what you started from, and what extras you needed to install? I'd like to add this information to the rgl docs. 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] Installing Package rgl - Compilation Fails
On Mon, 2007-02-19 at 15:11 -0600, Ranjan Maitra wrote: > The error is different now. It now cannot find Xext library. Do a yum search > on this and install that. > > yum provides libXext > > which will give you the package Xext which needs to be installed. > > You may also need to install the libXext-devel.i386 package. > > HTH. > Ranjan > > Thanks. Installing libXext-devel allowed rgl to install. Rick B. __ 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] Installing Package rgl - Compilation Fails
The error is different now. It now cannot find Xext library. Do a yum search on this and install that. yum provides libXext which will give you the package Xext which needs to be installed. You may also need to install the libXext-devel.i386 package. HTH. Ranjan On Mon, 19 Feb 2007 16:02:09 -0500 Rick Bilonick <[EMAIL PROTECTED]> wrote: > On Mon, 2007-02-19 at 19:56 +, Oleg Sklyar wrote: > > Check again your error message: > > > > opengl.hpp:24:20: error: GL/glu.h: No such file or directory > > > > you need to install > > > > mesa-libGLU-devel FC6 version is 6.5.1-7 > > > > which will provide development files for glut3. Needless to say the > > above will probably pool some dependencies and (-devel) means it will > > install *.h files as well. Start your FC package manager and search for > > "GLU", install the above and try again. > > > > Best, > > Oleg > > > > I installed a slightly newer version (the one that yum found): > > mesa-libGLU-devel-6.5.1-9.fc6 > > but it still fails (I'm installing as root): > > > install.packages("rgl") > --- Please select a CRAN mirror for use in this session --- > Loading Tcl/Tk interface ... done > trying URL 'http://lib.stat.cmu.edu/R/CRAN/src/contrib/rgl_0.70.tar.gz' > Content type 'application/x-gzip' length 705556 bytes > opened URL > > > Deleted a bunch of lines > > > > Disposable.hpp:13: warning: ___struct IDisposeListener___ has virtual > functions but non-virtual destructor > gui.hpp:56: warning: ___class gui::WindowImpl___ has virtual functions but > non-virtual destructor > gui.hpp:90: warning: ___class gui::GUIFactory___ has virtual functions but > non-virtual destructor > g++ -shared -L/usr/local/lib -o rgl.so api.o Background.o BBoxDeco.o > Color.o device.o devicemanager.o Disposable.o FaceSet.o fps.o geom.o > gl2ps.o glgui.o gui.o Light.o LineSet.o LineStripSet.o Material.o math.o > osxgui.o osxlib.o par3d.o pixmap.o PointSet.o PrimitiveSet.o QuadSet.o > RenderContext.o render.o rglview.o scene.o select.o Shape.o SphereMesh.o > SphereSet.o SpriteSet.o String.o Surface.o TextSet.o Texture.o > TriangleSet.o Viewpoint.o win32gui.o win32lib.o x11gui.o x11lib.o -L > -lX11 -lXext -lGL -lGLU -L/usr/lib -lpng12 -L/usr/lib/R/lib -lR > /usr/bin/ld: cannot find -lXext > collect2: ld returned 1 exit status > make: *** [rgl.so] Error 1 > chmod: cannot access `/usr/lib/R/library/rgl/libs/*': No such file or > directory > ERROR: compilation failed for package 'rgl' > ** Removing '/usr/lib/R/library/rgl' > > The downloaded packages are in > /tmp/RtmpMc94yC/downloaded_packages > Warning message: > installation of package 'rgl' had non-zero exit status in: > install.packages("rgl") > > > Rick B. > > __ > 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.
Re: [R] Installing Package rgl - Compilation Fails
On Mon, 2007-02-19 at 19:56 +, Oleg Sklyar wrote: > Check again your error message: > > opengl.hpp:24:20: error: GL/glu.h: No such file or directory > > you need to install > > mesa-libGLU-devel FC6 version is 6.5.1-7 > > which will provide development files for glut3. Needless to say the > above will probably pool some dependencies and (-devel) means it will > install *.h files as well. Start your FC package manager and search for > "GLU", install the above and try again. > > Best, > Oleg > I installed a slightly newer version (the one that yum found): mesa-libGLU-devel-6.5.1-9.fc6 but it still fails (I'm installing as root): > install.packages("rgl") --- Please select a CRAN mirror for use in this session --- Loading Tcl/Tk interface ... done trying URL 'http://lib.stat.cmu.edu/R/CRAN/src/contrib/rgl_0.70.tar.gz' Content type 'application/x-gzip' length 705556 bytes opened URL Deleted a bunch of lines Disposable.hpp:13: warning: ‘struct IDisposeListener’ has virtual functions but non-virtual destructor gui.hpp:56: warning: ‘class gui::WindowImpl’ has virtual functions but non-virtual destructor gui.hpp:90: warning: ‘class gui::GUIFactory’ has virtual functions but non-virtual destructor g++ -shared -L/usr/local/lib -o rgl.so api.o Background.o BBoxDeco.o Color.o device.o devicemanager.o Disposable.o FaceSet.o fps.o geom.o gl2ps.o glgui.o gui.o Light.o LineSet.o LineStripSet.o Material.o math.o osxgui.o osxlib.o par3d.o pixmap.o PointSet.o PrimitiveSet.o QuadSet.o RenderContext.o render.o rglview.o scene.o select.o Shape.o SphereMesh.o SphereSet.o SpriteSet.o String.o Surface.o TextSet.o Texture.o TriangleSet.o Viewpoint.o win32gui.o win32lib.o x11gui.o x11lib.o -L -lX11 -lXext -lGL -lGLU -L/usr/lib -lpng12 -L/usr/lib/R/lib -lR /usr/bin/ld: cannot find -lXext collect2: ld returned 1 exit status make: *** [rgl.so] Error 1 chmod: cannot access `/usr/lib/R/library/rgl/libs/*': No such file or directory ERROR: compilation failed for package 'rgl' ** Removing '/usr/lib/R/library/rgl' The downloaded packages are in /tmp/RtmpMc94yC/downloaded_packages Warning message: installation of package 'rgl' had non-zero exit status in: install.packages("rgl") Rick B. __ 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] Installing Package rgl - Compilation Fails
You are missing the OpenGLU headers. On FC5 they are in mesa-libGLU-devel From the README: REQUIREMENTS Windowing System (osx/carbon, unix/x11 or win32) OpenGL Library OpenGL Utility Library (GLU) On Mon, 19 Feb 2007, Rick Bilonick wrote: I'm running R 2.4.1 (with the latest versions of all packages) on an FC6 32-bit system. When I try to install the rgl package, compilation fails: install.packages("rgl") --- Please select a CRAN mirror for use in this session --- Loading Tcl/Tk interface ... done trying URL 'http://lib.stat.cmu.edu/R/CRAN/src/contrib/rgl_0.70.tar.gz' Content type 'application/x-gzip' length 705556 bytes opened URL == downloaded 689Kb * Installing *source* package 'rgl' ... checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking how to run the C preprocessor... gcc -E checking for X... libraries , headers checking for libpng-config... yes configure: using libpng-config configure: using libpng dynamic linkage configure: creating ./config.status config.status: creating src/Makevars ** libs g++ -I/usr/lib/R/include -I/usr/lib/R/include -I -DHAVE_PNG_H -I/usr/include/libpng12 -Iext -I/usr/local/include-fpic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -c api.cpp -o api.o In file included from glgui.hpp:9, from gui.hpp:11, from rglview.h:10, from Device.hpp:11, from DeviceManager.hpp:9, from api.cpp:14: opengl.hpp:24:20: error: GL/glu.h: No such file or directory Disposable.hpp:13: warning: ÿÿstruct IDisposeListenerÿÿ has virtual functions but non-virtual destructor types.h:77: warning: ÿÿclass DestroyHandlerÿÿ has virtual functions but non-virtual destructor gui.hpp:56: warning: ÿÿclass gui::WindowImplÿÿ has virtual functions but non-virtual destructor gui.hpp:90: warning: ÿÿclass gui::GUIFactoryÿÿ has virtual functions but non-virtual destructor pixmap.h:39: warning: ÿÿclass PixmapFormatÿÿ has virtual functions but non-virtual destructor api.cpp: In function ÿÿvoid rgl_user2window(int*, int*, double*, double*, double*, double*, int*)ÿÿ: api.cpp:764: error: ÿÿgluProjectÿÿ was not declared in this scope api.cpp: In function ÿÿvoid rgl_window2user(int*, int*, double*, double*, double*, double*, int*)ÿÿ: api.cpp:792: error: ÿÿgluUnProjectÿÿ was not declared in this scope make: *** [api.o] Error 1 chmod: cannot access `/usr/lib/R/library/rgl/libs/*': No such file or directory ERROR: compilation failed for package 'rgl' ** Removing '/usr/lib/R/library/rgl' The downloaded packages are in /tmp/RtmpJY8uNp/downloaded_packages Warning message: installation of package 'rgl' had non-zero exit status in: install.packages("rgl") I was able to install this on an 64-bit system running FC4 and R 2.4.1. Any ideas on why it fails on FC6? Rick B. __ 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. -- Brian D. Ripley, [EMAIL PROTECTED] 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, UKFax: +44 1865 272595__ 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] Installing Package rgl - Compilation Fails
As the error message indicates, there is no GL/glu.h file installed in the system. If it is, the path is not properly set. % yum provides GL/glu.h on FC6 should give you some clues and tell you what to install, and also whether it should be installed. Ranjan On Mon, 19 Feb 2007 14:35:29 -0500 Rick Bilonick <[EMAIL PROTECTED]> wrote: > I'm running R 2.4.1 (with the latest versions of all packages) on an > FC6 32-bit system. When I try to install the rgl package, compilation > fails: > > > install.packages("rgl") > --- Please select a CRAN mirror for use in this session --- > Loading Tcl/Tk interface ... done > trying URL 'http://lib.stat.cmu.edu/R/CRAN/src/contrib/rgl_0.70.tar.gz' > Content type 'application/x-gzip' length 705556 bytes > opened URL > == > downloaded 689Kb > > * Installing *source* package 'rgl' ... > checking for gcc... gcc > checking for C compiler default output file name... a.out > checking whether the C compiler works... yes > checking whether we are cross compiling... no > checking for suffix of executables... > checking for suffix of object files... o > checking whether we are using the GNU C compiler... yes > checking whether gcc accepts -g... yes > checking for gcc option to accept ANSI C... none needed > checking how to run the C preprocessor... gcc -E > checking for X... libraries , headers > checking for libpng-config... yes > configure: using libpng-config > configure: using libpng dynamic linkage > configure: creating ./config.status > config.status: creating src/Makevars > ** libs > g++ -I/usr/lib/R/include -I/usr/lib/R/include -I -DHAVE_PNG_H > -I/usr/include/libpng12 -Iext -I/usr/local/include-fpic -O2 -g > -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector > --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic > -fasynchronous-unwind-tables -c api.cpp -o api.o > In file included from glgui.hpp:9, > from gui.hpp:11, > from rglview.h:10, > from Device.hpp:11, > from DeviceManager.hpp:9, > from api.cpp:14: > opengl.hpp:24:20: error: GL/glu.h: No such file or directory > Disposable.hpp:13: warning: ___struct IDisposeListener___ has virtual > functions but non-virtual destructor > types.h:77: warning: ___class DestroyHandler___ has virtual functions but > non-virtual destructor > gui.hpp:56: warning: ___class gui::WindowImpl___ has virtual functions but > non-virtual destructor > gui.hpp:90: warning: ___class gui::GUIFactory___ has virtual functions but > non-virtual destructor > pixmap.h:39: warning: ___class PixmapFormat___ has virtual functions but > non-virtual destructor > api.cpp: In function ___void rgl_user2window(int*, int*, double*, double*, > double*, double*, int*)___: > api.cpp:764: error: ___gluProject___ was not declared in this scope > api.cpp: In function ___void rgl_window2user(int*, int*, double*, double*, > double*, double*, int*)___: > api.cpp:792: error: ___gluUnProject___ was not declared in this scope > make: *** [api.o] Error 1 > chmod: cannot access `/usr/lib/R/library/rgl/libs/*': No such file or > directory > ERROR: compilation failed for package 'rgl' > ** Removing '/usr/lib/R/library/rgl' > > The downloaded packages are in > /tmp/RtmpJY8uNp/downloaded_packages > Warning message: > installation of package 'rgl' had non-zero exit status in: > install.packages("rgl") > > I was able to install this on an 64-bit system running FC4 and R 2.4.1. > > Any ideas on why it fails on FC6? > > Rick B. > > __ > 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.
Re: [R] Installing Package rgl - Compilation Fails
Check again your error message: opengl.hpp:24:20: error: GL/glu.h: No such file or directory you need to install mesa-libGLU-devel FC6 version is 6.5.1-7 which will provide development files for glut3. Needless to say the above will probably pool some dependencies and (-devel) means it will install *.h files as well. Start your FC package manager and search for "GLU", install the above and try again. Best, Oleg Rick Bilonick wrote: > I'm running R 2.4.1 (with the latest versions of all packages) on an > FC6 32-bit system. When I try to install the rgl package, compilation > fails: > >> install.packages("rgl") > --- Please select a CRAN mirror for use in this session --- > Loading Tcl/Tk interface ... done > trying URL 'http://lib.stat.cmu.edu/R/CRAN/src/contrib/rgl_0.70.tar.gz' > Content type 'application/x-gzip' length 705556 bytes > opened URL > == > downloaded 689Kb > > * Installing *source* package 'rgl' ... > checking for gcc... gcc > checking for C compiler default output file name... a.out > checking whether the C compiler works... yes > checking whether we are cross compiling... no > checking for suffix of executables... > checking for suffix of object files... o > checking whether we are using the GNU C compiler... yes > checking whether gcc accepts -g... yes > checking for gcc option to accept ANSI C... none needed > checking how to run the C preprocessor... gcc -E > checking for X... libraries , headers > checking for libpng-config... yes > configure: using libpng-config > configure: using libpng dynamic linkage > configure: creating ./config.status > config.status: creating src/Makevars > ** libs > g++ -I/usr/lib/R/include -I/usr/lib/R/include -I -DHAVE_PNG_H > -I/usr/include/libpng12 -Iext -I/usr/local/include-fpic -O2 -g > -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector > --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic > -fasynchronous-unwind-tables -c api.cpp -o api.o > In file included from glgui.hpp:9, > from gui.hpp:11, > from rglview.h:10, > from Device.hpp:11, > from DeviceManager.hpp:9, > from api.cpp:14: > opengl.hpp:24:20: error: GL/glu.h: No such file or directory > Disposable.hpp:13: warning: ‘struct IDisposeListener’ has virtual > functions but non-virtual destructor > types.h:77: warning: ‘class DestroyHandler’ has virtual functions but > non-virtual destructor > gui.hpp:56: warning: ‘class gui::WindowImpl’ has virtual functions but > non-virtual destructor > gui.hpp:90: warning: ‘class gui::GUIFactory’ has virtual functions but > non-virtual destructor > pixmap.h:39: warning: ‘class PixmapFormat’ has virtual functions but > non-virtual destructor > api.cpp: In function ‘void rgl_user2window(int*, int*, double*, double*, > double*, double*, int*)’: > api.cpp:764: error: ‘gluProject’ was not declared in this scope > api.cpp: In function ‘void rgl_window2user(int*, int*, double*, double*, > double*, double*, int*)’: > api.cpp:792: error: ‘gluUnProject’ was not declared in this scope > make: *** [api.o] Error 1 > chmod: cannot access `/usr/lib/R/library/rgl/libs/*': No such file or > directory > ERROR: compilation failed for package 'rgl' > ** Removing '/usr/lib/R/library/rgl' > > The downloaded packages are in > /tmp/RtmpJY8uNp/downloaded_packages > Warning message: > installation of package 'rgl' had non-zero exit status in: > install.packages("rgl") > > I was able to install this on an 64-bit system running FC4 and R 2.4.1. > > Any ideas on why it fails on FC6? > > Rick B. > > __ > 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. -- Dr Oleg Sklyar | EBI-EMBL, Cambridge CB10 1SD, UK | +44-1223-494466 __ 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] Installing Package rgl - Compilation Fails
I'm running R 2.4.1 (with the latest versions of all packages) on an FC6 32-bit system. When I try to install the rgl package, compilation fails: > install.packages("rgl") --- Please select a CRAN mirror for use in this session --- Loading Tcl/Tk interface ... done trying URL 'http://lib.stat.cmu.edu/R/CRAN/src/contrib/rgl_0.70.tar.gz' Content type 'application/x-gzip' length 705556 bytes opened URL == downloaded 689Kb * Installing *source* package 'rgl' ... checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking how to run the C preprocessor... gcc -E checking for X... libraries , headers checking for libpng-config... yes configure: using libpng-config configure: using libpng dynamic linkage configure: creating ./config.status config.status: creating src/Makevars ** libs g++ -I/usr/lib/R/include -I/usr/lib/R/include -I -DHAVE_PNG_H -I/usr/include/libpng12 -Iext -I/usr/local/include-fpic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -c api.cpp -o api.o In file included from glgui.hpp:9, from gui.hpp:11, from rglview.h:10, from Device.hpp:11, from DeviceManager.hpp:9, from api.cpp:14: opengl.hpp:24:20: error: GL/glu.h: No such file or directory Disposable.hpp:13: warning: ‘struct IDisposeListener’ has virtual functions but non-virtual destructor types.h:77: warning: ‘class DestroyHandler’ has virtual functions but non-virtual destructor gui.hpp:56: warning: ‘class gui::WindowImpl’ has virtual functions but non-virtual destructor gui.hpp:90: warning: ‘class gui::GUIFactory’ has virtual functions but non-virtual destructor pixmap.h:39: warning: ‘class PixmapFormat’ has virtual functions but non-virtual destructor api.cpp: In function ‘void rgl_user2window(int*, int*, double*, double*, double*, double*, int*)’: api.cpp:764: error: ‘gluProject’ was not declared in this scope api.cpp: In function ‘void rgl_window2user(int*, int*, double*, double*, double*, double*, int*)’: api.cpp:792: error: ‘gluUnProject’ was not declared in this scope make: *** [api.o] Error 1 chmod: cannot access `/usr/lib/R/library/rgl/libs/*': No such file or directory ERROR: compilation failed for package 'rgl' ** Removing '/usr/lib/R/library/rgl' The downloaded packages are in /tmp/RtmpJY8uNp/downloaded_packages Warning message: installation of package 'rgl' had non-zero exit status in: install.packages("rgl") I was able to install this on an 64-bit system running FC4 and R 2.4.1. Any ideas on why it fails on FC6? Rick B. __ 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.