I haven’t tested OpenCV with Debian. I’d recommend you to reply to the original creator of the Debian thread. He might be able to give you a better insight of his work in case he has tried and succeeded in installing the OpenCV with Debian.
I am facing same kind of error right now. Please give me solution for this