Android编译Libwebcore出错解决方法

Android编译Libwebcore出错解决方法

如下,在编译android源码时出现错误


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] 错误 1




在网上找到解决的方法,是Linux系统没有swap分区的原因,经测试有效

# sudo dd if=/dev/zero of=/opt/moreswap bs=1024 count=512k
# sudo mkswap /opt/moreswap
# sudo swapon /opt/moreswap
# sudo gedit /etc/fstab
添加下面这一行:
/opt/moreswap none swap sw 0 0




=====================================
解决的方法很简单,建个swap文件吧。
# dd if=/dev/zero of=/opt/other/swapfile bs=1024 count=512K
# mkswap /opt/other/swapfile
# swapon /opt/other/swapfile
# swapon -s
Filename Type Size Used Priority
/opt/other/swapfile file 524280 0 -1

相关文档
最新文档