Rev 42569 | Rev 42636 | 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.6.0, I used in /TEMP/R (any other directory will do, except thesources). For MinGW 4.2.1 you will need to setCC=gcc-sjljF77=gfortran-sjljCXX=g++-sjljin the environment (or copy the executables to gcc.exe, gfortran.exeand g++.exe).To test trio and iconv, setLIBS='RHOME/src/extra/trio/libtrio.a -LRHOME/src/gnuwin32/unicode'and put fixed/h/iconv.h in your C_INCLUDE_PATH.sh /R/R-2.6.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.[ch])- SUPPORT_UTF8 is defined, but that is not true on Windows.- MinGW gcc 4.2.1 supports pthreads, but I left that undefined.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 insist on a current MinGW.BDR 2002-04-15, 2003-02-10, 2004-06-28, 2005-11-25, 2006-07-06, 2007-08-092) 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.See the directory R-Tcl-win in the R-packages SVN repository.4) 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 names 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 $*[The example in ld.info isLIBRARY "xyz.dll"whereas that in the MSDN documentation(http://msdn2.microsoft.com/en-us/library/d91k01sh.aspx) isLIBRARY BTREEso MinGW is inconsistent with MSDN here.]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 treat separately theDLLs which are designed to be linked to. 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.However, whereas MSDN says there must be a LIBRARY statement, it seemsnot to be required for ld.exe. So the %.dll rule in MkRules as from2.3.0 does not have a LIBRARY statement, which circumvents the 'atmost one dot' rule.BDR 2006-02-15, 2006-02-245) Rdll.hideAllDevicesKilledRConsoleRFrameRf_runcmdRgetMDIheightRgetMDIwidthRguiMDIRi18n_wcwidthRiconvRiconv_closeRiconv_openRwin_graphicsxRwin_graphicsyUserBreaklocale2charsetoptclosefileoptfileoptlineoptopenfileoptreadfor grDevicesR_deferred_default_methodR_do_MAKE_CLASSR_do_new_objectR_do_slotR_do_slot_assignR_execMethodR_primitive_genericR_primitive_methodsR_set_prim_methodR_set_quick_method_checkR_set_standardGeneric_ptrR_subassign3_dfltdo_set_prim_methodfor methodsR_gl_tab_setcmdlineoptionsgetDLLVersiongl_hist_initgl_loadhistoryreadconsolecfgsaveConsoleTitlesetupuifor rgui/rterm/Rscriptcrc32deflatedeflateEnddeflateInit2_deflateResetinflateResetfor Rbitmap.dllRf_mbrtowcRf_strchrlocaleCPfor graphapp.dllR_cumsumfor package DClusterdeflatedeflateEnddeflateInit_inflateinflateEndinflateInit_for package GRASSfft_factorfft_workfor package RandomFieldssetup_term_uifor package RserveBrent_fminR_tabulateR_zeroinfor package apefindIntervalfor package ecochol_optif9rs_for package nlmeBDR 2007-08-20