Subscribe:

Ads 468x60px

Thursday, August 2, 2012

How to program using OpenNI in Visual C++ 2010 express

Hi Guys 

      Today i am going to show you how we can set OpenNI in Visual studio 2010

Procedure

1)Install OpenNI in Windows 7

2)Creating an empty project



3)Check the enviornmental variable properly set or not. Which will automatically set while installing openNI

4)Add an empty source file and copy a sample code from OpenNI sample folder to test code. I used NiSimpleViewer

5)Copy GL headers and gl libs from NiSimpleViewer folder to current project folder. Also copy Data folder from OpenNI folder.


6)Include directories
7)Linker dir


8)Additional dependancy

9)Release folder

10)Setting Env.Variable for getting glut32.dll


11)Change the Data folder path


12)Inside data folder
 13)Inside Libs




After building output




Video of this tutorial


7 comments:

ñacañaca said...

hello, Letin Joseph. thanks for the tutorial is very good i loved it, but i have a problem when i want to buil my project in visual studio it say
error LNK1104: cannot open file 'openNI.lib' C:\Users\jairo sanchez\Documents\Visual Studio 2010\Projects\openni_visual\openni_visual\LINK openni_visual

ñacañaca said...

Joseph thanks but i have resolved my problem.
your post is pretty good you help me to begin with kinet.

snake said...

which version of OpenNI is involved in the process?

Unknown said...

ñacañaca how did you solve that problem ???

placement papers said...

i used Open NI 2.2.0.30 alpha version. i am getting linker errors LNK2019.
openni_test.obj : error LNK2019: unresolved external symbol __imp__oniStreamStart referenced in function "public: enum openni::Status __thiscall openni::VideoStream::start(void)" (?start@VideoStream@openni@@QAE?AW4Status@2@XZ)

please help me to get rid of these errors.

Lentin Joseph said...

Can you try it in release mode ?

Unknown said...

im using openni 2.2 it does not contain data folder in it

Post a Comment