[100%]Built target gen_opencv_python2 then stuck
Building CXX object modules/python2/CMakeFiles/opencv_python2.dir/__/src2 /cv2.cpp.o
c++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-6/README.Bugs> for instructions.
modules/python2/CMakeFiles/opencv_python2.dir/build.make:324: recipe for target 'modules/python2/CMakeFiles/opencv_python2.dir/__/src2/cv2.cpp.o' failed
make[2]: *** [modules/python2/CMakeFiles/opencv_python2.dir/__/src2/cv2.cpp.o] E rror 4
CMakeFiles/Makefile2:14946: recipe for target 'modules/python2/CMakeFiles/opencv _python2.dir/all' failed
make[1]: *** [modules/python2/CMakeFiles/opencv_python2.dir/all] Error 2
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2
you're either running out of memory, or diskspace
how can i resolve this problem?thanks
if it's memory, try to run make -j1 (only a single thread)