android x86 系统环境安装
2015-04-15 15:43
211 查看
android x86
为了方便DGV项目开发环境保持一致,方便大家的开发,特作此文档加以说明。
一:DGV工程生成
在fedora14安装以后,运行正常,进行下面操作!首先拷贝fastboot_tar_zcvf文件夹到/home/xx目录下!
后再根目录创建自己的工程文件夹。
[root@wyplinux ~]# cp -r /home/xxx/fastboot_tar_zcvf/
/DGV/xxx/
[root@wyplinux ~]#cd /DGV/xxx/
运行 [root@wyplinux ~]#
./gen.sh
工程的生成采用两种方式,另外在条件允许的情况下可以从我处直接拷贝生成的工程,包括基础工程和全套工程(包含目前全部的功能和应用)!
二:系统环境的搭建
上面的要求完成后,做以下安装:
说明:本安装只适合于fedora14上做以下安装,其他linux版本未作验证,请慎重选择!
[root@wyplinux ~]# yum installgcc make cvs perl gcc-c++ kernel-devel dos2unix pixman-devel expat-develxorg-x11-server-devel
libX11-devel libtalloc-devel mesa-libGL-devellibXdmcp-devel libXrandr-devel readline-devel libglade-devel libglade2-devellibXv-devel bison flex
[root@wyplinux ~]# yum install glibc-devel.i686 libstdc++-devel.i686zlib-devel.i686
ncurses-devel.i686 readline-devel.i686 qt-develcompat-readline5-devel*.x86_64 compat-readline5*.x86_64compat-readline5-devel*.i686 readline-devel*.i386 glibc-devel*.x86_64ncurses-devel*.x86_64 zlib-devel*.x86_64 git-all gperf libstdc++-devellibxml2.i686
三:jdk安装
jdk
下载地址:http://www.oracle.com/technetwork/java/javasebusiness/downloads/java-archive-downloads-javase6-419409.html
在这里需要说明的是需要用64位的jdk文件。
本文中用了:jdk-6u41-linux-x64.bin
有条件也可直接在DHE处拷贝jdk-6u41-linux-x64.bin
下载后做以下命令处理:
[root@wyplinux ~]# sudo mkdir /usr/java
[root@wyplinux ~]# cd /usr/java
[root@wyplinux java]# cp/home/wyptest/jdk-6u41-linux-x64.bin
/usr/java/
[root@wyplinux java]# export HOST_ARCH=x64
[root@wyplinux java]# chmod +xjdk-6u41-linux-$HOST_ARCH.bin
[root@wyplinux java]#./dk-6u41-linux-$HOST_ARCH.bin
[root@wyplinux java]# ln -s jdk1.6.0x j2se
[root@wyplinux java]# unset HOST_ARCH
具体拷贝路径根据自己的实际情况作相应的修改和处理。
添加信息:
添加以下信息到~/.bashrc
[root@wyplinux java]# sudo gedit ~/.bashrc
export J***A_HOME=/usr/java/j2se
或者exportJ***A_HOME=/usr/java/jdk1.6.0_41
PATH=$J***A_HOME/bin:$ANT_HOME/bin:$PATH
exportCLASSPATH=$CLASSPATH:$J***A_HOME/lib:$J***A_HOME/jre/lib
至此jdk安装完成。
四:repo安装
1)
根目录下建文件
mkdir ~/bin
2)
下载android的repo
curlhttps://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
3)
改变权限
chmod a+x ~/bin/repo
有条件的可到DHE处直接拷贝repo文件,并作以下操作
[root@wyplinux java]# cd
[root@wyplinux ~]# mkdir ~/bin
[root@wyplinux ~]# cp /home/wyptest/repo~/bin/
[root@wyplinux ~]# chmod a+x ~/bin/repo
为了后续开发的便利性,建议此时系统文件至少保留15G空间左右!
五:系统交叉编译环境版本确认
[root@wyplinux ~]# python --version
Python 2.7
[root@wyplinux ~]# git --version
git version 1.7.4.4
[root@wyplinux ~]# patch --version
patch 2.6.1
Copyright (C) 1988 Larry Wall
Copyright (C) 2003, 2009 Free SoftwareFoundation, Inc.
This program comes with NO WARRANTY, to theextent permitted by law.
You may redistribute copies of this program
under the terms of the GNU General PublicLicense.
For more information about these matters, seethe file named COPYING.
written by Larry Wall and Paul Eggert
[root@wyplinux ~]# gcc --version
gcc (GCC) 4.5.1 20100924 (Red Hat 4.5.1-4)
Copyright © 2010 Free Software Foundation,Inc.
[root@wyplinux ~]# curl --version
curl 7.21.0 (x86_64-redhat-linux-gnu)libcurl/7.21.0 NSS/3.12.7.0 zlib/1.2.5 libidn/1.18 libssh2/1.2.4
Protocols: dict file ftp ftps http https imapimaps ldap ldaps pop3 pop3s rtsp scp sftp smtp smtps telnet tftp
Features: AsynchDNS GSS-Negotiate IDN IPv6Largefile NTLM SSL libz
[root@wyplinux ~]# perl --version
This is perl 5, version 12, subversion 4(v5.12.4) built for x86_64-linux-thread-multi
Copyright 1987-2010, Larry Wall
Perl may be copied only under the terms of eitherthe Artistic License or the
GNU General Public License, which may befound in the Perl 5 source kit.
Complete documentation for Perl, includingFAQ lists, should be found on
this system using "man perl" or"perldoc perl".
If you haveaccess to the
Internet, point your browser at http://www.perl.org/,the Perl Home Page.
至此确定完毕:
六:工程编译和运行
进入开发的源代码目录,运行下面的命令,需要root权限!
[root@wyplinux ~]# cd/DGV/e660t/android-2.3.7-fastboot/
# source ./build/envsetup.sh
# lunch e660_eg20t-eng
#make -j4
本版本为适用于工业需求的fastboot版本,第一次的编译时间有些长,后期无需如此,也无需整体编译,内核和驱动有需要改动的地方-----
谢谢!
android x86
系统环境安装
为了方便DGV项目开发环境保持一致,方便大家的开发,特作此文档加以说明。一:DGV工程生成
在fedora14安装以后,运行正常,进行下面操作!首先拷贝fastboot_tar_zcvf文件夹到/home/xx目录下!
后再根目录创建自己的工程文件夹。
[root@wyplinux ~]# cp -r /home/xxx/fastboot_tar_zcvf/
/DGV/xxx/
[root@wyplinux ~]#cd /DGV/xxx/
运行 [root@wyplinux ~]#
./gen.sh
工程的生成采用两种方式,另外在条件允许的情况下可以从我处直接拷贝生成的工程,包括基础工程和全套工程(包含目前全部的功能和应用)!
二:系统环境的搭建
上面的要求完成后,做以下安装:
说明:本安装只适合于fedora14上做以下安装,其他linux版本未作验证,请慎重选择!
[root@wyplinux ~]# yum installgcc make cvs perl gcc-c++ kernel-devel dos2unix pixman-devel expat-develxorg-x11-server-devel
libX11-devel libtalloc-devel mesa-libGL-devellibXdmcp-devel libXrandr-devel readline-devel libglade-devel libglade2-devellibXv-devel bison flex
[root@wyplinux ~]# yum install glibc-devel.i686 libstdc++-devel.i686zlib-devel.i686
ncurses-devel.i686 readline-devel.i686 qt-develcompat-readline5-devel*.x86_64 compat-readline5*.x86_64compat-readline5-devel*.i686 readline-devel*.i386 glibc-devel*.x86_64ncurses-devel*.x86_64 zlib-devel*.x86_64 git-all gperf libstdc++-devellibxml2.i686
三:jdk安装
jdk
下载地址:http://www.oracle.com/technetwork/java/javasebusiness/downloads/java-archive-downloads-javase6-419409.html
在这里需要说明的是需要用64位的jdk文件。
本文中用了:jdk-6u41-linux-x64.bin
有条件也可直接在DHE处拷贝jdk-6u41-linux-x64.bin
下载后做以下命令处理:
[root@wyplinux ~]# sudo mkdir /usr/java
[root@wyplinux ~]# cd /usr/java
[root@wyplinux java]# cp/home/wyptest/jdk-6u41-linux-x64.bin
/usr/java/
[root@wyplinux java]# export HOST_ARCH=x64
[root@wyplinux java]# chmod +xjdk-6u41-linux-$HOST_ARCH.bin
[root@wyplinux java]#./dk-6u41-linux-$HOST_ARCH.bin
[root@wyplinux java]# ln -s jdk1.6.0x j2se
[root@wyplinux java]# unset HOST_ARCH
具体拷贝路径根据自己的实际情况作相应的修改和处理。
添加信息:
添加以下信息到~/.bashrc
[root@wyplinux java]# sudo gedit ~/.bashrc
export J***A_HOME=/usr/java/j2se
或者exportJ***A_HOME=/usr/java/jdk1.6.0_41
PATH=$J***A_HOME/bin:$ANT_HOME/bin:$PATH
exportCLASSPATH=$CLASSPATH:$J***A_HOME/lib:$J***A_HOME/jre/lib
至此jdk安装完成。
四:repo安装
1)
根目录下建文件
mkdir ~/bin
2)
下载android的repo
curlhttps://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
3)
改变权限
chmod a+x ~/bin/repo
有条件的可到DHE处直接拷贝repo文件,并作以下操作
[root@wyplinux java]# cd
[root@wyplinux ~]# mkdir ~/bin
[root@wyplinux ~]# cp /home/wyptest/repo~/bin/
[root@wyplinux ~]# chmod a+x ~/bin/repo
为了后续开发的便利性,建议此时系统文件至少保留15G空间左右!
五:系统交叉编译环境版本确认
[root@wyplinux ~]# python --version
Python 2.7
[root@wyplinux ~]# git --version
git version 1.7.4.4
[root@wyplinux ~]# patch --version
patch 2.6.1
Copyright (C) 1988 Larry Wall
Copyright (C) 2003, 2009 Free SoftwareFoundation, Inc.
This program comes with NO WARRANTY, to theextent permitted by law.
You may redistribute copies of this program
under the terms of the GNU General PublicLicense.
For more information about these matters, seethe file named COPYING.
written by Larry Wall and Paul Eggert
[root@wyplinux ~]# gcc --version
gcc (GCC) 4.5.1 20100924 (Red Hat 4.5.1-4)
Copyright © 2010 Free Software Foundation,Inc.
[root@wyplinux ~]# curl --version
curl 7.21.0 (x86_64-redhat-linux-gnu)libcurl/7.21.0 NSS/3.12.7.0 zlib/1.2.5 libidn/1.18 libssh2/1.2.4
Protocols: dict file ftp ftps http https imapimaps ldap ldaps pop3 pop3s rtsp scp sftp smtp smtps telnet tftp
Features: AsynchDNS GSS-Negotiate IDN IPv6Largefile NTLM SSL libz
[root@wyplinux ~]# perl --version
This is perl 5, version 12, subversion 4(v5.12.4) built for x86_64-linux-thread-multi
Copyright 1987-2010, Larry Wall
Perl may be copied only under the terms of eitherthe Artistic License or the
GNU General Public License, which may befound in the Perl 5 source kit.
Complete documentation for Perl, includingFAQ lists, should be found on
this system using "man perl" or"perldoc perl".
If you haveaccess to the
Internet, point your browser at http://www.perl.org/,the Perl Home Page.
至此确定完毕:
六:工程编译和运行
进入开发的源代码目录,运行下面的命令,需要root权限!
[root@wyplinux ~]# cd/DGV/e660t/android-2.3.7-fastboot/
# source ./build/envsetup.sh
# lunch e660_eg20t-eng
#make -j4
本版本为适用于工业需求的fastboot版本,第一次的编译时间有些长,后期无需如此,也无需整体编译,内核和驱动有需要改动的地方-----
谢谢!
相关文章推荐
- 在虚拟机以及pc机上安装ubuntu 9.10_x86_64系统搭建android开发环境
- Android - 系统开发环境安装
- Ubuntu系统 + VMware虚拟机+32位编译环境 安装编译Android2.3源码
- Fedora16 x86_64 安装 android 开发环境(64位需装32位运行库)
- Mac系统下安装android开发环境
- 64位ubuntu 11.10系统安装android开发环境的过程
- Windows硬盘安装Ubuntu双系统及Android开发环境搭建
- 基于Android2.3.5系统:Java JDK ADT Android SDK for Eclipse环境安装
- 安装使用Android-x86打造快速流畅的Aandroid开发环境!
- Windows硬盘安装Ubuntu双系统及Android开发环境搭建
- 安装、输入-LinuxNote3.WIn7与ubuntu双系统以及Android开发环境-by小雨
- Mac系统下配置Android开发环境变量及工具安装图
- Fedora16 x86_64 安装 android 开发环境(64位需装32位运行库)
- Mac系统下安装android开发环境
- ubuntu系统安装jdk,搭建android环境
- 在 32 位系统中安装 Android 编译环境(不成功)
- 将xp系统的Android环境安装到win7 64位上
- Android X86 4.4下载 安卓系统PC安装使用教程
- thinkpad X240 安装Ubuntu14.04 系统并搭建android开发环境
- 最新Android环境安装--基于adt-bundle-windows-x86-20140321