VLC Fails to Build with OpenCV 3.0.0
VLC fails to build with --enable-opencv with OpenCV 3.0.0 installed because CV_RGB & cvRectangle have been moved to opencv2/imgproc/imgproc_c.h (upstream: http://docs.opencv.org/3.0-rc1/df/d4e/group__imgproc__c.html). I've confirmed this failure with VLC 2.2.1 & VLC 2.1.5 on Gentoo.
Updating opencv_example.cpp with: #if (CV_MAJOR_VERSION >= 3) #define opencv2/imgproc/imgproc_c.h #endif fixes the issue.