Skip to content

Commit

Permalink
Add OpenCV 3 and Eigen 3.3 support
Browse files Browse the repository at this point in the history
  • Loading branch information
raulmur committed Jan 13, 2017
1 parent 46cde90 commit 9f8d067
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,14 @@ endif()

LIST(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake_modules)

find_package(OpenCV 2.4.3 REQUIRED)
find_package(OpenCV 2.4.3 QUIET)
if(NOT OpenCV_FOUND)
find_package(OpenCV 3.0 QUIET)
if(NOT OpenCV_FOUND)
message(FATAL_ERROR "OpenCV > 2.4.3 not found.")
endif()
endif()

find_package(Eigen3 3.1.0 REQUIRED)
find_package(Pangolin REQUIRED)

Expand Down
2 changes: 1 addition & 1 deletion Thirdparty/g2o/g2o/solvers/linear_solver_eigen.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class LinearSolverEigen: public LinearSolver<MatrixType>
public:
typedef Eigen::SparseMatrix<double, Eigen::ColMajor> SparseMatrix;
typedef Eigen::Triplet<double> Triplet;
typedef Eigen::PermutationMatrix<Eigen::Dynamic, Eigen::Dynamic, SparseMatrix::Index> PermutationMatrix;
typedef Eigen::PermutationMatrix<Eigen::Dynamic, Eigen::Dynamic> PermutationMatrix;
/**
* \brief Sub-classing Eigen's SimplicialLDLT to perform ordering with a given ordering
*/
Expand Down

0 comments on commit 9f8d067

Please sign in to comment.