OpenCV should be compiled using pkg-config options.