Xtion and OpenNI2 on ubuntu
Post date: 2014/04/26 6:18:15
Binary package
OpenNI1.5+Sensor+NITE -> OK
Binary package
OpenNI2 + NITE2 ->
$ ./SimpleViewer
After initialization:
SimpleViewer: Device open failed:
DeviceOpen using default: no devices found
OpenNI2, NiTE2 のコンパイル済みサンプルは全て動かず.
=======================================================
SUCCESS
Compile (OpenNI2)
- sudo apt-get install -yV g++ python libusb-1.0.0-dev libudev-dev openjdk-6-jdk freeglut3-dev doxygen graphviz
- OpenNI2 develop (OpenNI 2.3) [OK]
- git clone -b develop https://github.com/OpenNI/OpenNI2.git
- cd OpenNI2
- make
- cd Packaging
- ./ReleaseVersion.py x64
- sudo ./install.sh
- sudo mkdir /usr/local/share/OpeNI
- sudo cp -r OpenNI-Linux-x64-2.3 /usr/local/share/OpenNI/
- sudo ln -s /usr/local/share/OpenNI-Linux-x64-2.3/Include /usr/local/include/ni2
- sudo ln -s /usr/local/share/OpenNI-Linux-x64-2.3/Redist /usr/local/lib/ni2
- Sensor unstable (Sensor 5.1.6.5)
- git clone -b unstable https://github.com/PrimeSense/Sensor.git
NiTE2 を使ってコンパイルしたファイルはOK
=======================================================
Compile (OpenNI2)
- sudo apt-get install -yV g++ python libusb-1.0.0-dev libudev-dev openjdk-6-jdk freeglut3-dev doxygen graphviz
- OpenNI2 (OpenNI 2.2.0) [NG]
- git clone https://github.com/OpenNI/OpenNI2.git
- cd OpenNI2
- make -> ERROR
- make ALLOW_WARNINGS=1 (https://github.com/OpenNI/OpenNI2/issues/61)
- cd Packaging
- python ./ReleaseVersion.py x64
- Creating installer for OpenNI 2.2 x64 Traceback (most recent call last): File "./ReleaseVersion.py", line 170, in subprocess.check_call(['make', '-C', '../', '-j' + calc_jobs_number(), 'PLATFORM=' + plat, 'release'], stdout=buildLog, stderr=buildLog) File "/usr/lib/python2.7/subprocess.py", line 540, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '['make', '-C', '../', '-j2', 'PLATFORM=x64', 'release']' returned non-zero exit status 2
- Sensor 5.1.
Download binary package for Linux x64 (OpenNI 2.2)
- OpenNI-Linux-x64-2.2
- download OpenNI-Linux-x64-2.2.tar.bzip2
- tar xvf OpenNI-Linux-x64-2.2.tar.bzip2
- cd OpenNI-Linux-x64-2.2
- sudo ./install.sh
- source OpenNIDevEnvironment
- $ ./SimpleViewer After initialization: SimpleViewer: Device open failed: DeviceOpen using default: no devices found
- NiTE-Linux-x64-2.2.tar.bz2
- download NiTE-Linux-x64-2.2.tar.bzip2
- tar xvf NiTE-Linux-x64-2.2.tar.bzip2
- cd Nite-Linux-x64-2.2
- sudo ./install.sh
- source NiTEDevEnvironment
Download binary package for ubuntu (OpenNI 1.5)
- download V1164_1202.zip from http://www.asus.com/Multimedia/Xtion_PRO_LIVE/HelpDesk_Download/
- ubuntu -> utilities -> OpenNI Package Version 20.4.4.0
- unzip V1164_1202.zip
- mount V1164_1202.iso
- cp /media/XXXX/V1164/SDK/Linux/Linux-x64-20.4.4.0.rar .
- rar x Linux-x64-20.4.4.0.rar
- OpenNI2
- tar xvf OpenNI-Bin-Dev-Linux-x64-v1.5.5.0.tar.bz2
- cd OpenNI-Bin-Dev-Linux-x64-v1.5.5.0
- sudo install.sh
- Sensor
- tar xvf Sensor-Bin-Linux-x64-v5.1.4.1.tar.bz2
- cd Sensor-Bin-Linux-x64-v5.1.4.1
- sudo install.sh
- NiTE
- tar xvf NITE-Bin-Linux-x64-v1.5.2.21.tar.bz2
- cd NITE-Bin-Linux-x64-v1.5.2.21
- sudo ./install.sh
- TEST
- OpenNI-Bin-Dev-Linux-x64-v1.5.5.0/Samples/Bin/x64-Release
- NiViewer
- NITE-Bin-Dev-Linux-x64-v1.5.2.21/Samples/Bin/x64-Release
- Sample-SceneAnalysis
- OpenNI-Bin-Dev-Linux-x64-v1.5.5.0/Samples/Bin/x64-Release