Jun 20, 2009

Build OpenCV under Mac OS X

Install OpenCV on Mac OS X
  1. Install Xcode on Mac OS X computer.
  2. Download OpenCV source package (for Linux) from SourceForge.
  3. Unpack the source package
  4. Generate Makefile.in/am
    autoreconf -i --force
  5. Configure
    ./configure --prefix=/usr/local --with-python --with-swig
  6. Build and test building result
    make check
  7. Install
    make install
  8. Building applications
    g++ -o capcam main.cc -I /usr/local/include/opencv -L/usr/local/lib -lcxcore -lcv -lcvaux -lhighgui -lml
Other sources of information:

No comments: