Renaud Lancelot
2005-Mar-06 17:23 UTC
[R] error when when making package tcltk from source (R.0.1)
Dear R-Helpers, I am working with Windows XP. I am trying to build R 2.0.1 from source (R-2.0.1.tar.gz downloaded from CRAN). I read the R Installation and Administration manual and the README.packages file as well (probably tot carefully enough !). I installed the recommended tools and software including TCL/TK software (from archive ActiveTcl8.4.9.0.121397-win32-ix86.exe). I modified the PATH system variable and created new user variables: TCLTK_CPPFLAGS=C:\tcl\include TCLTK_LIBS=C:\tcl\lib I meet the following error when building R: CD C:\R-2.0.1\src\gnuwin32 make all bitmapdll recommended vignettes [snip] ---------- Making package tcltk ------------ adding build stamp to DESCRIPTION installing NAMESPACE file and metadata running src/Makefile.win ... gcc -IC:/R-2.0.1/include -Wall -O2 -I "C:/R-2.0.1/Tcl"/include -DWin32 -c init.c -o init.o tcltk.h:3:17 tcl.h: No such file or directory tcltk.h:4:16 tk.h: No such file or directory make[5]: *** [init.o] Error 1 make[4]: *** [srcDynlib] Error 2 make[3]: *** [all] Error 2 make[2]: *** [pkg-tcltk] Error 2 make[1]: *** [rpackage] Error 1 make: *** [all] Error 2 I checked in the Tcl installation and tcl.h and tk.h are actually in the tcl\include directory. What did I do wrong, and how to fix it ? Thanks and best regards, Renaud -- Dr Renaud Lancelot, v?t?rinaire C/0 Ambassade de France - SCAC BP 834 Antananarivo 101 - Madagascar e-mail: renaud.lancelot at cirad.fr tel.: +261 32 40 165 53 (cell) +261 20 22 665 36 ext. 225 (work) +261 20 22 494 37 (home)
Duncan Murdoch
2005-Mar-06 17:48 UTC
[R] error when when making package tcltk from source (R.0.1)
On Sun, 06 Mar 2005 20:23:59 +0300, Renaud Lancelot <renaud.lancelot at cirad.fr> wrote :>Dear R-Helpers, > >I am working with Windows XP. >I am trying to build R 2.0.1 from source (R-2.0.1.tar.gz downloaded from >CRAN). >I read the R Installation and Administration manual and the >README.packages file as well (probably tot carefully enough !). > >I installed the recommended tools and software including TCL/TK software >(from archive ActiveTcl8.4.9.0.121397-win32-ix86.exe). I modified the >PATH system variable and created new user variables: > >TCLTK_CPPFLAGS=C:\tcl\include >TCLTK_LIBS=C:\tcl\libI think these are the problem. In Windows you should only need to edit the MkRules file to change these lines: # Where does Tcl/Tk live? Spaces allowed. TCL_HOME = $(RHOME)/Tcl TCL_VERSION = 84 The section I think you were reading where you found TCLTK_CPPFLAGS was specific to using the configure utility in Unix. Duncan Murdoch
Prof Brian Ripley
2005-Mar-06 19:10 UTC
[R] error when when making package tcltk from source (R.0.1)
On Sun, 6 Mar 2005, Renaud Lancelot wrote:> Dear R-Helpers, > > I am working with Windows XP. > I am trying to build R 2.0.1 from source (R-2.0.1.tar.gz downloaded from > CRAN). > I read the R Installation and Administration manual and the README.packages > file as well (probably tot carefully enough !). > > I installed the recommended tools and software including TCL/TK software > (from archive ActiveTcl8.4.9.0.121397-win32-ix86.exe).That is not the recommendation in src/gnuwin32/INSTALL (the file you seem to have missed).> I modified the PATH > system variable and created new user variables: > > TCLTK_CPPFLAGS=C:\tcl\include > TCLTK_LIBS=C:\tcl\lib > > I meet the following error when building R: > > CD C:\R-2.0.1\src\gnuwin32 > make all bitmapdll recommended vignettes > > [snip] > > ---------- Making package tcltk ------------ > adding build stamp to DESCRIPTION > installing NAMESPACE file and metadata > running src/Makefile.win ... > gcc -IC:/R-2.0.1/include -Wall -O2 -I "C:/R-2.0.1/Tcl"/include -DWin32 -c^^^^^^^^^^^^^^^^ NB. You need to set the path in MkRules.> init.c -o init.o > tcltk.h:3:17 tcl.h: No such file or directory > tcltk.h:4:16 tk.h: No such file or directory > make[5]: *** [init.o] Error 1 > make[4]: *** [srcDynlib] Error 2 > make[3]: *** [all] Error 2 > make[2]: *** [pkg-tcltk] Error 2 > make[1]: *** [rpackage] Error 1 > make: *** [all] Error 2 > > I checked in the Tcl installation and tcl.h and tk.h are actually in the > tcl\include directory. > > What did I do wrong, and how to fix it ? > > Thanks and best regards, > > Renaud > > -- > Dr Renaud Lancelot, v?t?rinaire > C/0 Ambassade de France - SCAC > BP 834 Antananarivo 101 - Madagascar > > e-mail: renaud.lancelot at cirad.fr > tel.: +261 32 40 165 53 (cell) > +261 20 22 665 36 ext. 225 (work) > +261 20 22 494 37 (home) > > ______________________________________________ > R-help at 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 >-- Brian D. Ripley, ripley at stats.ox.ac.uk 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, UK Fax: +44 1865 272595
Renaud Lancelot
2005-Mar-06 19:31 UTC
[R] error when when making package tcltk from source (R.0.1)
Duncan Murdoch a ?crit :> On Sun, 06 Mar 2005 20:23:59 +0300, Renaud Lancelot > <renaud.lancelot at cirad.fr> wrote : > > >>Dear R-Helpers, >> >>I am working with Windows XP. >>I am trying to build R 2.0.1 from source (R-2.0.1.tar.gz downloaded from >>CRAN). >>I read the R Installation and Administration manual and the >>README.packages file as well (probably tot carefully enough !). >> >>I installed the recommended tools and software including TCL/TK software >>(from archive ActiveTcl8.4.9.0.121397-win32-ix86.exe). I modified the >>PATH system variable and created new user variables: >> >>TCLTK_CPPFLAGS=C:\tcl\include >>TCLTK_LIBS=C:\tcl\lib > > > I think these are the problem. In Windows you should only need to > edit the MkRules file to change these lines: > > # Where does Tcl/Tk live? Spaces allowed. > TCL_HOME = $(RHOME)/Tcl > TCL_VERSION = 84 > > The section I think you were reading where you found TCLTK_CPPFLAGS > was specific to using the configure utility in Unix.Yes, you are right in both issues. Thank you very much for your help. I am now able to build R. Best, Renaud -- Dr Renaud Lancelot, v?t?rinaire C/0 Ambassade de France - SCAC BP 834 Antananarivo 101 - Madagascar e-mail: renaud.lancelot at cirad.fr tel.: +261 32 40 165 53 (cell) +261 20 22 665 36 ext. 225 (work) +261 20 22 494 37 (home)
Renaud Lancelot
2005-Mar-06 19:44 UTC
[R] error when when making package tcltk from source (R.0.1)
Prof Brian Ripley a ?crit :> On Sun, 6 Mar 2005, Renaud Lancelot wrote: > >> Dear R-Helpers, >> >> I am working with Windows XP. >> I am trying to build R 2.0.1 from source (R-2.0.1.tar.gz downloaded >> from CRAN). >> I read the R Installation and Administration manual and the >> README.packages file as well (probably tot carefully enough !). >> >> I installed the recommended tools and software including TCL/TK >> software (from archive ActiveTcl8.4.9.0.121397-win32-ix86.exe). > > > That is not the recommendation in src/gnuwin32/INSTALL (the file you > seem to have missed).Thank you for pointing my mistake.>> I modified the PATH system variable and created new user variables: >> >> TCLTK_CPPFLAGS=C:\tcl\include >> TCLTK_LIBS=C:\tcl\lib >> >> I meet the following error when building R: >> >> CD C:\R-2.0.1\src\gnuwin32 >> make all bitmapdll recommended vignettes >> >> [snip] >> >> ---------- Making package tcltk ------------ >> adding build stamp to DESCRIPTION >> installing NAMESPACE file and metadata >> running src/Makefile.win ... >> gcc -IC:/R-2.0.1/include -Wall -O2 -I "C:/R-2.0.1/Tcl"/include >> -DWin32 -c > > ^^^^^^^^^^^^^^^^ > NB. You need to set the path in MkRules.Thank you. It works now. Best regards, Renaud -- Dr Renaud Lancelot, v?t?rinaire C/0 Ambassade de France - SCAC BP 834 Antananarivo 101 - Madagascar e-mail: renaud.lancelot at cirad.fr tel.: +261 32 40 165 53 (cell) +261 20 22 665 36 ext. 225 (work) +261 20 22 494 37 (home)