From Documentation
(openni) |
(→Installation of OpenNI) |
||
Line 5: | Line 5: | ||
===Installation of OpenNI=== | ===Installation of OpenNI=== | ||
− | mkdir ~/kinect | + | mkdir ~/kinect |
− | + | cd ~/kinect | |
− | + | git clone https://github.com/OpenNI/OpenNI.git | |
And change the branch to unstable: | And change the branch to unstable: | ||
Line 22: | Line 22: | ||
mkdir -p /scratch/$USER/t21801/openni/usr/bin | mkdir -p /scratch/$USER/t21801/openni/usr/bin | ||
./install.sh -c /scratch/$USER/t21801/openni | ./install.sh -c /scratch/$USER/t21801/openni | ||
+ | |||
+ | ===OpenCV=== | ||
+ | |||
+ | |||
+ | OpenCV | ||
+ | |||
+ | first, must fix oversight in cmake files | ||
+ | |||
+ | vi cmake/OpenCVFindOpenNI.cmake | ||
+ | |||
+ | elseif(UNIX OR APPLE) | ||
+ | find_file(OPENNI_INCLUDES NAMES "XnCppWrapper.h" PATHS "$ENV{OPENNI_INCLUDE_DIR}" DOC "OpenNI c++ interface header") | ||
+ | find_library(OPENNI_LIBRARY NAMES "OpenNI" PATHS "$ENV{OPENNI_LIB_DIR}" DOC "OpenNI library") | ||
+ | endif() | ||
+ | |||
+ | |||
+ | |||
+ | export OPENNI_INCLUDE_DIR=/scratch/ppomorsk/t21801/openni/usr/include/ni | ||
+ | export OPENNI_LIB_DIR=/scratch/ppomorsk/t21801/openni/usr/lib | ||
+ | |||
+ | |||
+ | |||
+ | cmake options (QT turned off to avoid compile errors): | ||
+ | |||
+ | cmake -DWITH_XINE=ON -DWITH_OPENGL=ON -DWITH_TBB=ON -DBUILD_EXAMPLES=ON -DWITH_QT=ON -DBUILD_JPEG=ON -DBUILD_PNG=ON | ||
+ | -DBUILD_TIFF=ON -DBUILD_opencv_gpu=ON -DWITH_CUDA=ON -DWITH_OPENNI=ON -DWITH_QT=OFF -DCUDA_GENERATION=Fermi .. |
Revision as of 16:46, 29 November 2013
Page with provisional install instructions.
Installing latest PCL on monk
Installation of OpenNI
mkdir ~/kinect cd ~/kinect git clone https://github.com/OpenNI/OpenNI.git
And change the branch to unstable:
cd OpenNI git checkout unstable
Run these lines to install OpenNI
cd Platform/Linux/CreateRedist/ chmod +x RedistMaker
- comment out doc generation in Redist_OpenNi.py as it seems to cause segfault (#execute_check("doxygen Doxyfile > "+ SCRIPT_DIR + "/Output/EngineDoxy.txt", "Creating Documentation") )
./RedistMaker cd ../Redist/OpenNI-Bin-Dev-Linux-x64-v1.5.2.23/ mkdir -p /scratch/$USER/t21801/openni/usr/lib mkdir -p /scratch/$USER/t21801/openni/usr/bin ./install.sh -c /scratch/$USER/t21801/openni
OpenCV
OpenCV
first, must fix oversight in cmake files
vi cmake/OpenCVFindOpenNI.cmake
elseif(UNIX OR APPLE) find_file(OPENNI_INCLUDES NAMES "XnCppWrapper.h" PATHS "$ENV{OPENNI_INCLUDE_DIR}" DOC "OpenNI c++ interface header") find_library(OPENNI_LIBRARY NAMES "OpenNI" PATHS "$ENV{OPENNI_LIB_DIR}" DOC "OpenNI library") endif()
export OPENNI_INCLUDE_DIR=/scratch/ppomorsk/t21801/openni/usr/include/ni export OPENNI_LIB_DIR=/scratch/ppomorsk/t21801/openni/usr/lib
cmake options (QT turned off to avoid compile errors):
cmake -DWITH_XINE=ON -DWITH_OPENGL=ON -DWITH_TBB=ON -DBUILD_EXAMPLES=ON -DWITH_QT=ON -DBUILD_JPEG=ON -DBUILD_PNG=ON -DBUILD_TIFF=ON -DBUILD_opencv_gpu=ON -DWITH_CUDA=ON -DWITH_OPENNI=ON -DWITH_QT=OFF -DCUDA_GENERATION=Fermi ..