Last active
November 19, 2023 02:19
-
-
Save matlabbe/ab42b8ea5d5902ffc6177539b98d9d51 to your computer and use it in GitHub Desktop.
rtabmap compilation fix with opencv 3.1.0
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/CMakeLists.txt b/CMakeLists.txt | |
index 9f2bfd83..65b03eef 100644 | |
--- a/CMakeLists.txt | |
+++ b/CMakeLists.txt | |
@@ -228,7 +228,7 @@ ENDIF() | |
set(RTABMAP_QT_VERSION AUTO CACHE STRING "Force a specific Qt version.") | |
set_property(CACHE RTABMAP_QT_VERSION PROPERTY STRINGS AUTO 4 5 6) | |
-FIND_PACKAGE(OpenCV REQUIRED QUIET COMPONENTS core calib3d imgproc highgui stitching photo video videoio OPTIONAL_COMPONENTS aruco xfeatures2d nonfree gpu cudafeatures2d) | |
+FIND_PACKAGE(OpenCV QUIET COMPONENTS core calib3d imgproc highgui stitching photo video videoio OPTIONAL_COMPONENTS aruco xfeatures2d nonfree gpu cudafeatures2d) | |
IF(WITH_QT) | |
FIND_PACKAGE(PCL 1.7 REQUIRED QUIET COMPONENTS common io kdtree search surface filters registration sample_consensus segmentation visualization) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment