thortex / rpi3-opencv

OpenCV for Raspberry Pi 3
18 stars 6 forks source link

OpenCV build failed with v4.0.0-alpha #3

Closed thortex closed 6 years ago

thortex commented 6 years ago
[ 98%] Generate files for Python bindings and documentation
[ 98%] Built target gen_opencv_python_source
Scanning dependencies of target opencv_python2
[ 98%] 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.
modules/python2/CMakeFiles/opencv_python2.dir/build.make:62: recipe for target 'modules/python2/CMakeFilesopencv_python2.dir/__/src2/cv2.cpp.o' 
make[2]: *** [modules/python2/CMakeFiles/opencv_python2.dir/__/src2/cv2.cpp.o] Error 4
CMakeFiles/Makefile2:5630: recipe for target 'modules/python2/CMakeFiles/opencv_python2.dir/all' 
make[1]: *** [modules/python2/CMakeFiles/opencv_python2.dir/all] Error 2
Makefile:160: recipe for target 'all' 
make: *** [all] Error 2
thortex commented 6 years ago

Caused by out-of-memory.

e.g. https://github.com/samjabrahams/tensorflow-on-raspberry-pi/blob/master/GUIDE.md#2-install-a-memory-drive-as-swap-for-compiling