在编译Android代码的时候,出现了
target thumb C++: libwebcore <= out/target/product/generic/obj/SHARED_LIBRARIES/libwebcore_intermediates/WebCore/XMLNames.cpp
target SharedLib: libwebcore (out/target/product/generic/obj/SHARED_LIBRARIES/libwebcore_intermediates/LINKED/libwebcore.so)
collect2: ld terminated with signal 9 [Killed]
make: *** [out/target/product/generic/obj/SHARED_LIBRARIES/libwebcore_intermediates/LINKED/libwebcore.so] Error 1
可是不管是 make clean & make ;或是同步git 代码仓库, 再make clean & make 都是徒劳。
主要是Linux 系统没加swap分区的原因。
?
?
解决的方法很简单,建个swap文件。
#sudo? dd if=/dev/zero of=/opt/other/swapfile bs=1024 count=512K
# sudo mkswap /opt/other/swapfile
# sudo swapon /opt/other/swapfile
# swapon -s
Filename??? ??? ??? ??? Type??? ??? Size??? Used??? Priority
/opt/other/swapfile???????????????????? file??? ??? 524280??? 0??? -1
OK了。make 圆满成功。