Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问编译过程中EIGEN库的sparsecore报错是什么原因呢,是跟opencv的版本有关吗 #7

Open
Lisiyuan555 opened this issue Mar 27, 2021 · 1 comment

Comments

@Lisiyuan555
Copy link

我的opencv版本是3.4.12,编译时部分报错如下:
/usr/include/eigen3/Eigen/src/SparseCore/SparseUtil.h:78:36: error: ‘Sparse’ was not declared in this scope
template struct eval<T,Sparse>
^~~~~~
/usr/include/eigen3/Eigen/src/SparseCore/SparseUtil.h:78:36: note: suggested alternative: ‘IsSparse’
template struct eval<T,Sparse>
^~~~~~
IsSparse
/usr/include/eigen3/Eigen/src/SparseCore/SparseUtil.h:78:42: error: template argument 2 is invalid
template struct eval<T,Sparse>
^
/usr/include/eigen3/Eigen/src/SparseCore/SparseUtil.h:111:49: error: ‘Sparse’ was not declared in this scope
template struct plain_matrix_type<T,Sparse>
^~~~~~
/usr/include/eigen3/Eigen/src/SparseCore/SparseUtil.h:111:49: note: suggested alternative: ‘IsSparse’
template struct plain_matrix_type<T,Sparse>
^~~~~~
IsSparse
/usr/include/eigen3/Eigen/src/SparseCore/SparseUtil.h:111:55: error: template argument 2 is invalid
template struct plain_matrix_type<T,Sparse>
^
/usr/include/eigen3/Eigen/src/SparseCore/SparseUtil.h:121:8: error: ‘plain_object_eval’ is not a class template
struct plain_object_eval<T,Sparse>
^~~~~~~~~~~~~~~~~
/usr/include/eigen3/Eigen/src/SparseCore/SparseUtil.h:121:28: error: ‘Sparse’ was not declared in this scope
struct plain_object_eval<T,Sparse>

@codingbadbad
Copy link

使用和vins mono相同的环境测试可行 OpenCV 3.3.1, Eigen 3.3.3 cere我测试的是1.14

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants