Rev 37006 | Rev 37437 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
Notes for Windows Maintainers=============================1) fixed/h/config.h can be made automatically. Some of this isachieved by overrides in the configure script.You will need a copy of sh.exe in /bin. Then with the R sources in/R/R-2.3.0, I used in /TEMP/R (any other directory will do, except thesources)sh /R/R-2.3.0/configure --build=i386-pc-mingw32 --with-readline=no --with-x=noThis ran fairly slowly, currently producing a src/include/config.hthat differs only in that- it does not find the declarations of siglongjmp/sigsetjmp (inpsignal.h)- SUPPORT_UTF8 is defined, but that is not true on Windows.Also, watch out for versions of the header files. For example,<strings.h> was in mingw-runtime-1.2 and later, but not in theMingw-1.1 bundle. These days we tend to insist on a current MinGW.BDR 2002-04-15, 2003-02-10, 2004-06-28, 2005-11-252) The Makefiles for building a distribution have been reorganized. Nowall of the decisions about what files go into the distributables are madein installer/Makefile; the decisions about which component of the setupprogram each file goes into are made in installer/JRins.pl.DJM 2003-02-253) Making Tcl/Tk.Get the Tcl/Tk sources (I used 8.4.5 when testing this).You need VC++6 and a Windows command-line window.Run "\Program Files\Microsoft Visual Studio\VC98\Bin\VCVARS32.BAT"cd tcl8.4.x\winnmake -nologo -f makefile.vc release winhelpnmake -f makefile.vc installcd ..\..\tk8.4.x\winnmake -nologo -f makefile.vc TCLDIR=..\..\tcl8.4.x release winhelpnmake -f makefile.vc installNow copy /Program Files/Tcl to say /R/Tcl and (in any reasonable shell)cd /R/Tclrm bin/tclpip84.dll bin/tclsh84.exe bin/wish.exerm -rf lib/*.lib lib/tk8.4/demos lib/tk8.4/imagescp .../tcl8.4.x/license.terms .BDR 2004-01-094) Linking to DLLs.Mingw's ld.exe takes the internal name of the DLL as the object tolink to, and hence for DLLs which are to be linked to (rather thanloaded), the internal name need to be dllname.dll. This was not beingdone by the %.dll rule used in 2.2.1, which builds via a .def filewith first lineLIBRARY $*It would seem that this should just be replaced by $*.dll, but thereis another problem: ld.exe rejects .def files whose LIBRARY namecontains more than one dot, and so this is unable to cope withpackages with a dot in their name. (We already document that two ormore dots are not allowed.) So we have had to revert to the rule usedin 2.2.1 and treat separately the DLLs which are designed to be linkedto. These areR.dll : is special-cased, and as it wants to export entry points fromstatic libraries and exports variables, nothing else we tried worked.Rblas.dll : has a .def file, and the name was changed to Rblas.dllthere.Rlapack.dll : is simple, so gcc -shared with no .def file works.Rproxy.dll : is special-cased. (Linked against by rcom package.)The other DLLs which were in R_HOME/bin, Rbitmap.dll and Rchtml.dll,have been moved to R_HOME/modules. They are now made directly withgcc -shared. Rchtml.dll needs an import library as you cannot linkdirectly to a .ocx.BDR 2006-02-15