Thursday, August 11, 2011

OpenCV 2.3.0 on OSX (10.6.8 64bit)

The notes from here are generally correct. My additions are:
  • use Fink to get additional libraries if needed
  • OpenEXR library is cool, but it's not necessary. I had to disable it because of some typedef redeclaration which conflicted with QT.framework (QT = quicktime)
  • QTKit comes with XCode and should not be downloaded separately
  • JPEG2000 support is called libjasper. Also had to disable it because Fink was compiling 386 version instead of 64bit one
  • don't use Carbon, it's outdated when Cocoa is around. It's needed for highgui
  • when running configuration initially run ccmake to setup the prefix to "/sw". Didn't find the cli parameter for it.
  • also did this at some point
sudo fink install pkgconfig libjpeg libtiff libpng3 atk1 gtk+2-dev glib2-dev
No idea if it was actually needed, but it was in some net post.
  • Final make command is:
cmake -G "Unix Makefiles" -D BUILD_TESTS=OFF -D WITH_CARBON=OFF -D WITH_OPENEXR=OFF -D WITH_JASPER=OFF .
make -j4
sudo make install

Unlike linux version, this OpenCV is linked by doing -lopencv_core -lopencv_*. Don't know if that came with the new version, but it's going to mess with my server builds.

Labels:

0 Comments:

Post a Comment

<< Home