1、/usr/bin/ld: cannot find -lstdc++ :sudo apt-get install g++-multilib
2、缺少java6:
Sudo vi /ect/apt/sources.list ;
添 deb http://us.archive.ubuntu.com/ubuntu/ hardy multiverse ;
保存退出,sudo apt-get update
Sudo apt-get install sun-java6-jdk
3、/usr/bin/ld: cannot find -lncurses :sudo apt-get install lib32ncurses5-dev
4、bison build-essential zlib1g-dev
5、cc1plus: all warnings being treated as errors:
修改源码目录下/build/core/combo/HOST_linux-x86.mk文件
HOST_GLOBAL_CFLAGS += -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0
6、sh: 1: gperf: not found : sudo apt-get install gperf
7、reference ‘counts’ cannot be declared ‘mutable’ [-fpermissive]
external/oprofile/libpp/format_output.h
把:
mutable counts_t & counts;
改为:
counts_t & counts;
8、make: *** [out/host/linux-x86/obj/STATIC_LIBRARIES/libMesa_intermediates/src/glsl/linker.o] 错误 1
解决方法:
gedit external/mesa3d/src/glsl/linker.cpp
在头文件段中,添加#include <stddef.h>
9、‘ptrdiff_t’不是一个类型名
external/gtest/src/../include/gtest/internal/gtest-param-util.h
添加#include <cstddef>
10、 错误: variable ‘ParamName’ set but not used
frameworks/compile/slang/Android.mk
LOCAL_LDLIBS := -lpthread -ldl