I tried to install from source and got the following error:

[ 32%] Building CXX object server/libplayerdrivers/CMakeFiles/playerdrivers.dir/__/drivers/blobfinder/simpleshape/simpleshape.o
/home/user/temp2/Downloads/trunk/server/drivers/blobfinder/simpleshape/simpleshape.cc:110:21: fatal error: highgui.h: No such file or directory
compilation terminated.
make[2]: *** [server/libplayerdrivers/CMakeFiles/playerdrivers.dir/__/drivers/blobfinder/simpleshape/simpleshape.o] Error 1
make[1]: *** [server/libplayerdrivers/CMakeFiles/playerdrivers.dir/all] Error 2
make: *** [all] Error 2

As far as I understand the problem is that I'm missing some package (OpenCV), tried to install som, but the problem persisted. Also, I couldn't find some packages at all: 

user@pc~/temp2/Downloads/trunk/build$ sudo apt-get install libhighgui
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package libhighgui

user@pc:~/temp2/Downloads/trunk/build$ sudo apt-get install opencv-dev
[sudo] password for user: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package opencv-dev

I also managed to find http://packages.ubuntu.com/precise/amd64/libopencv-highgui-dev and http://packages.debian.org/wheezy/libhighgui-dev , but again I didn't know how to install from those sites.

Basically, I have many gaps in my knowledge of installing these kind of packages, could someone help me out?