搜索
bottom↓
回复: 5

http://source.android.com/download#TOC-Ubuntu-Linux-32-bit-x86- 谁能上去啊

[复制链接]

出0入0汤圆

发表于 2009-11-28 12:48:33 | 显示全部楼层 |阅读模式
http://source.android.com/download#TOC-Ubuntu-Linux-32-bit-x86-

我怎么打不开,是不是防火墙的问题?
哪位能穿墙,帮我打开看看这个网页呢?

阿莫论坛20周年了!感谢大家的支持与爱护!!

一只鸟敢站在脆弱的枝条上歇脚,它依仗的不是枝条不会断,而是自己有翅膀,会飞。

出0入0汤圆

 楼主| 发表于 2009-11-30 12:25:43 | 显示全部楼层
万能的坛啊












不加这句没人理?

出0入0汤圆

 楼主| 发表于 2009-11-30 12:30:17 | 显示全部楼层
Setting up your machine
To build the Android source files, you will need to use Linux or Mac OS. Building under Windows is not currently supported.


Linux
The Android build is routinely tested on recent versions of Ubuntu (6.06 and later), but reports of successes or failures on other distributions are welcome.

Ubuntu Linux (32-bit x86)
To set up your Linux development environment, make sure you have the following:
Required Packages:
Git 1.5.4 or newer and the GNU Privacy Guard.

JDK 5.0, update 12 or higher.  Java 6 is not supported, because of incompatibilities with @Override.

flex, bison, gperf, libsdl-dev, libesd0-dev, libwxgtk2.6-dev (optional), build-essential, zip, curl.  
$ sudo apt-get install git-core gnupg sun-java5-jdk flex bison gperf libsdl-dev libesd0-dev libwxgtk2.6-dev build-essential zip curl libncurses5-dev zlib1g-dev

You might also want Valgrind, a tool that will help you find memory leaks, stack corruption, array bounds overflows, etc.  
$ sudo apt-get install valgrind

Intrepid (8.10) users may need a newer version of libreadline:
$ sudo apt-get install lib32readline5-dev

Ubuntu Linux (64-bit x86)
This has not been as well tested. Please send success or failure reports to android-porting@googlegroups.com.


The Android build requires a 32-bit build environment as well as some other tools:

Required Packages:
Git, JDK, flex, and the other packages as listed above in the i386 instructions:  

JDK 5.0, update 12 or higher.  Java 6 is not supported, because of incompatibilities with @Override.
Pieces from the 32-bit cross-building environment
X11 development

$ sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl sun-java5-jdk zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 lib32ncurses5-dev ia32-libs x11proto-core-dev libx11-dev lib32readline5-dev lib32z-dev
Set the system to use the right version of java by default:

$ sudo update-java-alternatives -s java-1.5.0-sun

X11: Ubuntu doesn't have packages for the X11 libraries, but that can be worked around with the following command:

$ sudo ln -s /usr/lib32/libX11.so.6 /usr/lib32/libX11.so


Running Linux in a virtual machine
If you are running Linux in a virtual machine, you will need at least 1.5GB of RAM and 10GB or more of disk space in order to build the Android tree.

Other Linux
There's no reason why Android cannot be built on non-Ubuntu systems. Please send any success or failure reports to android-porting@googlegroups.com. In general you will need:

Python 2.4, which you can download from python.org .  
JDK 5.0, update 12 or higher, which you can download from java.sun.com . Java 6 is not supported, because of incompatibilities with @Override.
Git 1.5.4 or newer. You can find it at http://git.or.cz/ .
Anything missing from this list? Please let us know!



Mac OS

Requirements:

To build the Android files in a Mac OS environment, you need an Intel/x86 machine running MacOS 10.4 ("Tiger") or 10.5 ("Leopard"). At the moment MacOS 10.6 ("Snow Leopard") is not supported. The Android build system and tools do not support the obsolete PowerPC architecture.
Android must be built on a case-sensitive file system.

We recommend that you build Android on a partition that has been formatted with the "Case-sensitive Journaled HFS+" file system:
A case-sensitive file system is required because the sources contain files that differ only in case.
Journaled systems are more robust. (This is optional, but recommended.)
HFS+ is required to successfully build Mac OS applications such as the Android Emulator for OS X.
If you want to avoid partitioning/formatting your hard drive, you can use a case-sensitive disk image instead.
To create the image:

launch /Applications/Utilities/Disk Utility
select "New Image"
size: 8 GB (this will work, but you can choose more if you want to)
volume format: case sensitive, journaled
This will create a .dmg file which, once mounted, acts as a drive with the required formatting for Android development. For a disk image named "android.dmg" stored in your home directory, you can add the following to your ~/.bash_profile to mount the image when you execute "mountAndroid":


# command to mount the android file image
function mountAndroid  { hdiutil attach ~/android.dmg  -mountpoint /Volumes/android; }


Once mounted, you'll do all your work in the "android" volume. You can eject it (unmount it) just like you would with an external drive.
To set up your Mac OS development environment, follow these steps:

Install the XCode version 2.4 or later from http://developer.apple.com . We recommend version 3.0 or newer.

Install MacPorts. To do this:
Download the tar file from http://www.macports.org/  and untar the files.
Run the following:
  $ ./configure
  $ make
  $ sudo make install
Make sure that /opt/local/bin is in your path before /usr/bin. by running
    $ echo $PATH
If you don't see /opt/local/bin, edit $HOME/.bash_profile and add the line
  export PATH=/opt/local/bin:$PATH
(or the equivalent for other shells) after any other PATH-related lines. To verify that your path is now correct, open a new terminal and run echo $PATH again.
Ask MacPorts to update itself:
  $ sudo port selfupdate

Get the following packages from port:
  $ POSIXLY_CORRECT=1 sudo port install gmake libsdl git-core gnupg
If using Mac OS 10.4, also install:
  $ POSIXLY_CORRECT=1 sudo port install bison

Upgrade GNU make to 3.81 or later by running.  Mac OS doesn't come with a recent enough version.
  $ sudo ln -s gmake /opt/local/bin/make

Set an appropriate per-process file descriptor limit. To do this, add the following lines to your .bash_profile file:
   # set the number of open files to be 1024
   ulimit -S -n 1024


Installing Repo

Repo is a tool that makes it easier to work with Git in the context of Android. For more information about Repo, see Using Repo and Git.


To install, initialize, and configure Repo, follow these steps:


Make sure you have a ~/bin directory in your home directory, and check to be sure that this bin directory is in your path:
  $ cd ~
  $ mkdir bin
  $ echo $PATH

Download the repo script and make sure it is executable:
$ curl http://android.git.kernel.org/repo >~/bin/repo
$ chmod a+x ~/bin/repo



Initializing a Repo client

Create an empty directory to hold your working files:
$ mkdir mydroid
$ cd mydroid

Run repo init to bring down the latest version of Repo with all its most recent bug fixes. You must specify a URL for the manifest:
$ repo init -u git://android.git.kernel.org/platform/manifest.git
If you would like to check out a branch other than "master", specify it with -b, like:
$ repo init -u git://android.git.kernel.org/platform/manifest.git -b cupcake

When prompted, configure Repo with your real name and email address. If you plan to submit code, use an email address that is associated with a Google account.

A successful initialization will end with a message such as
   repo initialized in /mydroid

Your client directory should now contain a .repo directory where files such as the manifest will be kept.

What will my name and email be used for?  

To use the Gerrit code-review tool, you will need an email address that is connected with a registered Google account (which does not have to be a Gmail address). Make sure this is a live address at which you can receive messages. The real name that you provide here will show up in attributions for your code submissions.

What is a manifest file?

The Android source files are divided among a number of different repositories. A manifest file contains a mapping of where the files from these repositories will be placed within your working directory when you synchronize your files.





Getting the files
To pull down files to your working directory from the repositories as specified in the default manifest, run

   $ repo sync  

For more about repo sync and other Repo commands, see Using Repo and Git.

The Android source files will be located in your working directory under their project names.



Verifying Git Tags
Load the following public key into your GnuPG key database.  The key is used to sign annotated tags that represent releases.

   $ gpg --import

then paste the key(s) below, and press Control-D to end the input and process the keys.  After importing the keys, you can verify any tag with

   $ git tag -v tagname

key 9AB10E78: "The Android Open Source Project <initial-contribution@android.com>"

-----BEGIN PGP PUBLIC KEY BLOCK-----Version: GnuPG v1.4.2.2 (GNU/Linux)mQGiBEnnWD4RBACt9/h4v9xnnGDou13y3dvOx6/t43LPPIxeJ8eX9WB+8LLuROSVlFhpHawsVAcFlmi7f7jdSRF+OvtZL9ShPKdLfwBJMNkU66/TZmPewS4m782ndtw78tR1cXb197Ob8kOfQB3A9yk2XZ4ei4ZC3i6wVdqHLRxABdncwu5hOF9KXwCgkxMDu4PVgChaAJzTYJ1EG+UYBIUEAJmfearb0qRAN7dEoff0FeXsEaUA6U90sEoVks0ZwNj96SA8BL+a1OoEUUfpMhiHyLuQSftxisJxTh+2QclzDviDyaTrkANjdYY7p2cq/HMdOY7LJlHaqtXmZxXjjtw5Uc2QG8UY8aziU3IE9nTjSwCXeJnuyvoizl9/I1S5jU5SA/9WwIps4SC84ielIXiGWEqq6i6/sk4I9q1YemZF2XVVKnmI1F4iCMtNKsR4MGSa1gA8s4iQbsKNWPgp7M3a51JCVCu6l/8zTpA+uUGapw4tWCp4o0dpIvDPBEa9b/aF/ygcR8mh5hgUfpF9IpXdknOsbKCvM9lSSfRciETykZc4wrRCVGhlIEFuZHJvaWQgT3BlbiBTb3VyY2UgUHJvamVjdCA8aW5pdGlhbC1jb250cmlidXRpb25AYW5kcm9pZC5jb20+iGAEExECACAFAknnWD4CGwMGCwkIBwMCBBUCCAMEFgIDAQIeAQIXgAAKCRDorT+BmrEOeNr+AJ42Xy6tEW7r3KzrJxnRX8mij9z8tgCdFfQYiHpYngkI2t09Ed+9Bm4gmEO5Ag0ESedYRBAIAKVW1JcMBWvV/0Bo9WiByJ9WJ5swMN36/vAlQN4mWRhfzDOk/Rosdb0csAO/l8Kz0gKQPOfObtyYjvI8JMC3rmi+LIvSUT9806UphisyEmmHv6U8gUb/xHLIanXGxwhYzjgeuAXVCsv+EvoPIHbY4L/KvP5x+oCJIDbkC2b1TvVk9PryzmE4BPIQL/NtgR1oLWm/uWR9zRUFtBnE411aMAN3qnAHBBMZzKMXLWBGWE0znfRrnczI5p49i2YZJAjyX1P2WzmScK49CV82dzLo71MnrF6fj+Udtb5+OgTg7Cow+8PRaTkJEW5Y2JIZpnRUq0CYxAmHYX79EMKHDSThf/8AAwUIAJPWsB/MpK+KMs/s3r6nJrnYLTfdZhtmQXimpoDMJg1zxmL8UfNUKiQZ6esoAWtDgpqt7Y7sKZ8laHRARonte394hidZzM5nb6hQvpPjt2OlPRsyqVxw4c/KsjADtAuKW9/d8phbN8bTyOJo856qg4oOEzKG9eeF7oaZTYBy33BTL0408sEBxiMior6b8LrZrAhkqDjAvUXRwm/fFKgpsOysxC6xi553CxBUCH2omNV6Ka1LNMwzSp9ILz8jEGqmUtkBszwoG1S8fXgE0Lq3cdDM/GJ4QXP/p6LiwNF99faDMTV3+2SAOGvytOX6KjKVzKOSsfJQhN0DlsIw8hqJc0WISQQYEQIACQUCSedYRAIbDAAKCRDorT+BmrEOeCUOAJ9qmR0lEXzeoxcdoafxqf6gZlJZlACgkWF7wi2YLW3Oa+jv2QSTlrx4KLM==Wi5D-----END PGP PUBLIC KEY BLOCK-----

Building the code
To build the files, run make from within your working directory:
    $ cd ~/mydroid  
    $ make

If your build fails, complaining about a missing "run-java-tool", try setting the ANDROID_JAVA_HOME env var to $JAVA_HOME before making.  E.g.,

    $ export ANDROID_JAVA_HOME=$JAVA_HOME

Using an IDE
Using Eclipse for Android platform development

Troubleshooting
ImportError: No module named readline


Mac users getting this should install Python 2.5.2.  

Linux users that installed Python from source, make sure the dependencies for libreadline are installed, and rebuild Python.

出0入0汤圆

 楼主| 发表于 2009-11-30 12:33:14 | 显示全部楼层
果然是, 多谢【2楼】 517456

这是在UBUNTU系统上构建GOOGLE Android开发环境的指导手册,以后大家或许能用得着

出0入0汤圆

发表于 2009-11-30 21:42:06 | 显示全部楼层
你可以去
http://android.git.kernel.org/
回帖提示: 反政府言论将被立即封锁ID 在按“提交”前,请自问一下:我这样表达会给举报吗,会给自己惹麻烦吗? 另外:尽量不要使用Mark、顶等没有意义的回复。不得大量使用大字体和彩色字。【本论坛不允许直接上传手机拍摄图片,浪费大家下载带宽和论坛服务器空间,请压缩后(图片小于1兆)才上传。压缩方法可以在微信里面发给自己(不要勾选“原图),然后下载,就能得到压缩后的图片】。另外,手机版只能上传图片,要上传附件需要切换到电脑版(不需要使用电脑,手机上切换到电脑版就行,页面底部)。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|Archiver|amobbs.com 阿莫电子技术论坛 ( 粤ICP备2022115958号, 版权所有:东莞阿莫电子贸易商行 创办于2004年 (公安交互式论坛备案:44190002001997 ) )

GMT+8, 2024-5-20 16:08

© Since 2004 www.amobbs.com, 原www.ourdev.cn, 原www.ouravr.com

快速回复 返回顶部 返回列表