Repository navigation
Windows x64 (MSVS 2013) source installation guide
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.
-
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
PATHenvironment (one step in the installer) -
Get msys-git
-
Downlaod it Windows installer from google-code
-
Install it. Also make sure that the
gitcommand resides in yourPATHenvironment -
Download pre-build binaries and header files
-
Download it from CellCognition
-
Unzip it into
c:\vigra_depend_x64 -
Add
c:\vigra_depend_x64\binto yourPATHenvironment variable -
Tip: Rapid Environment Editor is a good Windows tool to edit envirnoment variables (be sure to start in "as administrator"
-
Also make sure that
c:\Python27is in ourPATHenvironment 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(usuallyC:\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
- 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)
- 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>\pythonpython setup.py buildpython setup.py install- Leave this shell open, we will need it later
- 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-cecogmkdir buildcd buildcmake -DCMAKE_BUILD_TYPE=Release -DDEPENDENCY_SEARCH_PREFIX="C:\vigra_depend_x64" -G "NMake Makefiles" ..nmakenmake install- Add
C;\Program Files\vigra\binto yourPATH
- Get CellCognition sources and put it into the folder "cellcognition" by
git clone https://github.com/CellCognition/cecog.git cellcognitioncd cellcognition- Get battery package
git submodule initgit submodule update- Build C++ extensions (on master)
- Open the "VS2013 x64 Cross Tools Command Prompt" shell again
cd cellcognitioncopy 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
-
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