Incompatibility with OpenCV4 due to disparition of OpenCV enum values like...
C++ library for controlling Raspberry Pi Camera (with/without OpenCV)
Brought to you by:
ucoava
It seems that several enums values like CV_CAP_PROP_FRAME_WIDTH have disapeared in OpenCV 4.0.0, which makes raspicam fail to compile with openCV.
As those defines seem to be used only for switch case statements in the raspicam code (and not passed to any openCV functions), a quick fix is to create your own enum with the same names in a new .h file, and include it everyvere you get thoses errors. This solution worked for me (at least for the raspicam_cv_still_test program, I haven't tested anything else yet.
Note that it might be better to change the names to avoid confusion and conflicts with the ones from openCV 3
Another solution would be detecting the opencv version being used and decide to use the older CV_CAP_PROP_FRAME_WIDTH or the newer cv.CAP_PROP_FRAME_WIDTH from videoio.h