Requirements
- cygwin including gcc, make, etc
NOTE: cygwin's link.exe application must be renamed, so that VC's link will be used for the build.
renamed cygwin's link.exe to link_cyg.exe:
http://root.cern.ch/root/roottalk/roottalk06/1448.html Installed MS Visual C++ 2005 Express Edition[
http://msdn.microsoft.com/vstudio/express/visualc/downloadand] installed the Service Pack 1.- On this page I followed the link in Step 4 "Install the platform SDK"; on the next page I clicked on the link in Step 2 "Platform SDK" and ended up here: http://www.microsoft.com/downloads/details.aspx?familyid=0BAF2B35-C656-4969-ACE8-E4C0C0716ADB&displaylang=en
"Microsoft Windows Server 2003 R2 Platform SDK Web Install"
I downloaded 'PSDK-x86.exe', chose a Typical install. - Next I installed the "Microsoft .NET Framework Version 2.0 Redistributable Package (x86)" from http://www.microsoft.com/downloads/details.aspx?FamilyID=0856eacb-4362-4b0d-8edd-aab15c5e04f5&DisplayLang=en
When I launched the installer it asked me to choose between "Repair" and (I think) "Remove" an existing installation. I chose "Repair". - Finally I downloaded and installed ".NET Framework 2.0 Software Development Kit (SDK) (x86)" from http://www.microsoft.com/downloads/details.aspx?familyid=FE6F2099-B7B4-4F47-A244-C96D69C35DEC&displaylang=en
- Python installation (currently 2.5.1 as of March 2008)
- While ROOT binaries are not distributed with this version of Python, we have doubled-checked that this is ok:
http://root.cern.ch/phpBB2/viewtopic.php?t=4359
- While ROOT binaries are not distributed with this version of Python, we have doubled-checked that this is ok:
Optional
- FFTW (currently 3.1.2 available from http://www.fftw.org/install/windows.html)
- libxml2.6.15.win32 available from Planet Mirror
- gccxml available from http://www.gccxml.org/HTML/Index.html
- GSL 1.8 for MathMore
Set Up
From the DOS prompt:
set PATH=
set LIB=
set INCLUDE=
and ran c:\Program Files\Microsoft Visual Studio 8\Common7\Tools\vsvars32.bat
Then
set ROOTSYS=C:\heather\root514e\root
set PYTHONDIR=C:\Python25
set PYTHONPATH=%ROOTSYS%\bin
set XMLDIR=C:\heather\root514e\libxml2-2.6.15.win32
set ROOTBUILD=opt
set LIB=C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Lib;C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Lib;%LIB%;%ROOTSYS%\lib
set PATH=C:\Python25;%ROOTSYS%\bin;C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Bin;C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Lib;%PATH%;%ROOTSYS%\lib
set INCLUDE=C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include;C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\include;%INCLUDE%
Start cygwin via the command line: bash --login -i
At the cygwin prompt, changed directories to the %ROOTSYS% dir
Configure
Before calling make, we must run configure. It is often helpful to consider the configuration utilized in the ROOT distribution for the various platforms.
At this time, we at least require: xrootd, minuit2, python
Start cygwin via the command line: bash --login -i
At the cygwin prompt, changed directories to the %ROOTSYS% dir and then ran configure:
./configure win32 --enable-roofit --enable-minuit2 --enable-table --enable-python --disable-odbc --enable-gdml --enable-unuran --enable-xrootd --enable-reflex --enable-cintex --with-fftw3-incdir=C:/heather/root5.18b/fftw-3.1.2-dll --with-fftw3-libdir=C:/heather/root5.18b/fftw-3.1.2-dll --with-gccxml=C:/heather/root5.18b/gcc_xml --with-xml-incdir=C:/heather/root5.18b/libxml2-2.6.15.win32/include --with-xml-libdir=C:/heather/root5.18b/libxml2-2.6.15.win32/lib --with-python-libdir=C:/Python25/libs --with-python-incdir=C:/Python25/include --enable-mathmore --enable-mathcore --with-gsl-incdir=C:/heather/root5.18b/GSL/include --with-gsl-libdir=C:/heather/root5.18b/GSL/lib
A note about MathMore.. even if we enable it.. we must have the GSL library installed and tell ROOT's config where it lives, otherwise Mathmore will not be built. Hence, MathMore has never been available in a GLAST ROOT build (actually it isn't even available in the windows binaries that ROOT-central supplies). See: http://root.cern.ch/cgi-bin/print_hit_bold.pl/root/roottalk/roottalk07/0343.html?mathmorevisual#first_hit
Run make
make
make cintdlls (which seems to do nothing)
make map (also seems to do nothing)
make install