kylemcdonald / FaceTracker

Real time deformable face tracking in C++ with OpenCV 3.
MIT License
1k stars 360 forks source link

Running make on OSX gives error #28

Closed azaman13 closed 7 years ago

azaman13 commented 9 years ago

I installed open cv using brew. Then running make on FaceTracker gives me these. Any idea please?

g++ -MM -MT src/lib/IO.o -MF src/lib/IO.d -Wextra -Wall -pedantic-errors -arch x86_64 -O3 -fopenmp  -I/usr/local/include -Isrc/lib src/lib/IO.cc
g++ -Wextra -Wall -pedantic-errors -arch x86_64 -O3 -fopenmp  -I/usr/local/include -Isrc/lib -c -o src/lib/IO.o src/lib/IO.cc 
In file included from src/lib/IO.cc:40:
In file included from src/lib/IO.h:42:
In file included from /usr/local/include/opencv2/opencv.hpp:56:
/usr/local/include/opencv2/ml/ml.hpp:674:9: error: anonymous types declared in an anonymous union are an extension [-Werror,-Wnested-anon-types]
        struct
        ^
/usr/local/include/opencv2/ml/ml.hpp:961:18: warning: 'CvForestTree::train' hides overloaded virtual functions [-Woverloaded-virtual]
    virtual bool train( CvDTreeTrainData* trainData, const CvMat* _subsample_idx, CvRTrees* forest );
                 ^
/usr/local/include/opencv2/ml/ml.hpp:867:18: note: hidden overloaded virtual function 'CvDTree::train' declared here: different number of parameters (2 vs 3)
    virtual bool train( CvMLData* trainData, CvDTreeParams params=CvDTreeParams() );
                 ^
/usr/local/include/opencv2/ml/ml.hpp:877:26: note: hidden overloaded virtual function 'CvDTree::train' declared here: different number of parameters (8 vs 3)
    CV_WRAP virtual bool train( const cv::Mat& trainData, int tflag,
                         ^
/usr/local/include/opencv2/ml/ml.hpp:1149:18: warning: 'CvBoostTree::train' hides overloaded virtual functions [-Woverloaded-virtual]
    virtual bool train( CvDTreeTrainData* trainData,
                 ^
/usr/local/include/opencv2/ml/ml.hpp:867:18: note: hidden overloaded virtual function 'CvDTree::train' declared here: different number of parameters (2 vs 3)
    virtual bool train( CvMLData* trainData, CvDTreeParams params=CvDTreeParams() );
                 ^
/usr/local/include/opencv2/ml/ml.hpp:877:26: note: hidden overloaded virtual function 'CvDTree::train' declared here: different number of parameters (8 vs 3)
    CV_WRAP virtual bool train( const cv::Mat& trainData, int tflag,
                         ^
2 warnings and 1 error generated.
make: *** [src/lib/IO.o] Error 1
PatateCrue commented 8 years ago

Hello,

I have the same problem... Did you solved it?

Thanks

GTorreil commented 8 years ago

Same problem .. Following that thread 👍

kylemcdonald commented 7 years ago

Closing this as I can't reproduce.