Installation instructions for P/S on Mac OS X

From The Player Project

Revision as of 14:43, 17 October 2006 by Stemann (Talk)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This is a description of how I installed Player and Stage on Mac OS X 10.4 Tiger - and in addition the central library OpenCV.

The following assumes that Mac OS X 10.4 Tiger (10.4.7), Fink 0.8.1 and Xcode 2.3 are installed on a PowerPC-based computer.

Fink is assumed installed in:


OpenCV, Player and Stage will be installed in a local directory (as explained in the local installation tutorial:



This section describes the installation of OpenCV version 0.9.9.

OpenCV has recently begun to include a Mac OS X port - making it much easier to install, as there are fewer dependencies.

To install simply follow these steps:

  • Fetch and install the packages libjpeg, libpng3 and libtiff via Fink (and let Fink handle dependencies such as pkg-config).
  • Fetch OpenCV version 0.9.9.
  • Decompress and unpack into some folder.
  • Configure OpenCV for installation - make sure, at the end, that Mac OS X (Carbon) and Quicktime support will be included:
./configure --prefix=/Users/jesper/Unix/usr \
CPPFLAGS="-I/sw/include" LDFLAGS="-L/sw/lib" CXXFLAGS="-mcpu=7450 -mtune=7450"

CPPFLAGS and LDFLAGS serve to tell the configure script where to find libjpeg etc. - i.e. Fink. The above inclusion of CXXFLAGS indicates that OpenCV is to be optimized for the processortype (PowerPC) 7450.

  • Type
make install


Before one are able to compile programs depending on OpenCV, one has to tell pkg-config where it can find information on OpenCV by including in one's .bashrc the line:

export PKG_CONFIG_PATH=/Users/jesper/Unix/usr/lib/pkgconfig

As explained in the local installation tutorial.

You can test that OpenCV is running as expected by following the quick start procedure mentioned on Christoph Seibert's blog.

Personal tools