-
Notifications
You must be signed in to change notification settings - Fork 3
How to build
Heresy edited this page Nov 7, 2013
·
3 revisions
We only provide Microsoft Visual C++ solution now. But it should can build on Linux or Mac OS X.
To build the virtual device deiver module, you need to download the source code of OpenNI2, which could be found in GitHub: https://github.com/OpenNI/OpenNI2
- OpenNI 2 source code, used for building virtual device driver module
- OpenCV, used in some samples for display images. This is not required if you only want to build the driver module.
There is a solution file VirtualDevice.sln in the root director, it contains the project of virtual device and some samples.
Befor open the solution, you need to open the file PathSetting.props in the root directory with a text editor. It contains some setting of this solution in XML format.
Please find the code block UserMacros:
<PropertyGroup Label="UserMacros">
<OpenNI_SDK_Path>$(SolutionDir)\..\OpenNI2Dev\</OpenNI_SDK_Path>
<OpenCV_Path>$(SolutionDir)\..\..\OpenCV-2.4.6.0\opencv</OpenCV_Path>
<OpenCV_Libs_Debug>opencv_core246d.lib;opencv_highgui246d.lib;opencv_imgproc246d.lib</OpenCV_Libs_Debug>
<OpenCV_Libs_Release>opencv_core246.lib;opencv_highgui246.lib;opencv_imgproc246.lib</OpenCV_Libs_Release>
</PropertyGroup>
and modify the data for your environment.
-
OpenNI_SDK_Pathis the path of OpenNI2 source code, it is required to build virtual device driver module. -
OpenCV_Pathis the path of OpenCV, which is used in some samples. -
OpenCV_Libs_DebugandOpenCV_Libs_Releaseare required .lib files for the sample using OpenCV.