Dlib Linux下编译失败

转载地址:http://accu.cc/content/daze/dlib/install/

记录二: 内存过小导致编译失败
c++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See http://bugzilla.redhat.com/bugzilla for instructions.
gmake[2]: *** [CMakeFiles/dlib_.dir/src/vector.cpp.o] Error 4
gmake[1]: *** [CMakeFiles/dlib_.dir/all] Error 2
gmake: *** [all] Error 2
error: cmake build failed!
测试时 1G 内存导致编译失败, 使用额外的 1G swap 后重新编译解决问题:
$ dd if=/dev/zero of=/data/swap bs=64M count=16
$ chmod 0600 /data/swap
$ mkswap /data/swap
$ swapon /data/swap

你可能感兴趣的:(图像处理)