[opencv] building x-platform video-stuff..

i’ve been working on some cross-platform video thingies, the natural choice of lib was opencv. since i had some trouble building the latest stable version on os x 10.6.8 i thought i’d share how i solved it.. right now im not using tbb even tho im on an intel machine (the mba).
first off, if you don’t have an svn-client i’d recommend installing Martin Otts pkg. also, i got some errors with os xs libjpeg, so i downloaded a binary package of it bundled with libpng from Ethan Thira-Thompsons OS X ports site, it was listed as an unofficial binary package on the official libpng site.
To build opencv you need cmake, universal binaries are available from the link. When everything is downloaded and installed it’s very straight forward,

svn co https://code.ros.org/svn/opencv/trunk/opencv
cd opencv
sudo cmake -G "Unix Makefiles" .
sudo make -j8
sudo make install

note that it’s quite a big project, the checkout is around ~50mb.

// sluggo