opencv

OpenCVインストール

$ cd /usr/loca/src
$ sudo wget http://downloads.sourceforge.net/opencvlibrary/opencv-1.0.0.tar.gz
$ tar zxvf opencv-1.0.0.tar.gz
// ソースを修正
$ vim cvaux/include/cvaux.h
1137 go // 文字化け解消
CvMemStorage* storage; /* storage for foreground_regions */
$ vim otherlibs/highgui/grfmt
335 go
bool isBinary = true;

後は普通にinstall
特にオプションもない

phpのextensionインストール

http://www.netflowers.co.jp/face_detect/face_detect-0.0.1.tar.gz

sudo phpize

./configure
make
make test
make install

php.iniの設定
extension_dir = "/usr/lib/php/extensions/no-debug-non-zts-20060613/"
extension=face_detect.so

ぱすはmake installの際に出ている