docker-python3-opencv
docker-python3-opencv copied to clipboard
I cannot build it successfully
` Scanning dependencies of target gen_opencv_python_source [ 98%] Generate files for Python bindings and documentation Note: Class Feature2D has more than 1 base class (not supported by Python C extensions) Bases: cv::Algorithm, cv::class, cv::Feature2D, cv::Algorithm Only the first base class will be used Note: Class detail_GraphCutSeamFinder has more than 1 base class (not supported by Python C extensions) Bases: cv::detail::GraphCutSeamFinderBase, cv::detail::SeamFinder Only the first base class will be used [ 98%] Built target gen_opencv_python_source Scanning dependencies of target opencv_python3 [ 98%] Building CXX object modules/python3/CMakeFiles/opencv_python3.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. make[2]: *** [modules/python3/CMakeFiles/opencv_python3.dir//src2/cv2.cpp.o] Error 4 make[1]: *** [modules/python3/CMakeFiles/opencv_python3.dir/all] Error 2 make: *** [all] Error 2 modules/python3/CMakeFiles/opencv_python3.dir/build.make:62: recipe for target 'modules/python3/CMakeFiles/opencv_python3.dir/__/src2/cv2.cpp.o' failed CMakeFiles/Makefile2:3212: recipe for target 'modules/python3/CMakeFiles/opencv_python3.dir/all' failed Makefile:160: recipe for target 'all' failed
`
Just did some search: https://github.com/opencv/opencv/issues/7633 So 2G memory is NOT enough? Is is possible to solve the problem without increase the memory?