Requirements
- Visual Studio 2009 - the professional distribution was used in this example
- 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
Set Up
From the DOS prompt:
set PATH=
set LIB=
set INCLUDE=
and ran C:\Program Files\Microsoft Visual Studio 9.0\VC\vsvarsall.bat
Then
set ROOTSYS=C:\heather\root-v5.20-gl1\root
set PYTHONDIR=C:\Python25
set PYTHONPATH=%ROOTSYS%\bin
set XMLDIR=C:\heather\root-v5.20-gl1\libxml2-2.6.15.win32
set ROOTBUILD=opt
set LIB=C:\Program Files\Microsoft SDKs\Windows\v6.0A\Lib;%LIB%;%ROOTSYS%\lib
set PATH=C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Python25;%ROOTSYS%\bin;C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin;%PATH%;%ROOTSYS%\lib
set INCLUDE=C:\Program Files\Microsoft SDKs\Windows\v6.0A\Include;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
Run make
make
make cintdlls (which seems to do nothing)
make map (also seems to do nothing)
make install