分类: LINUX
2012-01-28 08:16:53
更多相关内容见 http://riverhkw.blog.chinaunix.net
编译开始前,设置环境变量:
export KERNEL_DIR="/home/android2.6.35"
export JAVA_HOME="/home/jdk1.6.0_27"
export PATH="$PATH:$JAVA_HOME/bin"
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
sysctl vm.swappiness=100
cat /proc/sys/vm/swappiness
cd /home/android4.0.3
source build/envsetup.sh
lunch
////问题1
arget Generated: libbcc <= frameworks/compile/libbcc/tools/gen-build-stamp.py
Traceback (most recent call last):
File "frameworks/compile/libbcc/tools/gen-build-stamp.py", line 143, in
main()
File "frameworks/compile/libbcc/tools/gen-build-stamp.py", line 96, in main
build_rev = get_repo_revision(repo_dir)
File "frameworks/compile/libbcc/tools/gen-build-stamp.py", line 24, in get_repo_revision
cwd=repo_dir)
File "/usr/lib/python2.6/subprocess.py", line 623, in __init__
errread, errwrite)
File "/usr/lib/python2.6/subprocess.py", line 1141, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
make: *** [out/host/linux-x86/obj/SHARED_LIBRARIES/libbcc_intermediates/libbcc-stamp.c] 错误 1
make: *** 正在删除文件“out/host/linux-x86/obj/SHARED_LIBRARIES/libbcc_intermediates/libbcc-stamp.c”
make: *** 正在等待未完成的任务....
true
解决 :
应该是没有安装git,sudo apt-get install git,sudo apt-get install git-core可以解决问题。
yum -y install git-core
//问题2
/usr/bin/ld: cannot find -lz cannot find -lncurses cannot find gcc cannot find g++
解决:
yum -y install zlib-devel
yum -y install ncurses-devel
yum install gcc
yum install gcc-c++