First time here? Check out the FAQ!
opencv-3.4.0 needs to compile atleast 1GB RAM with 2GB swap memory compulsory cause less than this configuration opencv