Undefined reference to `cv::face::EigenFaceRecognizer::create(int, double)' collect2: error: ld returned 1 exit status

undefined reference to `cv::face::EigenFaceRecognizer::create(int, double)’ collect2: error: ld returned 1 exit status Makefile:164: recipe for target ‘qttest’ fai

It’s hard to guess with so few details, but maybe you forgot to link to opencv_face library.
Does adding -lopencv_face to link flags help ?

Add - lopencv_ How to add the face link? Opencv4.1.1 of my system does not have this

Need to add another installation package