DynaSLAM icon indicating copy to clipboard operation
DynaSLAM copied to clipboard

Bus error, core dumped

Open zw918 opened this issue 3 years ago • 2 comments

I run the Check.py successfully and can run the code without [PATH TO MASK] [PATH TO OUTPUT] parameters.But it showed Bus error, core dumped when I run the command

zw918 avatar Aug 21 '21 10:08 zw918

I run the Check.py successfully and can run the code without [PATH TO MASK] [PATH TO OUTPUT] parameters.But it showed Bus error, core dumped when I run the command

me too (i use opencv3.2, because i can't install opencv2.4.11 on ubuntu18), there is a docker version in bilibili, you can try it. https://www.bilibili.com/video/av77344939/?p=3&spm_id_from=pageDriver

Hello-Water avatar Aug 24 '21 07:08 Hello-Water

I used opencv 2.4.11 to solve the problem. When compiling and installing opencv 2.4.11 on ubuntu 18.04, pay attention to the following issues:

  1. CMake Error at cmake/OpenCVDetectCXXCompiler.cmake Solution: Open opencv2.4.11/cmake/OpenCVDetectCXXCompiler.cmake and modify the "-dumpversion" line 67 to "-dumpfullversion".

  2. ffmpeg reports an error Solution: We don't need it for the time being, add the parameter -D WITH_FFMPEG=OFF when executing cmake.

3.stdlib.h error usr/include/c++/6/cstdlib:75:25: fatal error: stdlib.h: no such file or directory Solution: add the parameter -D ENABLE_PRECOMPILED_HEADERS=OFF when executing cmake.

4.flags.make error The solution is to find and open the opencv-2.4.11/build/modules/contrib/CMakeFiles/opencv_contrib.dir/flags.make file and delete the "-Werror=address".

At this point, opencv2.4.11 was compiled successfully.

robotics404 avatar Oct 26 '21 09:10 robotics404