用Openni2的时候发现找不到device的问题,折腾半天解决了,mark下以备不时之需。
主要参考:
主要是由于libudev-dev的问题。
Same issue with Structure Sensor and PrimeSense on 14.04 32bit and 64bit, showing as Device ID 1d27:0600 ASUS
Solution was to create a symbolic link from the libudev.so.0 file it seems OpenNI2 is expecting to find.
Ubuntu 14.04
$ sudo ln -s /lib/x86_64-Linux-gnu/libudev.so.1.3.5 /lib/x86_64-linux-gnu/libudev.so.0
Ubuntu 15.04
$ sudo ln -s /lib/x86_64-linux-gnu/libudev.so.1.6.2 /lib/x86_64-linux-gnu/libudev.so.0
Then just run your ./NiViewer and smile.
I followed directions here: