编译 Android 源码
2010-03-19 07:12:00 来源:WEB开发网1.1.2 BISON
Bison is a general-purpose parser generator.
# sudo apt-get install bison
1.1.3 gperf
gperf is a program that generates perfect hash functions.
# sudo apt-get install gperf
1.1.4 libsdl-dev
SDL is a library that allows programs portable low level access to a video framebuffer, audio output, mouse, and keyboard.
# sudo apt-get install libsdl-dev
1.1.5 libesd0-devl
This program is designed to mix together several digitized audio streams for playback by a single device.
# sudo apt-get install libesd0-dev
1.1.6 libwxgtk2.6-dev
This package provides files needed to compile wxWidgets programs.
# sudo apt-get install libwxgtk2.6-dev
1.1.7 zlib1g-dev
zlib is a library implementing the deflate compression method.
# sudo apt-get install zlib1g-dev
1.1.8 build-essential
This package contains an informational list of packages which are considered essential for building Debian packages.
# sudo apt-get install build-essential
1.1.9 libncurses5-dev
This package contains the header files, static libraries and symbolic links.
# sudo apt-get install libncurses5-dev
1.1.10 Uboot-mkimage
This package contains the mkimage utility.
# sudo apt-get uboot-mkimage
1.2 Cross Tool
1. Copy the cross tool package to /usr/local/arm
If the arm directory is not exist in host pc then create the directory
# mkdir /usr/local/arm
# cp 4.3.1-eabi-armv6-20080707.tar.bz2 /usr/local/arm
2. unzip the code using tar command
# tar xvjf 4.3.1-eabi-armv6-20080707.tar.bz2
3. Add source path in your environment file
# vi ~/.bashrc
Add the source path
“PATH=$PATH:/usr/local/arm/4.3.1-eabi-armv6/usr/bin”
更多精彩
赞助商链接