Open zw918 opened 3 years ago
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
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:
CMake Error at cmake/OpenCVDetectCXXCompiler.cmake Solution: Open opencv2.4.11/cmake/OpenCVDetectCXXCompiler.cmake and modify the "-dumpversion" line 67 to "-dumpfullversion".
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.
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