Tom
Tom

Reputation: 6971

Getting error: "Error 2 error LNK1104: cannot open file 'openNI.lib'" when trying to build NiViewer example of OpenNI

I have successfully installed OpenNI and the associated drivers etc. I can successfully run the precompiled NiViewer program, but when i try to build the sample in VS2010 I get the error:

Error 2 error LNK1104: cannot open file 'openNI.lib' C:\Program Files\OpenNI\Samples\NiViewer\LINK NiViewer

I can find only one mention of a file openNI.lib anywhere on the lib, and it was someone reporting the same error as me, and received no replies.

Any help MUCH appreciated

Upvotes: 1

Views: 2552

Answers (1)

Sérgio Passos Jr.
Sérgio Passos Jr.

Reputation: 347

On "Computer", "Properties", "Advanced system settings", "Advanced" tab, then the button "Environment variables". Down there you can see the variables, check if the OPEN_NI_LIB is there and with the right path. Maybe it's missing those.

Upvotes: 1

Related Questions