Due to do AR need nonfree, so add install opencv_contrib3. 3.0, but the opencv compilation is not successful, excuse me somebody know how to solve?
The mkdir build
CD build
Cmake - DCMAKE_INSTALL_PREFIX=/usr/local/include/opencv3.3.0 - DCMAKE_BUILD_TYPE="Release" - DOPENCV_EXTRA_MODULES_PATH=~/slambook/216/opencv_contrib - 3.3.0/modules..
To the above instructions could cmake success, make in 18% error:
[18%] Building CXX object modules/core/CMakeFiles/opencv_perf_core dir/perf/cuda/perf_gpumat CPP. O
[18%] Building CXX object modules/core/CMakeFiles/opencv_perf_core dir/perf/opencl/perf_arithm CPP. O
C + + : internal compiler error: has killed (program cc1plus)
Both Please submit a full bug report,
With preprocessed source if appropriate.
See & lt; file:///usr/share/doc/gcc-7/README.Bugs> For instructions.
Modules/core/CMakeFiles/opencv_perf_core. Dir/build make: 86: a recipe for target 'modules/core/CMakeFiles/opencv_perf_core dir/perf/opencl/perf_arithm CPP. O' failed
Make [2], [* * * modules/core/CMakeFiles/opencv_perf_core dir/perf/opencl/perf_arithm CPP. O] Error 4
CMakeFiles/Makefile2:2251: the recipe for target 'modules/core/CMakeFiles/opencv_perf_core dir/all' failed
Make [1], [* * * modules/core/CMakeFiles/opencv_perf_core dir/all] Error 2
The Makefile: 162: the recipe for target 'all' failed
Make: * * * [all] Error 2
CodePudding user response:
In order to solve in order to solve to delete the original installation fileCodePudding user response:
May I ask which file deleteCodePudding user response: