how to build fovis library under windows

So, you want to build and use Fovis library (which can estimate 3D motion of RGB-D camera or stereo pairs) under Windows?

Quick and dirty how-to compile it:

Create empty root folder for your build – for example name it fovis_win.

Install Prerequirements:
1) Download Eigen and install it.
2) Download cmake-gui and install it.
3) Download cygwin (with patch utility) and install it.
4) Download missing headers for windows from https://code.google.com/p/msinttypes/ and extract them at your root folder into msinttypes subfolder (so both include files would be located at fovis_win/msinttypes). You cannot build fovis without it.
5) For building examples (for examples only, so you can skip it) you need OpenNI install it to default path (c:\program files\openni). Also you would need freenect. You should build it at the root folder, so you will get all libraries and include under fovis_win/frenect/..
6) Download fovis and extract it at the root folder (all files would be located at fovis_win/libfovis).
7) Download archive with patch for fovis – libfovis.patch – and extract it in the folder fovis_win.

Ok, perfect now it compile. Do you know if it’s possibile to try the example of openni and libfreenect, without going to change the driver every time. I tried the example of libfreenect after a bit of seconds there’s a runtime exception, it seems in libusb. Have you tried to run it?
Thank you for your effort

The only way for switch drivers for device I am familiar with – is to choose manually in windows’s device manager before start of apps.
Probably it can be done via bat-script or in directly via source code of sample but I do not need such functionality.

As I remember, when I played with fovis lib I prefer to use openni version and it works fine (compiled with VS 2010 and 2008).

I think in Monday I will get access to kinect and test freenect samples

=> ive tried all the steps and the responses but the patch file doesnt seem to be recognized.

What did i do?
I followed all the steps and put the files in exactly the same place as Keiny (according to his screenshot, its under cygwin)
Also in my terminal window, i made exactly the same path, and use the same commands.
However, the command patch -p1<../libfovis.patch was not found.
I have pasted that patch file in all possible directories (from fovis_win to libfovis and several others) but still it does not find it.