On 04/24/2012 05:42 PM, Kristjan Liiva wrote:
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?

Try apt-get install libcv-dev libhighgui-dev

The packages you find on packages.ubuntu.org should be the ones you can install with apt-get out of the box.  You should also be able to find them in the Ubuntu software center, but I've never used that.  You can also just use ccmake to turn off the simpleshape driver if you're not going to use it.

Simpleshape shouldn't be trying to build unless opencv is present on your system.  Before you do anything, do you have libcv-dev installed?  You should be able to check with the apt tools, or you can look and see if /usr/share/pkgconfig/opencv.pc exists.  If opencv.pc contains "-lhighgui" in the libs section then there could be an ubuntu packaging bug where it's allowing libcv-dev to be installed without libhighgui-dev, even though the .pc file in libcv-dev references libraries contained in libhighgui-dev.  It would explain why simpleshape is finding opencv and trying to build despite the fact that highgui.h is missing.

Rich