概述NiViewer openDevice failed: DeviceOpen using default: no devices found Press any key to continue . . . In addition, make sure to update the OpenNI.ini file, e.g. to run the OpenNI sample apps in
NiVIEwer openDevice Failed: DeviceOpen using default: no devices found Press any key to continue . . .
In addition,make sure to update the
OpenNI.ini file,e.g. to run the OpenNI sample apps in
OpenNI2/Samples/Bin or the NiTE sample apps in
For example,I was using the 32-bit OpenNI version 2.2:
- I copIEd the
/path/to/OpenNI2/Tools(there is no
bin/x64-releasefolder in this OpenNI version).
OpenNI2/Samples/Bin,edit the file
[Drivers]section,at the end of the file,add the line:
Repository=/path/to/OpenNI2/Tools(where you put the
libFreenectDriver.sofile). Below is my edited OpenNI.ini file. I used a relative path,but an absolute path will also work.
#/path/to/OpenNI2/Samples/Bin/OpenNI.ini [Log] ; 0 - Verbose; 1 - Info; 2 - Warning; 3 - Error. Default - None Verbosity=3 LogToConsole=0 LogTofile=0 [Device] ;OverrIDe="" [Drivers] ; Location of the drivers specifIEd by a relative path based on OpenNI's shared library or an absolute path. ; Path separator "/" can be used to be portable for any platforms. ; Default - OpenNI2/Drivers Repository=../../Tools
Without updating the
OpenNI.ini I always get the error
DeviceOpen using default: no devices found