Thank you for your answer, berak. Solved it. Seems like the interface name is misspelled in the tutorial. Instead of CvViewFrameListener2 (which really doesn't exist) I used CvCameraViewListener2 and everything works like a charm.