OpenCV-for-PHP
OpenCV-for-PHP copied to clipboard
Error during make test of opencv.so
I've managed to install it once, on our internal test server. But for some reason I can't get it to install on our production server. I have no idea why. It compiles without error, but make test throws the following error:
/usr/bin/php: symbol lookup error: /usr/src/Builds/OpenCV-for-PHP/modules/opencv.so: undefined symbol: cvSetErrMode
Any ideas what might cause this?
These functions are deprecated in OpenCV 2.x - I'd have to look at the code to be certain but it looks like you'll need to use an older version of open cv and open a ticket for updating the extension to use new error handling for the 2.x versions - they might have at least stubs available if you define a macro - haven't checked the code
Yeah seems that way. I spent a few hours trying to track down what the issue is. I'm running ArchLinux which is quite bleeding edge. I think the current OpenCV version in the repos is 2.4.2. Had to downgrade OpenCV all the way back to 2.3.1. This in itself wouldn't bee so much of a problem, but of course, as with any media libs, this chain reacts a shitstorm of downgrading image, ffmpeg, x264 libs, etc. until you get to a point where nothing complains anymore. Ahh, good old dependancy hell. ;-)
Anyways thanks for the prompt response.