Rev 7536 | Blame | Last modification | View Log | Download | RSS feed
R 0.99.0 for Windows 9x and NT==============================This distribution contains a binary distribution of R-0.99.0 to run onWindows 95, 98 and NT4 on Intel/clone chips. See README for fullerdetails, including how to install the binary versions.Building From Source====================[Some further details, including how to debug, are given in the RW-FAQ.]First collect the tools that you need.Building on Windows-------------------We recommend that you use the mingw32 port of gcc-2.95.2 by Mumit Khanfrom ftp://ftp.xraylith.wisc.edu/pub/khan/gnu-win32/mingw32. You willalso need suitable versions of make, sh, rm, sed, awk, mkdir, echo, cpand cat; we have packaged a set atCRAN/bin/windows/windows-NT/base/etc/tools.zip extracted from thecygwin distribution (http://sourceware.cygnus.com/cygwin and severalmirrors). To avoid past problems on some versions of Windows 95, weuse the cygwin ld contained in that set, which must be before themingw32 one in your path. (We believe this is solved in gcc-2.95.2,but have no way of testing this as we now use NT.)It is also possible to use earlier mingw32 compilers or cygwin-b20.1with the --no-cygwin flag, but we suggest you do so only if you have aworking setup from building earlier versions of R. We have alsosuccessfully used the variant of mingw32 that uses the MSVCRT run-timesystem (under gcc-2.95.x but not earlier versions).Be aware that not all Windows machines have MSVCRT.DLL installed.(If you want to use cygwin, you will need to upgrade to gcc-2.95.2 byinstalling the files gcc-2.95.2-cygb20.tar.gz andgcc-2.95.2-mingw-extra.tar.gz fromftp://ftp.xraylith.wisc.edu/pub/khan/gnu-win32/cygwin32. The basicdistribution does not comtain a Fortran compiler, and that is neededto build R.)perl5, available via http://www.perl.com/CPAN/ports.zip and unzip from the Info-ZIP project(ftp://ftp.cdrom.com/pub/infozip/Info-ZIP.html and mirrors).If you want to make compiled html (.chm) files you will need theMicrosoft HTML Help Workshop, available for download athttp://msdn.microsoft.com/workshop/author/htmlhelp.If you want to make Windows (.hlp) files you will need a Windows helpcompiler, preferably hcrtf.exe. This is available for download atftp://ftp.microsoft.com/support/MSLFILES/HCWSETUP.EXE.All of these need to be installed and in your path, and theappropriate environment variables set.You also need: the R source (R-0.99.0.tgz), and to build theinstaller, unzip5.40.zip from any Info-Zip mirror. Do remember to setMAKE_MODE to UNIX (set MAKE_MODE=UNIX at the Windows command-line).Then: untar R-0.99.0.tgz somewhere,cd /somewhere/R-0.99.0/src/gnuwin32edit MkRules to set the appropriate paths as needededit Makefile to set the type(s) of help that you want built.and runmake BUILD=MINGW32 or CYGWINNote 1: the file rw0990\unzip\unzip32.dll is not in the sourcedistribution, nor are the sources (it is the standard Info-Zip unzip5.40, built with MSVC++4.2). You will need to copy it from a binarydistribution.The file rw0990\bin\Rchtml.dll is only built if chm help is specifedin the main Makefile. Its source is the help directory, and you needthe HTML Help Workshop files to build it. It contains instructionsto build it under VC++6, and it is preferable to use that as theVC++ library will check versions of the components needed. You can justcopy this from a binary distribution.The file rw0990\bin\Rbitmap.dll is not built automatically:instructions on how to build it are in the file bitmap\INSTALL. Youcan just copy this from a binary distribution.Note 2: we are aware that because of limitations in line length or inthe shell used that the Makefiles do not work unchanged on all thepossible combinations of tools, compilers and OSes. We have testedthe Cygwin make and shell under NT, and cross-building (see below).Note 3: building libR.a is highly disk intensive and can take severalminutes even on a local disc. We have seen times from 30 secs to 20minutes. Using a network file system is likely to take longer.You can test a build by `make check': expect some differences in the testsof the print routines.Cross-building on i586 Linux----------------------------You will need i386-mingw32 cross-compilers installed and in your path.A pre-built set of cross-tools based on gcc-2.95.2 is currentlyavailable fromhttp://www.devolution.com/~slouken/SDL/Xmingw32/Unfortunately these do not include a Fortran compiler, but may suffice forbuilding some packages.Instructions for building a cross-compiler are given athttp://www.nanotech.wisc.edu/~khan/software/gnu-win32/mingw-cross-howto.txtAt the time of writing these were somewhat outdated, and we suggestyou build a gcc-2.95.2 cross-compiler (sources from any GNU mirror andpatches fromftp://ftp.xraylith.wisc.edu/pub/khan/gnu-win32/cygwin/gcc-2.95.2/patches/). Apart from the compiler, you need the mingw32 runtime system anda cross-built version of binutils 2.9.4.You will need Perl, zip and unzip installed.You also need: the R source (R-0.99.0.tgz), and to build the installer,unzip5.40.zip from any Info-ZIP mirror.Then: untar R-0.99.0.tgz somewherecd /somewhere/R-0.99.0/src/gnuwin32Edit MkRules to set BUILD=CROSS and the appropriate paths as needed.Edit Makefile to set the type(s) of help that you want built. (Youwill not be able to cross-build .chm or .hlp files, nor Rchmtl.dll,so set WINHELP to NO.)Packages can be made in the same way as natively: see the filereadme.packages.Feedback========Please send comments and bug reports to (preferably both of)Guido Masarotto <guido@hal.stat.unipd.it>Brian Ripley <ripley@stats.ox.ac.uk>