ofxOpenNi "Context could not be initialized"

I have installed ofxOpenNi from github in Windows and created a new project using openframeworks project generator.

I have called openni setup from my testapp setup method. OpenNidevices gives “Context could not be initialized”

Have no clue what might have gone wrong. I am a novice. Please help