Skip to content

InstallWindows

MathieuLeocmach edited this page Jul 26, 2015 · 3 revisions

How to install colloids under Windows

Tested only for 32bits systems

Prerequisite

MinGW

Download and run mingw-get

  • Install in c:\MinGW
  • Select all possible items from the list
  • Get the newest catalogues

Add C:\MinGW\bin to the PATH environment variable. Environment variables can be modified in Control Pannel/System, then Advanced settings and Environment variables. You want to modify the “system” variables (bottom), not the “User” variables (top).

Boost

  • Download the last version of boost libraries at

  • Unzip in the directory you want (for example c:\Users\Dowloads\boost) that we will name $boost_src$ from now on.

  • Compile bjam by:

    cd $boost_src$\tools\build\v2\engine\src
    build.bat mingw
    cd ..\..\..\..\..
    copy .\tools\build\v2\engine\src\bin.ntx86\bjam.exe .
    
  • Configure and execute bjam to build boost by:

    ECHO using gcc ; > project-config.jam
    bjam install --prefix="c:\MinGW" --with-program_options --build-dir="$boost_src$\build"
    
  • build boost by:

    make
    make install
    

CImg

  • Download CImg
  • Extract CImg.h into c:\MinGW\include

FFTW

  • Downoload the precompiled fftw libraries
  • Extract fftw3.h to c:\MinGW\include
  • Extract the three dll files to c:\MinGW\bin
  • Copy c:\MinGW\bin\\*-3.dll to c:\MinGW\lib\\*.dll.a (fftw3f-3.dll => fftw3f.dll.a).

Extra: to be able to modify the configure script and makefiles

  • Download the autoconf macro archives and extract to c:\MinGW\share\alocal
  • After you modified configure.ac or makefile.ac, run autoreconf --install

Setup and install

Get the source from GitHub

cd C:\Users\me\Documents\
git clone https://github.com/MathieuLeocmach/colloids.git

Configure

In the MinGW console (also called MSys) :

cd /c/Users/me/Documents/colloids
./configure –prefix=/c/MinGW -–with-boost -–with-boost_program_options=boost_program_options-mgw45-mt-d-1_46_1

Adapt the directory and the exact name of the boost library you have compiled. In c:\MinGW\lib you must have a file like libboost_program_options-mgw45-mt-d-1_46_1.a Keep only the underlined part.

Build and install

make
make install

Configure python

Prerequisites

  • Python (>2.5)
  • Numpy
  • Scypy
  • pygraph
  • Gnuplot and Gnuplot.py

PYTHONPATH

Add C:\Users\me\Documents\colloids\python to the environment variable PYTHONPATH. Create this variable if needed.