Skip to content

Windows x64 (MSVS 2013) source installation guide

Christoph Sommer edited this page Nov 6, 2015 · 48 revisions

The installtion on Windows is a bit tricky, because of two reasons. First, Python 2.7 64bit is compiled and linked against an older version of Microsoft Visual Studio Professional (which costs money) and CellCognition has C++ dependencies such as VIGRA. To make it as easy as possible, we pre-compiled hdf5, libpng, libtiff, libjpeg, zlib, szip, and boost-python and made their x64 libs, dlls and headers available for download. Now, only VIGRA, libsvm and CellCogniton's own C++ extensions have to be compiled.

The current version of Microsoft Visual Studio (i.e. 2013) comes with a 64bit cross compiler. It's free. The Windows SDK / Professional version is no longer needed.

Prerequisites

  • Get Microsoft Visual Studio 2013 for Desktop

  • Download it from msdn.microsoft.com/vstudio/

  • You have to get an Microsoft account... (but anyway, it's free)

  • Install it (you will have to restart your machine)

  • Get cmake

  • Download version >=2.8 binary 32bit from cmake webpage

  • Install it and put the cmake path into you PATH environment (one step in the installer)

  • Get msys-git

  • Downlaod it Windows installer from google-code

  • Install it. Also make sure that the git command resides in your PATH environment

  • Download pre-build binaries and header files

  • Download it from CellCognition

  • Unzip it into c:\vigra_depend_x64

  • Add c:\vigra_depend_x64\bin to your PATH environment variable

  • Tip: Rapid Environment Editor is a good Windows tool to edit envirnoment variables (be sure to start in "as administrator"

  • Get Python 2.7.6 Windows X86-64 Installer

  • Also make sure that c:\Python27 is in our PATH environment variable.

  • Download and install packages from Christoph Gohlke's webpage. Christoph Gohlke's packages usually work nicely together, so it's okay to get also newer versions (as available for download there)

  • numpy-MKL-1.7.1.win-amd64-py2.7.exe

  • h5py-2.2.0.win-amd64-py2.7.exe

  • ipython-1.1.0.win-amd64-py2.7.exe

  • lxml-3.2.3.win-amd64-py2.7.exe

  • matplotlib-1.3.1.win-amd64-py2.7.exe

  • pandas-0.12.0.win-amd64-py2.7.exe

  • pip-1.4.1.win-amd64-py2.7.exe

  • py2exe-0.6.10dev.win-amd64-py2.7.exe

  • PyAMF-0.6.1.win-amd64-py2.7.exe

  • PyOpenGL-3.0.2.win-amd64-py2.7.exe

  • pyparsing-2.0.1.win-amd64-py2.7.exe

  • PyQt-Py2.7-x64-gpl-4.9.6-1.exe

  • Add installation path to PATH (usually C:\Python27\Lib\site-packages\PyQt4)

  • pyreadline-2.0.win-amd64-py2.7.exe

  • python-dateutil-1.5.win-amd64-py2.7.exe

  • qimage2ndarray-1.2.win-amd64-py2.7 (2).exe

  • scikit-learn-0.14.1.win-amd64-py2.7.exe

  • scipy-0.14.1.win-amd64-py2.7.exe

  • setuptools-1.1.6.win-amd64-py2.7.exe

  • six-1.4.1.win-amd64-py2.7.exepy

Github

  • Get github account
  • generate and add your ssh key
ssh-keygen -t dsa -C your_email@gmail.com`
cat ~/.ssh/id_dsa.pub
  • copy&paste the output and add it as ssh key on github (personel account settings)

Install libsvm 2.89

  • Download libsvm 2.89
  • Unzip it to folder <libsvm-src>
  • Open an "VS2013 x64 Cross Tools Command Prompt" command shell from Visual Studio Tools (right click and "Run as Administrator"
  • Set environment variable set VS90COMNTOOLS=%VS120COMNTOOLS%. This is, because the installed python was compiled with Visual Studio 9.0 and automatically searches for this compiler, when building extensions.
  • cd <libsvm-src>\python
  • python setup.py build
  • python setup.py install
  • Leave this shell open, we will need it later

Install vigra

  • Get vigra sources (as forked from CellCognition)
  • Get vigra sources and put it into the folder "vigra-cecog" by
  • git clone https://github.com/CellCognition/vigra.git vigra-cecog
  • Open the "VS2013 x64 Cross Tools Command Prompt" shell again
  • cd vigra-cecog
  • mkdir build
  • cd build
  • cmake -DCMAKE_BUILD_TYPE=Release -DDEPENDENCY_SEARCH_PREFIX="C:\vigra_depend_x64" -G "NMake Makefiles" ..
  • nmake
  • nmake install
  • Add C;\Program Files\vigra\bin to your PATH

Install CellCognition C++ extensions

  • Get CellCognition sources and put it into the folder "cellcognition" by
  • git clone https://github.com/CellCognition/cecog.git cellcognition
  • cd cellcognition
  • Get battery package
  • git submodule init
  • git submodule update
  • Build C++ extensions (on master)
  • Open the "VS2013 x64 Cross Tools Command Prompt" shell again
  • cd cellcognition
  • copy setup.cfg.in setup.cfg
  • Edit setup.cfg, the first section should read like this:
[build_ext]
include_dirs="c:/vigra_depend_x64/include";"C:/Program Files/vigra/include"
library_dirs="c:/vigra_depend_x64/lib";"C:/Program Files/vigra/lib"
libraries=boost_python-vc120-mt-1_42
  • if not, change it accordingly
  • Run python setup_windows.py build_ext --inplace --plat-name=win-ia64

Prepare CellCognition Analyzer GUI

  • Build CellCognition resource file

  • in master branch

  • cd cellcogniton

  • python setup_windows.py build_rcc

  • python setup_windows.py build_help

  • Start the CecogAnalyszer GUI in branch master

  • cd cellcognition/scripts/

  • python CecogAnalyzer.py

  • Or use an integrated development environment such as Eclipse with the PyDev and EGit extension

Done :)

Clone this wiki locally