Chinaunix首页 | 论坛 | 博客
  • 博客访问: 432144
  • 博文数量: 69
  • 博客积分: 957
  • 博客等级: 准尉
  • 技术积分: 1161
  • 用 户 组: 普通用户
  • 注册时间: 2010-04-26 14:54
文章分类

全部博文(69)

文章存档

2013年(15)

2012年(12)

2011年(42)

分类: 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++

阅读(4432) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~