wiki:AlpsOnWindows

How to build ALPS on Windows

Get and install development tools

  1. Microsoft Visual C++ 2008 Express Edition
  1. Windows SDK for Windows Server 2008 and .NET Framework 3.5 for OpenMP support (ref. http://www.microsoft.com/downloads/details.aspx?FamilyId=E6E1C3DF-A74F-4207-8586-711EBE331CDC&displaylang=en)
  1. CMake 2.8 (using Win32 Installer)
  1. Nullsoft Scriptable Install Sysytem (NSIS) 2.46 and the ZipDLL plugin
  1. 7-Zip 4.65 (using 32-bit msi)
  1. Tortoise SVN 1.6 (32-bit installer)
  1. Python 2.5.4 (x86 msi)
    1. Append "C:\Python25" to environment variable "PATH". See, e.g. http://vlaurie.com/computers2/Articles/environment.htm for instructions how to set environment variables on WIndows.
  1. PyInstaller 1.3 (zip)
    1. Download and extract as C:\pyinstaller-1.3
    2. Execute "python Configure.py" in C:\pyinstaller-1.3
  1. numpy-1.4.1 (numpy-1.4.1-win32-superpack-python2.5.exe)

Get and install dependent libraries

  1. Boost C++ Libraries 1.42.0 (7z)
    1. Download the 7z file and extract the source tree as $HOMEDRIVE\$HOMEPATH\src\boost_1_42_0 (e.g. C:\Users\UserName\src\boost_1_42_0 on Windows 7), but not build them
  1. HDF5 and dependent libraries (Zlib and SZlib)
    1. Checkout the source code from https://alps.comp-phys.org/svn/alps1/trunk/wistaria/windows/hdf5 as as $HOMEDRIVE\$HOMEPATH\src\hdf5 (e.g. C:\Users\UserName\src\hdf5 on Windows 7)
    2. Start CMake (cmake-gui)
      1. Set "Where is the source code:" to "$HOMEDRIVE\$HOMEPATH\src\hdf5"
      2. Set "Where to build the binaries:" to "$HOMEDRIVE\$HOMEPATH\build\hdf5"
      3. "Configure"
      4. Choose "Visual Studio 9 2008" with "Use default native compilers" as the generator
      5. "Configure" again
      6. "Generate" and quit CMake
    3. Open "$HOMEDRIVE\$HOMEPATH\build\hdf5\hdf5.sln" (Microsoft Visual Studio Solution)
      1. Choose "Release" as solution configuration
      2. Right-click "INSTALL" in solution explore panel and choose "build", which installs libraries, DLLs, and include files under $HOMEDRIVE\$HOMEPATH/opt
  1. CLAPACK
    1. Checkout the source code from https://alps.comp-phys.org/svn/alps1/trunk/wistaria/windows/clapack as as $HOMEDRIVE\$HOMEPATH\src\clapack (e.g. C:\Users\UserName\src\clapack on Windows 7)
    2. Start CMake (cmake-gui)
      1. Set "Where is the source code:" to "$HOMEDRIVE\$HOMEPATH\src\clapack"
      2. Set "Where to build the binaries:" to "$HOMEDRIVE\$HOMEPATH\build\clapack"
      3. "Configure"
      4. Choose "Visual Studio 9 2008" with "Use default native compilers" as the generator
      5. "Configure" again
      6. "Generate" and quit CMake
    3. Open "$HOMEDRIVE\$HOMEPATH\build\clapack\clapack.sln" (Microsoft Visual Studio Solution)
      1. Choose "Release" as solution configuration
      2. Right-click "INSTALL" in solution explore panel and choose "build", which installs libraries and include files under $HOMEDRIVE\$HOMEPATH/opt
  1. Lpsolve
  1. SQLite
  1. VTK (Visualization Toolkit)
    • Note that binary installer does not install the python bindings.
    1. Download the source code and extract the source tree as $HOMEDRIVE\$HOMEPATH\src\vtk-5.4.2
    2. Start CMake (cmake-gui)
      1. Set "Where is the source code:" to "$HOMEDRIVE\$HOMEPATH\src\vtk-5.4.2"
      2. Set "Where to build the binaries:" to "$HOMEDRIVE\$HOMEPATH\build\vtk"
      3. "Configure"
      4. Choose "Visual Studio 9 2008" with "Use default native compilers" as the generator
      5. Choose "Advanced View"
      6. Change "CMAKE_INSTALL_PREFIX" to "C:\VTK"
      7. Check BUILD_SHARED_LIBS and VTK_WRAP_PYTHON
      8. Uncheck BUILD_TESTING
      9. "Configure" again (some errors are reported but please ignore)
      10. Uncheck VTK_USE_TK
      11. "Configure" again
      12. "Configure" again
      13. "Generate" and quite CMake
    3. Open "$HOMEDRIVE\$HOMEPATH\build\vtk-5.4.2\VTK.sln" (Microsoft Visual Studio Solution)
      1. Choose "Release" as solution configuration
      2. Right-click "INSTALL" in solution explore panel and choose "build", which installs libraries and include files under C:\VTK
    4. Setup environment variables
      1. Append "C:\VTK\bin" to environment variable "PATH"
      2. Create "PYTHONPATH" and set the value to "C:\VTK\lib\site-packages"
  1. wxPython (Python wrapper for wxWidget)
    1. Download and install the binary installer (win32-unicode-python2.5)

Get and build ALPS

  1. Checkout the source code from https://alps.comp-phys.org/svn/alps1/trunk/alps as as $HOMEDRIVE\$HOMEPATH\src\alps (e.g. C:\Users\UserName\src\alps on Windows 7)
  2. Start CMake (cmake-gui)
    1. Set "Where is the source code:" to "$HOMEDRIVE\$HOMEPATH\src\alps"
    2. Set "Where to build the binaries:" to "$HOMEDRIVE\$HOMEPATH\build\alps"
    3. "Configure"
    4. Choose "Visual Studio 9 2008" with "Use default native compilers" as the generator
    5. "Configure" again
    6. "Generate" and quit CMake
  3. Open "$HOMEDRIVE\$HOMEPATH\build\alps\alps.sln" (Microsoft Visual Studio Solution)
    1. Choose "Release" as solution configuration
    2. Right-click "INSTALL" in solution explore panel and choose "build", which installs libraries and include files under C:\ALPS
    3. [optional] Right-click "RUN_TESTS" in solution explore panel and choose "build" to run test programs
Last modified 9 years ago Last modified on Apr 28, 2010, 7:54:57 AM