ofxFaceRecognizer example project compiling problem

I’m running the example project (from the ofxFaceRecognizer addon folder) in the of_v0.9.8_osx_release (downloaded from the of website) in xcode (v. 9.1) with opencv (v. 3.4.0 ) installed on macOS High Sierra and getting the following compiling errors:


/Applications/of_v0.9.8_osx_release/addons/ofxOpenCV2461/src/ofxCvImage.h:82:29: Virtual function 'getPixels' has a different return type ('unsigned char *') than the function it overrides (which has return type 'ofPixels_<unsigned char> &')

From code:

virtual unsigned char* getPixels();


/Applications/of_v0.9.8_osx_release/addons/ofxOpenCV2461/src/ofxCvContourFinder.h:58:29: Field type 'ofxCvGrayscaleImage' is an abstract class

From code:


    int  _width;
    int  _height;
    ofxCvGrayscaleImage     inputCopy;
    CvMemStorage*           contour_storage;
    CvMemStorage*           storage;
    CvMoments*              myMoments;
    vector<CvSeq*>          cvSeqBlobs;  //these will become blobs
    ofPoint  anchor;
    bool  bAnchorIsPct;      

    virtual void reset();


/Applications/of_v0.9.8_osx_release/addons/ofxOpenCV2461/src/ofxCvHaarFinder.h:51:22: Field type 'ofxCvGrayscaleImage' is an abstract class

From code:

	CvHaarClassifierCascade* cascade;
	string haarFile;
	ofxCvGrayscaleImage img;
	float scaleHaar;
	unsigned neighbors;

Issue also logged on the ofxopencv2461 github repository, see: https://github.com/pkmital/ofxOpenCV2461/issues/1

Issue also logged on the openframeworks github repository (closed), see: https://github.com/openframeworks/openFrameworks/issues/5850

Please advise

Did you ever figure this out?

I’m not completely sure, cause it was long ago and I ended up switching to doing a javascript application for that project. But, I think I switched to using ofxFaceTracker to solve the problem.

I just updated the addon