To have compile working with latest OpenCV one must change acx_opencv.m4 to: - remove _legacy_ and _contrib_ libraries - add _videoio_ library