Couldnt google it... OpenCV version 4.5.1 when calling
Ptr<cv::xfeatures2d::SURF> detector = cv::xfeatures2d::SURF::create();
app crash. Others detectors ORB, FAST, SIFT are working properly. Where can be the issue? I found some old topic about this solved by calling initModule_nonfree(), but it is not included in version 4.5,1?

Problem solved by rebulding with:
OPENCV_ENABLE_NONFREE = checked