Wednesday, May 2, 2012

Installing Skeltrack on Ubuntu


Skeltrack  is an Open Source skeletal tracker and tracks up to 7 joints currently: head shoulders, elbows, and hands .Openni and Microsoft SDK trackers are not open source, so this might provide developers a good platform to tweak the algorithm and parameters according to their application :)

How to install skeltrack on ubuntu 11.10
Sourcehttp://pastebin.com/KyF9AaBt

#need clutter 1.8 or greater
# make sure the glut-dev is there, I forget the package name
sudo apt-get install git-core cmake  pkg-config build-essential libxmu-dev libxi-dev libusb-1.0-0-dev
git clone git://github.com/OpenKinect/libfreenect.git
cd libfreenect
mkdir build
cd build
cmake ..
make
sudo make install
sudo ldconfig /usr/local/lib64/
#sudo glview
cd ../.. #back to src
sudo aptitude install gobject-introspection gtk-doc-tools

PKG_CONFIG_PATH=/usr/local/lib64/pkgconfig/:/usr/local/lib/pkgconfig:/usr/lib/pkgconfig
export PKG_CONFIG_PATH
git clone git://gitorious.org/gfreenect/gfreenect.git
cd gfreenect
git clean -f
libtoolize -v --copy --install
aclocal
autoconf
./autogen.sh
make
sudo make install
sudo ldconfig /usr/local/lib/
cd ..

sudo aptitude install libclutter-1.0-dev
export PKG_CONFIG_PATH
git clone https://github.com/joaquimrocha/Skeltrack.git
cd Skeltrack
git clean -f
libtoolize -v --copy --install
aclocal
autoconf
./autogen.sh
./configure --enable-examples=yes
make
sudo make install
cd examples
./test-kinect

If you encounter the following error

error while loading shared libraries: libfreenect.so.0.0: 
cannot open shared object file: No such file or directory



You need to refresh your ldconfig cache. The easiest way to do this is to create
 a file usr-local-libs.conf (or whatever name you wish) with the following lines:
/usr/local/lib64
/usr/local/lib
Switch to root account and move it to /etc/ld.so.conf.d/usr-local-libs.conf
Then update the ldconfig cache:
$ su root
$ mv ~/usr-local-libs.conf /etc/ld.so.conf.d/usr-local-libs.conf
$ /sbin/ldconfig -v


Source: http://openkinect.org/wiki/Getting_Started

3 comments:

  1. Hey,
    While doing make in the last step i.e. in the skeltrack directory, I got the following error,
    "
    skeltrack-skeleton.c:110:10: error: field ‘track_joints_mutex’ has incomplete type
    "
    Can you please help to remove this error?

    Thanks a lot,
    Shashank.

    ReplyDelete
  2. An alternative to your solution for the ldconfig issue would be to just run:

    sudo ldconfig /usr/local/lib64

    ReplyDelete
  3. If you get the following error:
    test-skeleton.o: undefined reference to symbol 'g_file_new_for_path
    Go to the Makefile in the "tests" directory and set LIBS to DSO missing from command line. For example, I had only "LIBS =", I changed it to "LIBS =" to LIBS = ${GLIB_LIBS}

    ReplyDelete