I am trying to compile opencvExample from examples/addons and I have got several errors at ofxCvImage.h :
*/Users/me/Documents/OpenFrameworks/addons/ofxOpenCv/src/ofxCvImage.h:84:24: Virtual function ‘getPixels’ has a different return type (‘ofPixels &’ (aka ‘ofPixels_ &’)) than the function it overrides (which has return type 'unsigned char ')
Can somebody help me? Please!
I couldn’t find any solution googling.
Are you using the master branch from github or the latest release? (many of the return types like this have changed in the master branch).
Cheers, I have replaced ofxOpenCV library with latest release pack and its working
Found my way here trying to figure out a similar issue with
ofxAVFVideoPlayer. Thought I’d leave a breadcrumb for anyone that does the same, here’s the commit where Arturo makes the change mentioned above:
ofxAVFVideoPlayer issue below (as of yet still haven’t been able to fix)