jayrambhia / Install-OpenCV

shell scripts to install different version of OpenCV in different distributions of Linux
1.04k stars 947 forks source link

Building 2.4.10: Cannot allocate memory #54

Open zhulik opened 8 years ago

zhulik commented 8 years ago

Hi, i can't build 2.4.10 on DigitalOcean Ubuntu 14.04 4GB and 8GB droplets because of

[  9%] Building CXX object modules/contrib/CMakeFiles/opencv_contrib_pch_dephelp.dir/opencv_contrib_pch_dephelp.cxx.o
Building CXX object modules/stitching/CMakeFiles/opencv_test_stitching_pch_dephelp.dir/opencv_test_stitching_pch_dephelp.cxx.o
Building CXX object modules/superres/CMakeFiles/opencv_test_superres_pch_dephelp.dir/opencv_test_superres_pch_dephelp.cxx.o
Building CXX object modules/superres/CMakeFiles/opencv_superres_pch_dephelp.dir/opencv_superres_pch_dephelp.cxx.o
Building CXX object modules/stitching/CMakeFiles/opencv_stitching_pch_dephelp.dir/opencv_stitching_pch_dephelp.cxx.o
virtual memory exhaustedvirtual memory exhausted: Cannot allocate memory
: Cannot allocate memory
virtual memory exhausted: Cannot allocate memory

Why simple script for building opencv requres so much memory?