2011/05/06

startup pattern1 : kinect hacks for linux(centos)

Install OpenNI, KinectDriver ,NITE

mkdir ~/kinect && cd ~/kinect

1 OpenNI

git clone https://github.com/OpenNI/OpenNI.git
cd OpneNI/Platform/Linux-x86/RedistMarker
./RedistMaker
sudo ./install.sh

1-1. error

1-1.1-err: libusb-1.0 not found

mak- download
http://sourceforge.net/projects/libusb/

- make install
chmod 775 configure
./configure && make && make install

- reference
http://lfsbookja.sourceforge.jp/BLFS/svn.ja/general/libusb.html


1-1.2-err: /usb/bin/ld: cannot find -lglut
glut may be OpenGL Library

yum install freeglut
yum install freeglut-devel


2. kinect's driver

cd ~/kinect
git clone https://github.com/ros-pkg-git/Sensor.git
cd Sensor/Platform/Linux-x86/CreateRedist
./RedistMaker
sudo ./install.sh


3. NITE

download
http://www.openni.org/downloadfiles/openni-compliant-middleware-binaries/34-stable
PrimeSense NITE Stable Build for Ubuntu 10.10 x86(32bit) v1.3.1.3

extract
cd Data && chmod 644 *
edit key= in 3files. 0KOIk2JeIBYClPWVnMoRKn5cdY4=
sudo ./install.sh 
Please enter your PrimeSense license key: 0KOIk2JeIBYClPWVnMoRKn5cdY4=


error occurred,

g++ -o ../Bin/Sample-PointServer ./Release/main.o ./Release/signal_catch.o ./Release/kbhit.o  -L../Bin -lOpenNI -lXnVNite_1_3_1
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libXnVNite_1_3_1.so: undefined reference to `std::basic_istream<char, std::char_traits<char> >& st\
d::basic_istream<char, std::char_traits<char> >::_M_extract<double>(double&)@GLIBCXX_3.4.9'
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libXnVNite_1_3_1.so: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& st\
d::basic_ostream<char, std::char_traits<char> >::_M_insert<bool>(bool)@GLIBCXX_3.4.9'
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libXnVNite_1_3_1.so: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& st\
d::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)@GLIBCXX_3.4.9'
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libXnVNite_1_3_1.so: undefined reference to `std::_List_node_base::_M_unhook()@GLIBCXX_3.4.14'
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libXnVNite_1_3_1.so: undefined reference to `std::ctype<char>::_M_widen_init() const@GLIBCXX_3.4.1\
1'


0 件のコメント:

コメントを投稿