Ok I managed to make it to compile, I added these to the project:
In Project -> Properties:
- in C/C++ -> General -> Additional Include Directories : $(OPENNI2_INCLUDE64)
- in Linker -> General -> Additional Library Directories : $(OPENNI2_LIB64)
- in Linker -> Input -> Additonal depdendancies : OpenNI2.lib
Now I get a new error:
Exception non gérée à 0x00007FFA60F5871C dans openniTest_debug.exe :
exception Microsoft C++ : [rethrow] à l'emplacement de mémoire
0x0000000000000000.
which points to the code below, and specifically the line with the throw.
bool assert_error(openni::Status rc)
{
if (rc == openni::STATUS_OK) return true;
ofLogError("ofxNI2") << openni::OpenNI::getExtendedError();
throw;
}
I'm a bit lost now.