Tmp3/pibot_ros/third_party/build.sh

19 lines
591 B
Bash

sudo apt-get install build-essential cmake pkg-config libusb-1.0-0-dev libturbojpeg libjpeg-turbo8-dev libglfw3-dev libopenni2-dev
if [ ! -d ~/pibot_ros/third_party/libfreenect2/build ]; then
mkdir ~/pibot_ros/third_party/libfreenect2/build
fi
cd ~/pibot_ros/third_party/libfreenect2/build
cmake .. -DENABLE_CXX11=ON
make
sudo make install
sudo cp ../platform/linux/udev/90-kinect2.rules /etc/udev/rules.d/
if [ ! -d ~/pibot_ros/third_party/libuvc/build ]; then
mkdir ~/pibot_ros/third_party/libuvc/build
fi
cd ~/pibot_ros/third_party/libuvc/build
cmake ..
make
sudo make install