opencv-4.1.2-fix-contribxfeatures2d-include.patch 1.1 KB

123456789101112131415161718192021222324252627
  1. diff --git a/opencv_contrib-4.1.2/modules/sfm/src/simple_pipeline.cpp b/opencv_contrib-4.1.2/modules/sfm/src/simple_pipeline.cpp
  2. index a081610..210414c 100644
  3. --- a/modules/sfm/src/simple_pipeline.cpp
  4. +++ b/modules/sfm/src/simple_pipeline.cpp
  5. @@ -41,7 +41,7 @@
  6. #include <Eigen/Core>
  7. #include <opencv2/core/eigen.hpp>
  8. -#include <opencv2/xfeatures2d.hpp>
  9. +#include <../../xfeatures2d/include/opencv2/xfeatures2d.hpp>
  10. #include "libmv_capi.h"
  11. diff --git a/opencv_contrib-4.1.2/modules/xfeatures2d/include/opencv2/xfeatures2d.hpp b/opencv_contrib-4.1.2/modules/xfeatures2d/include/opencv2/xfeatures2d.hpp
  12. index 3ec7862..cf00dfb 100644
  13. --- a/modules/xfeatures2d/include/opencv2/xfeatures2d.hpp
  14. +++ b/modules/xfeatures2d/include/opencv2/xfeatures2d.hpp
  15. @@ -40,7 +40,7 @@ the use of this software, even if advised of the possibility of such damage.
  16. #define __OPENCV_XFEATURES2D_HPP__
  17. #include "opencv2/features2d.hpp"
  18. -#include "opencv2/xfeatures2d/nonfree.hpp"
  19. +#include "../../xfeatures2d/include/opencv2/xfeatures2d/nonfree.hpp"
  20. /** @defgroup xfeatures2d Extra 2D Features Framework
  21. @{