Ubuntu 12.04版本 编译环境搭建
1.安装下面软件及lib库
$sudo apt-get install bison flex xsltproc gperf gcc-multilib libxml2-utils g++ gcc git-core gnupg build-essential
zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev libx11-dev:i386 libreadline6-dev:i386
libgl1-mesa-glx:i386 libgl1-mesa-dev g++-multilib mingw32 libxml2-utils xsltproc zlib1g-dev:i386
libssl0.9.8 lzop libdb4.8
并修改sh的ln指向:/bin/sh 默认指向dash,请修改为bash
2.安装软件包
*32位系统软件包一览
sudo apt-get install
ant bison build-essential clamav clamav-daemon clamav-freshclam
cron-apt curl flex fusesmb g++-4.3 g++-4.3-multilib g++-multilib gcc-4.3
gcc-4.3-multilib gcc-multilib git git-core git-gui gnupg gperf krb5-user ldap-utils
libc6-dev libesd0-dev libmotif3 libncurses5 libncurses5-dev libreadline5
libreadline5-dev libsasl2-modules-gssapi-mit libsdl-dev libwxgtk2.6-dev libx11-dev
menu ntp ntpdate openssh-server patch python sun-java6-plugin tcsh tsocks valgrind
vim x11proto-core-dev zip zlib1g-dev
*64位系统软件包一览 sudo apt-get install
ant ant-optional bison build-essential ca-certificates-java curl flex fusesmb
g++-4.3-multilib g++-multilib gcc-4.3-multilib gcc-multilib git-core git-gui gitk gnuit
gnupg gperf ia32-libs lib32ncurses5-dev lib32readline5-dev lib32z1 lib32z1-dev
libc6-dev-i386 libesd0-dev libmotif3 libncurses5-dev libreadline5-dev
libsasl2-modules-gssapi-mit libsdl1.2-dev libx11-dev meld menu ntp ntpdate openssh-server patch python tsocks valgrind
vim x11proto-core-dev zip zlib1g-dev
3.安装jdk 1.6并设置java环境变量
从网上下载jdk包并解压(具体下载32位版本还是64位版本由操作系统版本决定)
官网http://www.oracle.com/technetwork/java/javase/downloads/index.html
在~/.bashrc文件末尾添加如下几行:
export JAVA_HOME=/home/dongwuming/bin/jdk1.6.0_24 (注意:此处需要按实际修改)
export JRE_HOME=$JAVA_HOME/jre
export CLASSPATH=$JAVA_HOME/lib:$JRE_HOME/lib:$CLASSPATH
export PATH=$JAVA_HOME/bin:$PATH:$JRE_HOME/bin
添加好后,执行source ~/.bashrc
4.安装RVCT