use kinect2 with openni2 on windows10

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.
在這裏插入圖片描述

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章