1.问题描述
c++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-5/README.Bugs> for instructions.
在开发板上编译opencv的时候报了一个错
c++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report
主要是在编译过程中,内存不够造成的。
2.解决方案
使用swap创建临时分区
sudo dd if=/dev/zero of=/swapfile bs=64M count=16
#count的大小就是增加的swap空间的大小,64M是块大小,所以空间大小是bs*count=1024MB
sudo mk