Gtk2 on Solaris 10u7 i386 64bit
807557Jul 22 2010 — edited Jul 26 2010Hi, a few days ago I post the following message to r-devl mailing list,
////////////////////////////////////////////////////////////////////////////////////////////////////////////////
We have tried to build rattle on Solaris 10 X86 platform, and the results are :
1. Package XML and pmml can be built.
2. Package RGtk2 can be built but can’t be installed because the installer can’t find GTK on Solaris, but it seems GTK has been preinstalled on Solaris 10, but I don’t know how to configure it.
3. There are errors when building the cairoDevice package , the error message is
-bash-3.00$ R CMD INSTALL cairoDevice
installing to library '/opt/R/R2-11-1/lib/R/library'
installing source package 'cairoDevice' ...
checking for pkg-config... pkg-config
configure: creating ./config.status
config.status: creating src/Makevars
libs
/opt/sunstudio12.1/bin/cc -xc99=all -I/opt/R/R2-11-1/lib/R/include -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/openwin/include -I/usr/sfw/include -I/usr/sfw/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -g -I/opt/R/R2-11-1/include -I/usr/sfw/include -I/opt/sfw/include -I/usr/openwin/share/include -KPIC -xO3 -c cairoDevice.c -o cairoDevice.o
"cairoDevice.h", line 3: cannot find include file: <cairo.h>
"cairoDevice.h", line 6: unexpected "("
"cairoDevice.h", line 7: cannot find include file: <cairo-pdf.h>
"cairoDevice.h", line 8: cannot find include file: <cairo-ps.h>
"cairoDevice.h", line 9: cannot find include file: <cairo-svg.h>
"cairoDevice.h", line 38: syntax error before or at: cairo_t
"cairoDevice.c", line 71: improper member use: pixmap
//////////////////////////////////////////////////////////////////////////////////////////////////
"cairoDevice.c", line 1330: undefined symbol: cairo_t
"cairoDevice.c", line 1330: syntax error before or at: )
"cairoDevice.c", line 1367: improper member use: drawing
"cairoDevice.c", line 1367: improper member use: drawing
cc: acomp failed for cairoDevice.c
*** Error code 1
Then a Professor pointed out that:
Our experience is+
- the X11 installation on Solaris is too old for these packages. We use the one from OpenCSW (see the R-admin manual). cairographics in particular has moved on a lot since the 2005 release of Solaris 10 (cairo reached version 1.0 after that).+
- we failed to build RGtk2 with the SunStudio compiler, and had to use gcc.+
Does anyone can help me to build RGtk2, perhapers first to update to a new version of X11 .