Android 2.3.4 download and build in ubuntu 11.10
来源:互联网 发布:java 注解 编辑:程序博客网 时间:2024/05/29 18:48
# Android 2.3.4 download and build in ubuntu 11.10
1 Download repo tools
curl http://android.git.kernel.org/repo >~/bin/repo
chmod a+x ~/bin/repo
2 Download source code of android 2.3.4
repo init -u git://android.git.kernel.org/platform/manifest.git -b android-2.3.4_r1
repo sync
3 Build android error fix
make -j2
1) Error 1:
build/core/main.mk:78: Only 64-bit buildenvironments are supported beyond froyo/2.2.
update file build/core/main.mk
ifeq ($(BUILD_OS),linux)
build_arch := $(shell uname -m)
---ifneq (64,$(findstring64,$(build_arch)))
+++ifneq (i686,$(findstring i686,$(build_arch)))
change the code infour mk files below from “+=-m64”to “+=-m32”
external/clearsilver/cgi/Android.mk
external/clearsilver/java-jni/Android.mk
external/clearsilver/util/Android.mk
external/clearsilver/cs/Android.mk
LOCAL_CFLAGS += -m32
LOCAL_LDFLAGS += -m32
2) Error 2:
frameworks/base/libs/utils/RefBase.cpp:483:67: error: passing 'const android::RefBase::weakref_impl' as 'this' argument of 'void android::RefBase::weakref_impl::trackMe(bool, bool)' discards qualifiers [-fpermissive]
# Need install gcc-4.4 and g++-4.4
sudo apt-get install gcc-4.4
sudo apt-get install g++-4.4
# And configure the default gcc g++
cd /usr/bin
ls -l gcc*
sudo mv gcc gcc.bak
sudo ln -s gcc-4.4 gcc
sudo mv g++ g++.bak
sudo ln -s g++-4.4 g++
gcc -v
g++ -v
4 build android sdk
make sdk
cd /out/host/linux-x86/sdk/tools/
./android create avd –n NO1 –t 1
Error: Target ID is not valid.
./android
Select "Availiable Packages", and click the sources box
Then Select "Install Selected"
- Android 2.3.4 download and build in ubuntu 11.10
- download android source code and build
- Download and Install AndroidSDK in Ubuntu 12.04 (Precise Pangolin)
- Download and Install AndroidSDK in Ubuntu 12.04 (Precise Pangolin)
- Build android development platform in Ubuntu 10.04
- Setup android build environment in Ubuntu 14.04
- Android download in windows
- How to Download and Build V8
- to build android 2.3.4 on ubuntu 11.10 64bit
- Build ccRTP in Ubuntu
- download android source in google
- Android: How to download the latest zip Android Source Code easily and using it in Intellij
- Build the Android work environment in Ubuntu Linux
- Build the Android work environment in Ubuntu Linux
- Build Linux/Android development platform in Ubuntu 10.04
- download kernel by minicom in ubuntu
- android NDK install and config in ubuntu
- versions and build in xcode
- PDF2SWF Pages 常见问题
- [转]Linux 下给类tcp 通信模式的实现。select 函数
- struts2 iterator标签status属性
- 在Windows Azure中使用Node.js,开启云计算之旅!
- Reversing C++ doc reference
- Android 2.3.4 download and build in ubuntu 11.10
- Server 2005 专用管理员连接 (DAC) 使用技巧
- Opencore| 初学问题整理
- sqlserver分页存储过程
- <备忘1003> 一个Android MediaRecorder对象的适配差异
- android 4.0 编译是遇到的两个小问题
- CRC16 验证算法
- 我为什么要开始写博客
- oracle创建表空间,创建用户