Installing Multitouch and fixing OpenCV on Debian Lenny

From NUI Group Community Wiki

Jump to: navigation, search
       First of all, install all the needed packages:
apt-get install subversion libcv1 libcvaux1 libcvaux-dev libcv-dev libhighgui1 libhighgui-dev \
opencv-doc python-opencv cmake libcv-dev libhighgui-dev libavcodec-dev libavcodec51 \
libavutil-dev libglut3-dev glutg3-dev libavcodec-dev libavcodec51 libavutil-dev

Contents

Fixing opencv

Opencv hasn't been updated on Debian and is using a deprecated function img_convert belonging to ffmpeg thatsafe cig electronic cigarette review the bug has been filed.

At the moment you can apply a patch:

  1. Make sure you have in your sources.list sources repos.
apt-get source libhighgui1
sudo apt-get build-dep libhighgui-dev
cd opencv-1.0.0
wget http://kambing.ui.edu/gentoo-portage/media-libs/opencv/files/opencv-1.0.0-vcapffmpegundefinedsymbols.patch
patch -p0 < opencv-1.0.0-cvcapffmpegundefinedsymbols.patch
cd ..;dpkg-buildpackage libhighgui1
sudo dpkg -i libhighgui*.deb

Now you'll be able to continue the usual compilation. Here we have all the requisites even those to build the cool smoke sample.

oscpack installation(optional)

Get the sources, they are patched to compile on gcc4.3, the original package lacks some includes and do not compile with gcc4.3.

wget http://sulaco.devnull.li/~ikks/touchlib/oscpack1.0.2.tar.bz2
make

touchlib installation

svn co http://touchlib.googlecode.com/svn/trunk/ multitouch
cd multitouch
cmake .
make

Testing touchlib

you can run
src/sampleapp
or
src/configapp
You should be able to run the smoke demo:
demos/smoke/smoke
and if you installed oscpack :
demos/oscpack/oscpack
.

References

buy essays online advokat