we use vs2015 to build all projects in Release x64 version,
1. download openni2 on kinect2 branch
git clone https://github.com/occipital/OpenNI2 -b kinect2
2. download libfreenect2
https://github.com/OpenKinect/libfreenect2
a. install libusb by running
./depends/install_libusb_vs2015.cmd
b. install TurboJPEG
I download libjpeg-turbo-2.0.3-vc.exe , and then specify the environment variable TurboJPEG_ROOT to its directory.
c. install GLFW
I download the pre-built version glfw-3.3.bin.WIN64, and then specify the environment variable GLFW_ROOT to its directory.
d. cmake
e. build
open libfreenect2.sln
right click INSTALL and choose build in vs2015.
then everything is built in install folder
run Protonect.exe in bin folder.