diff --git a/CMakeLists.txt b/CMakeLists.txt index 08a8af468e..99b45ae7a5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,6 @@ cmake_minimum_required(VERSION 2.8) project(ORB_SLAM2) - +set(CMAKE_CXX_STANDARD 14) IF(NOT CMAKE_BUILD_TYPE) SET(CMAKE_BUILD_TYPE Release) ENDIF() @@ -36,7 +36,7 @@ if(NOT OpenCV_FOUND) endif() endif() -find_package(Eigen3 3.1.0 REQUIRED) +find_package(Eigen3 3.1.0 REQUIRED NO_MODULE) find_package(Pangolin REQUIRED) include_directories( diff --git a/Examples/Monocular/mono_euroc.cc b/Examples/Monocular/mono_euroc.cc index 4bcb90f170..d15c24485b 100644 --- a/Examples/Monocular/mono_euroc.cc +++ b/Examples/Monocular/mono_euroc.cc @@ -23,7 +23,7 @@ #include #include #include - +#include #include #include diff --git a/Examples/Monocular/mono_kitti.cc b/Examples/Monocular/mono_kitti.cc index f2f7b3ebfd..b33211aa15 100644 --- a/Examples/Monocular/mono_kitti.cc +++ b/Examples/Monocular/mono_kitti.cc @@ -24,7 +24,7 @@ #include #include #include - +#include #include #include"System.h" diff --git a/Examples/Monocular/mono_tum.cc b/Examples/Monocular/mono_tum.cc index 09a2afc4b7..04c08e01e4 100644 --- a/Examples/Monocular/mono_tum.cc +++ b/Examples/Monocular/mono_tum.cc @@ -23,7 +23,7 @@ #include #include #include - +#include #include #include diff --git a/Examples/RGB-D/rgbd_tum.cc b/Examples/RGB-D/rgbd_tum.cc index 001199d1aa..c6072cb157 100644 --- a/Examples/RGB-D/rgbd_tum.cc +++ b/Examples/RGB-D/rgbd_tum.cc @@ -23,7 +23,7 @@ #include #include #include - +#include #include #include diff --git a/Examples/Stereo/stereo_euroc.cc b/Examples/Stereo/stereo_euroc.cc index 6bc09c50be..2b0eb6c637 100644 --- a/Examples/Stereo/stereo_euroc.cc +++ b/Examples/Stereo/stereo_euroc.cc @@ -24,7 +24,7 @@ #include #include #include - +#include #include #include diff --git a/Examples/Stereo/stereo_kitti.cc b/Examples/Stereo/stereo_kitti.cc index cb8bc4096e..a475810a92 100644 --- a/Examples/Stereo/stereo_kitti.cc +++ b/Examples/Stereo/stereo_kitti.cc @@ -24,7 +24,7 @@ #include #include #include - +#include #include #include diff --git a/src/LocalMapping.cc b/src/LocalMapping.cc index 6c87a6e55a..64038fd541 100644 --- a/src/LocalMapping.cc +++ b/src/LocalMapping.cc @@ -22,7 +22,7 @@ #include "LoopClosing.h" #include "ORBmatcher.h" #include "Optimizer.h" - +#include #include namespace ORB_SLAM2 diff --git a/src/LoopClosing.cc b/src/LoopClosing.cc index 5e317dd420..edd8d6f2b9 100644 --- a/src/LoopClosing.cc +++ b/src/LoopClosing.cc @@ -30,7 +30,7 @@ #include #include - +#include namespace ORB_SLAM2 { diff --git a/src/System.cc b/src/System.cc index 8df4157095..6144790f28 100644 --- a/src/System.cc +++ b/src/System.cc @@ -25,7 +25,7 @@ #include #include #include - +#include namespace ORB_SLAM2 { diff --git a/src/Tracking.cc b/src/Tracking.cc index 2273b2ce48..45359fe5d5 100644 --- a/src/Tracking.cc +++ b/src/Tracking.cc @@ -36,7 +36,7 @@ #include #include - +#include using namespace std; diff --git a/src/Viewer.cc b/src/Viewer.cc index dec3204f53..131a1ad724 100644 --- a/src/Viewer.cc +++ b/src/Viewer.cc @@ -22,7 +22,7 @@ #include #include - +#include namespace ORB_SLAM2 {