You are not logged in.

#1 2012-10-29 12:53:16

ChojinDSL
Member
From: Germany
Registered: 2010-11-30
Posts: 64
Website

[SOLVED] Need help with installing php-facedetect extension.

Hi guys. I'm at my wits end with this. I've been trying to install the facedetect extension for PHP from : http://www.xarg.org/project/php-facedetect/

But to no avail. The instructions state that you unpack it, cd into the directory, an then run

phpize
./configure
make && make install

But no matter what I try, I always get this error:

checking /usr/local/include/opencv/cv.h usability... yes
checking /usr/local/include/opencv/cv.h presence... yes
checking for /usr/local/include/opencv/cv.h... yes
checking /usr/local/include/opencv/highgui.h usability... yes
checking /usr/local/include/opencv/highgui.h presence... yes
checking for /usr/local/include/opencv/highgui.h... yes
checking for cvLoad in -lopencv_objdetect... no
configure: error: wrong OpenCV version or OpenCV not found

I've tried everything I could think of. I made sure to install OpenCV version 2.3.1 as it says in the docs, I've tried compiling OpenCV from source from upstream. I always get the same result.

Unfortunately I'm not a programmer. I somehow get the feeling that it's a trivial issue, but something that I haven't been able to solve.
I've googled around, tried to get in touch with the developer who wrote it, posting in the respective git issues sections. I've tried setting up CentOS in Virtualbox, just to see if I could get it installed in a not so bleeding edge distro, but to no avail.

Could anyone lend a helping hand?

Last edited by ChojinDSL (2012-10-29 13:05:52)

Offline

#2 2012-10-29 13:07:21

ChojinDSL
Member
From: Germany
Registered: 2010-11-30
Posts: 64
Website

Re: [SOLVED] Need help with installing php-facedetect extension.

Ok, I've been trying to fix for months, but 16 days ago someone posted a fix in one of the git issue comments. Go figure

Basically, the error seems to be due to OpenCV not properly exporting its symbols, or something like that.

Anyways, before running configure you need to do the following:

export LIBS=/usr/lib/libopencv_*.so.*

Offline

Board footer

Powered by FluxBB