Problem compiling openCVExample | getPixels()

Hi there,

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

1 Like

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:

https://github.com/openframeworks/openFrameworks/commit/290a455709a65aee7909e0aca2054fabf54cbc0a?diff=unified

ofxAVFVideoPlayer issue below (as of yet still haven’t been able to fix)

https://github.com/kronick/ofxAVFVideoPlayer/issues/5