The file in question is:
And the missing line is:
“-DBUILD_opencv_objdetect=ON”, (or off?)
Without it, it is impossible to load classes such as CascadeClassifier.
Hope someone finds this useful or can fix it?