satoruhiga / ofxNI2

a simple OpenNI2 wrapper
47 stars 39 forks source link

oxfNI2 on Windows Code::Blocks #6

Open brunoimbrizi opened 10 years ago

brunoimbrizi commented 10 years ago

I am trying to use ofxNI2 on Windows, but I haven't managed to compile the example yet. I started asking and documenting my progress on the openFrameworks forum: http://forum.openframeworks.cc/t/openni-with-ofxni2-and-code-blocks/14896

The current errors are probably because a required library is not linked:

obj\Release\addons\ofxNI2\src\ofxNI2.o:ofxNI2.cpp|| undefined reference to `_imp__oniFrameAddRef'
obj\Release\addons\ofxNI2\src\ofxNI2.o:ofxNI2.cpp|| undefined reference to `_imp__oniFrameRelease'
...
More errors follow but not being shown.

I have added C:\Program Files\OpenNI2\Lib\OpenNI2.lib to the Build options > Linker settings, but the error persisted.

Any suggestions?

brunoimbrizi commented 10 years ago

I was using x64 libraries. Changed them to x86 and it worked. I am working on this fork https://github.com/brunoimbrizi/ofxNI2. I'll tidy things up and send a pull request once things are working fine on Windows.