Open dkoguciuk opened 7 years ago
It seems like to be an Eigen bug (?). After installation of Eigen 3.2.10 there is no core dumped anymore, but for every version above (I've checked 3.3.0, 3.3.1, 3.3.2 and most recent 3.3.3) the error is present. I am not patient enough to track the problem, just switching to 3.2.10.
Installing eigen 3.2.10 from here and pointing cmake at it worked for me as well.
I'm using Eigen 3.3.4, Ubuntu 18.04, and run into the same issue.
Modify camodocal/cmake/BuildConfigGCC.cmake
https://github.com/hengli/camodocal/blob/b399fa9ee81b5182e59f717e67a8ddd6503cdcb4/cmake/BuildConfigGCC.cmake#L45
else(APPLE)
add_compiler_flags(" -g -ggdb -D_DEBUG -march=native" Debug CACHE)
add_compiler_flags(" -DNDEBUG -march=native" ReleaseAll CACHE)
add_compiler_flags("-O2 -march=native" Release CACHE)
add_compiler_flags("-O2 -g -ggdb -march=native" RelWithDebInfo CACHE)
add_compiler_flags("-Os -march=native" MinSizeRel CACHE)
to
else(APPLE)
add_compiler_flags(" -g -ggdb -D_DEBUG" Debug CACHE)
add_compiler_flags(" -DNDEBUG" ReleaseAll CACHE)
add_compiler_flags("-O2 " Release CACHE)
add_compiler_flags("-O2 -g -ggdb " RelWithDebInfo CACHE)
add_compiler_flags("-Os " MinSizeRel CACHE)
Remove the -march=native
flag, solved this problem.
Hello,
I wanted to use camodocal and I've started with examples provided with your package. Something went wrong on my PC so I've set up a clean virtual machine with Ubuntu 16.04 and also faced the problem below. I know it's something with EIGEN alignment, but before I'll dive into the code I thought maybe someone is already aware of it?
For sake of completeness the whole verbose output of the program:
And gdb backtrace:
The instructions I've used to set up the virtual machine: