A quite dumb way to resolve the problem.
# Prepare the catkin workspace for the libfreenect
source /opt/ros/hydro/setup.bash
mkdir -p ~/libfreenect_catkin_ws/src
cd ~/libfreenect_catkin_ws/src
catkin_init_workspace
cd ~/libfreenect_catkin_ws/
catkin_make
source devel/setup.bash
# Get the latest sources from the github repository
cd ~/libfreenect_catkin_ws/src/
git clone https://github.com/OpenKinect/libfreenect.git
# Grab the source of the freenect_stack
git clone https://github.com/ros-drivers/freenect_stack.git tmp
mv tmp/freenect_stack .
mv tmp/freenect_camera .
mv tmp/freenect_launch .
rm -rf tmp/
# catkinize the "vanilla" libfreenect sources
cd ~/libfreenect_catkin_ws/src/libfreenect/
wget -q https://raw.githubusercontent.com/ros-drivers-gbp/libfreenect-release/master/patches/package.xml
replace :{version} in package.xml file with the 0.4.3 or the up-to-date version to the moment of accessing this page.
Original File
<?xml version="1.0"?>
<package>
<name>libfreenect</name>
<version>:{version}</version>
Updated file
<?xml version="1.0"?>
<package>
<name>libfreenect</name>
<version>0.4.3</version>
After that install the required packages using rosdep
# Installing package dependencies
rosdep update
rosdep install libfreenect
sudo aptitude install ros-hydro-camera-info-manager ros-hydro-diagnostic-msgs ros-hydro-diagnostic-updater ros-hydro-dynamic-reconfigure
Now you can build the packages using catkin_make_isolated
# use sudo if needed
catkin_make_isolated
# change hydro if you are using different distribution
catkin_make_isolated --install --install-space=/opt/ros/hydro/
Originally posted by olzhas with karma: 11 on 2014-05-25
This answer was NOT ACCEPTED on the original site
Post score: 1
Original comments
Comment by joq on 2014-05-26:
I opened an issue for this: https://github.com/ros-drivers-gbp/libfreenect-release/issues/5 . Comments there about your needs and experiences with various libfreenect versions will be helpful.