Table of Contents |
---|
2.1.2.4
windows-i386-32bit-vc90
CLHEP now uses CMake to handle its builds. Please note that while the ReadMe.win directs us to use the command-line version of CMake and build via nmake, this currently produces an error - which might be a CMake bug..or perhaps a deficiency in the CMake set up of CLHEP. I posted a note to the CLHEP bug list. Instead, we use cmake-gui to generate the Visual Studio project, and use VS to compile and install CLHEP.
Tracy found a bug in 2.1.2.2 in RandPossion that seems to be fixed in this version
- Download the CLHEP 2.1.2.4 source
- Ungzip and untar the file using GNU gzip and tar for windows
- Start up a DOS Command Prompt
- Run C:\Program Files\Microsoft Visual Studio 9\Common\Tools\vsvars32.bat
- Start up cmake-gui
- Point the "Where is the source code:" text box to the CLHEP source
- Set "Where to build the binaries"
- Click the Configure box
- Click Generate
- Locate the Visual Studio solution file generated and use it to start up Visual Studio
- Chose Debug or RelWithDebug (the CLHEP default)
- Build "ALL_BUILD"
- It seems the Cast library is built after the test programs in some cases, if there are build failures, just build "ALL_BUILD" again.
- Build "Install" to obtain bin, lib, and include directories.
2.1.0.1
windows-i386-32bit-vc90
- Download the CLHEP 2.1.0.1 source
- Ungzip and untar the file
- Build CLHEP from within a directory other than the source directory - so create a new directory such as C:\heather\clhep\debug
- Start up cygwin and have is set up to use Visual Studio 2008 using the cygwin.bat file
- create two environment variables:
export CC=cl
export CXX=cl - ./configure --prefix /cygwin/c/heather/clhep/debug CXX=cl CC=cl
- for Debug:
make AM_CXXFLAGS=" /EHsc /nologo /GR /MDd /Z7 /D _HAS_ITERATOR_DEBUGGING=0 /D _SECURE_SCL=0 /D _DEBUG "
The /Z7 option should provide debugging info embedded in the static lib, rather than creating a separate pdb file if one used the /Zi or /ZI options - For release:
make - make install
...