ofxKinectCommonBridge addon: cannot read KinectCommonBridge.dll

Quite desperate here… I’ve been trying to use ofxKinectCommondBridge on Windows 8 and Visual Studio 2012 since yesterday.
I’m not a usual windows users and it’s my first time with Visual Studio, so maybe I’m doing some error here, hope someone can help me.

The situation now is: when compiling a REALLY SIMPLE APP using ofxKinectCommonBridge, the compiler tells me

error LNK1107: invalid or corrupt file: cannot read at 0x2D0 C:\Users\Admin\Documents\dev\of_v0.8.4_vs_release\addons\ofxKinectCommonBridge\libs\KinectCommonBridge\lib\windows\vs\KinectCommonBridge.dll

How did I arrive here:

  1. I setup the Visual Studio with the config params detailed here: https://github.com/joshuajnoble/ofxKinectCommonBridge. So basically I setup all the dependencies and so on, in order to get rid of the error :

"Cannot open include file “NuiApi.h”

  1. After solving that problem, I had a new one:

error C2733: ‘GetProcessInformation’ : second C linkage of overloaded function not allowed
also detailed here: https://github.com/sadmb/ofxKinectNui/issues/22.

I followed the instructions there, I hacked the file Processes.h as detailed, and the error was gone

…and this is how I ended up having the error detailed above.

Now my question is: how to solve it? Is it normal I am having so many errors? Am i doing something wrong?

Solved. I had some problem configuring Visual Studio.
Everything is now working properly

I have the same problem here.
Can you tell me what you have done to Visual Studio?

Thanks

I had the same problems with
windows 8.1, OF 0.8.4, VS 2012

About the error in the Processes.h file. I comment the GetProcessInformation function

About the error saying that KinectCommonBridge.dll is corrupted, go to Project properties->linker->input->additionnal dependencies : you will only have .lib file no .dll file

And everything works fine

Thank you very very much taprik!
Now it’s working perfectly!