I have project written in cmakelists.txt using opencv. And, I want to run this project in QT in ubuntu. But there is an error;
38 | #include <opencv2/xfeatures2d.hpp>
| ^~~~~~~~~~~Desktop/cmfd_framework/cmfd/execution.cxx:38: error: opencv2/xfeatures2d.hpp: No such file or directory`
But xfeatured2d exist. ALso nonfree modules are installed. And, If I run make in terminal xfeature2.cpp are found but in QT It is not working?
How can I fix the problem?
( Opencv-4.6.0 and Opencv_contrib-4.x are installed)
I checked BUILD_opencv_xfeatures2d in Cmake-gui for OPENCV also
Enabled OPENCV_ENABLE_NONFREE variable in Cmake-gui for OPENCV
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)