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 version #2

Open
Liminglyq opened this issue Aug 21, 2017 · 9 comments
Open

Eigen version #2

Liminglyq opened this issue Aug 21, 2017 · 9 comments

Comments

@Liminglyq
Copy link

can you tell the Eigen version you used?
different Eigen version cause different compiling problems

@ydt9000511
Copy link

I get the same question. and I can`t successfully execute ./build.sh due to the Eigen3 problems. Have you successfully found out the correct Eigen version? @Liminglyq
Many thanks for your help!

@vardhan26
Copy link

I am having a similar problem:
In file included from /usr/local/include/eigen3/Eigen/CholmodSupport:39:0,
from /home/hotshot/pl-slam/include/mapHandler.h:27,
from /home/hotshot/pl-slam/src/mapHandler.cpp:22:
/usr/local/include/eigen3/Eigen/src/CholmodSupport/CholmodSupport.h: In function ‘cholmod_sparse Eigen::viewAsCholmod(Eigen::SparseMatrix<_Scalar, _Options, _Index>&)’:
/usr/local/include/eigen3/Eigen/src/CholmodSupport/CholmodSupport.h:81:37: error: ‘UF_long’ was not declared in this scope
else if (internal::is_same<_Index,UF_long>::value)
^
/usr/local/include/eigen3/Eigen/src/CholmodSupport/CholmodSupport.h:81:44: error: template argument 2 is invalid
else if (internal::is_same<_Index,UF_long>::value)
^
In file included from /usr/local/include/eigen3/Eigen/Sparse:19:0,
from /home/hotshot/pl-slam/include/mapHandler.h:26,
from /home/hotshot/pl-slam/include/slamScene.h:43,
from /home/hotshot/pl-slam/src/slamScene.cpp:22:
/usr/local/include/eigen3/Eigen/SparseCore:32:8: error: redefinition of ‘struct Eigen::Sparse’
struct Sparse {};
^
In file included from /usr/include/eigen3/Eigen/Core:294:0,
from /usr/include/eigen3/Eigen/Dense:1,
from /usr/include/mrpt/base/include/mrpt/utils/types_math.h:31,
from /usr/include/mrpt/base/include/mrpt/math/CMatrixFixedNumeric.h:14,
from /usr/include/mrpt/base/include/mrpt/poses/CPoseOrPoint.h:12,
from /usr/include/mrpt/base/include/mrpt/poses/CPose.h:12,
from /usr/include/mrpt/base/include/mrpt/poses/CPose3D.h:12,
from /usr/include/mrpt/opengl/include/mrpt/opengl/CRenderizable.h:15,
from /usr/include/mrpt/opengl/include/mrpt/opengl.h:15,
from /home/hotshot/pl-slam/include/slamScene.h:25,
from /home/hotshot/pl-slam/src/slamScene.cpp:22:
/usr/include/eigen3/Eigen/src/Core/util/Constants.h:493:8: error: previous definition of ‘struct Eigen::Sparse’
struct Sparse {};
^
In file included from /usr/local/include/eigen3/Eigen/SparseCore:40:0,
from /usr/local/include/eigen3/Eigen/Sparse:19,
from /home/hotshot/pl-slam/include/mapHandler.h:26,
from /home/hotshot/pl-slam/include/slamScene.h:43,
from /home/hotshot/pl-slam/src/slamScene.cpp:22:
/usr/local/include/eigen3/Eigen/src/SparseCore/SparseMatrix.h:64:20: error: expected nested-name-specifier before ‘nested’
typedef typename nested::type MatrixTypeNested;
^
/usr/local/include/eigen3/Eigen/src/SparseCore/SparseMatrix.h:64:20: error: expected ‘;’ at end of member declaration
/usr/local/include/eigen3/Eigen/src/SparseCore/SparseMatrix.h:64:26: error: expected unqualified-id before ‘<’ token
typedef typename nested::type MatrixTypeNested;
^
/usr/local/include/eigen3/Eigen/src/SparseCore/SparseMatrix.h:65:37: error: ‘MatrixTypeNested’ was not declared in this scope
typedef typename remove_reference::type _MatrixTypeNested;
^
/usr/local/include/eigen3/Eigen/src/SparseCore/SparseMatrix.h:65:53: error: template argument 1 is invalid
typedef typename remove_reference::type _MatrixTypeNested;
^
/usr/local/include/eigen3/Eigen/src/SparseCore/SparseMatrix.h:78:21: error: ‘_MatrixTypeNested’ is not a class, namespace, or enumeration
CoeffReadCost = _MatrixTypeNested::CoeffReadCost*10
^

@wangbing8895
Copy link

I also met this problem!can you tell us your Eigen version? @rubengooj

@ydt9000511
Copy link

ydt9000511 commented Dec 6, 2017 via email

@ydt9000511
Copy link

ydt9000511 commented Dec 6, 2017 via email

@ydt9000511
Copy link

ydt9000511 commented Dec 6, 2017 via email

@ydt9000511
Copy link

ydt9000511 commented Dec 6, 2017 via email

@fengchen122959
Copy link

I am having a similar problem:
In file included from /usr/local/include/eigen3/Eigen/CholmodSupport:39:0,
from /home/hotshot/pl-slam/include/mapHandler.h:27,
from /home/hotshot/pl-slam/src/mapHandler.cpp:22:
/usr/local/include/eigen3/Eigen/src/CholmodSupport/CholmodSupport.h: In function ‘cholmod_sparse Eigen::viewAsCholmod(Eigen::SparseMatrix<_Scalar, _Options, _Index>&)’:
/usr/local/include/eigen3/Eigen/src/CholmodSupport/CholmodSupport.h:81:37: error: ‘UF_long’ was not declared in this scope
else if (internal::is_same<_Index,UF_long>::value)
^
/usr/local/include/eigen3/Eigen/src/CholmodSupport/CholmodSupport.h:81:44: error: template argument 2 is invalid
else if (internal::is_same<_Index,UF_long>::value)
^
In file included from /usr/local/include/eigen3/Eigen/Sparse:19:0,
from /home/hotshot/pl-slam/include/mapHandler.h:26,
from /home/hotshot/pl-slam/include/slamScene.h:43,
from /home/hotshot/pl-slam/src/slamScene.cpp:22:
/usr/local/include/eigen3/Eigen/SparseCore:32:8: error: redefinition of ‘struct Eigen::Sparse’
struct Sparse {};
^
In file included from /usr/include/eigen3/Eigen/Core:294:0,
from /usr/include/eigen3/Eigen/Dense:1,
from /usr/include/mrpt/base/include/mrpt/utils/types_math.h:31,
from /usr/include/mrpt/base/include/mrpt/math/CMatrixFixedNumeric.h:14,
from /usr/include/mrpt/base/include/mrpt/poses/CPoseOrPoint.h:12,
from /usr/include/mrpt/base/include/mrpt/poses/CPose.h:12,
from /usr/include/mrpt/base/include/mrpt/poses/CPose3D.h:12,
from /usr/include/mrpt/opengl/include/mrpt/opengl/CRenderizable.h:15,
from /usr/include/mrpt/opengl/include/mrpt/opengl.h:15,
from /home/hotshot/pl-slam/include/slamScene.h:25,
from /home/hotshot/pl-slam/src/slamScene.cpp:22:
/usr/include/eigen3/Eigen/src/Core/util/Constants.h:493:8: error: previous definition of ‘struct Eigen::Sparse’
struct Sparse {};
^
In file included from /usr/local/include/eigen3/Eigen/SparseCore:40:0,
from /usr/local/include/eigen3/Eigen/Sparse:19,
from /home/hotshot/pl-slam/include/mapHandler.h:26,
from /home/hotshot/pl-slam/include/slamScene.h:43,
from /home/hotshot/pl-slam/src/slamScene.cpp:22:
/usr/local/include/eigen3/Eigen/src/SparseCore/SparseMatrix.h:64:20: error: expected nested-name-specifier before ‘nested’
typedef typename nested::type MatrixTypeNested;
^
/usr/local/include/eigen3/Eigen/src/SparseCore/SparseMatrix.h:64:20: error: expected ‘;’ at end of member declaration
/usr/local/include/eigen3/Eigen/src/SparseCore/SparseMatrix.h:64:26: error: expected unqualified-id before ‘<’ token
typedef typename nested::type MatrixTypeNested;
^
/usr/local/include/eigen3/Eigen/src/SparseCore/SparseMatrix.h:65:37: error: ‘MatrixTypeNested’ was not declared in this scope
typedef typename remove_reference::type _MatrixTypeNested;
^
/usr/local/include/eigen3/Eigen/src/SparseCore/SparseMatrix.h:65:53: error: template argument 1 is invalid
typedef typename remove_reference::type _MatrixTypeNested;
^
/usr/local/include/eigen3/Eigen/src/SparseCore/SparseMatrix.h:78:21: error: ‘_MatrixTypeNested’ is not a class, namespace, or enumeration
CoeffReadCost = _MatrixTypeNested::CoeffReadCost*10
^

have you solved teh question?
I have the same error while make pl-slam
,if you have solve it ,could you reply to me ? thank you

@fengchen122959
Copy link

I get the same question. and I can`t successfully execute ./build.sh due to the Eigen3 problems. Have you successfully found out the correct Eigen version? @Liminglyq
Many thanks for your help!
兄弟你解决了么,我也有一样的问题

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

5 participants