2015年3月12日 星期四

Install OpenNI2 on Ubuntu 14.04 with Xtion(PrimeSense)

First i've try OpenNI 2 SDK Binaries unfortunately it can't find my device so i install it like i did before.. 1. compile driver 2. install openni2
  1. create OpenNI2 folder
  2. mkdir OpenNI2 && cd OpenNI2
    
  3. compile driver
  4. git clone git@github.com:PrimeSense/Sensor.git
    cd Sensor
    cd Platform/Linux/CreateRedist
    ./RedistMaker
    cd ../../..
    
    cd Platform/Linux/Redist
    cd Sensor-Bin-*
    sudo ./install.sh
    
    # back to OpenNI2 folder
    cd ../../../../../
    
  5. install openni2
  6. # or you can get develop branch
    # git clone -b develop git@github.com:occipital/OpenNI2.git
    git clone  git@github.com:occipital/OpenNI2.git
    cd OpenNI2 && make -j8 && cd ..
    
  7. now plug in Xtion
  8. cd OpenNI2/Bin/x64-Release && ./NiViewer
    # will see the result like below press ESC to exit
    

沒有留言:

張貼留言