首页 > 代码库 > ubuntu 编译源码坏境配置
ubuntu 编译源码坏境配置
git checkout -b newlocal origin/q01v31
source build/envsetup.sh
lunch msm8916_32-user
make -j4
make -j4 2>&1 | tee build.txt
android编译命令的话,把/usr/lib/jvm/java-7-openjdk-amd64/bin加入到环境变量,然后再android目录下,souce ./build/envsetup.sh
lunch 19
make -j4 2>&1 | tee build.txt
sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-dev:i386 g++-multilib mingw32 openjdk-6-jdk tofrodos python-markdown libxml2-utils xsltproc zlib1g-dev:i386 libxext-dev:i386
sudo apt-get install make gcc g++ libc6-dev patch texinfo libncurses-dev flex bison gperf libsdl-dev libesd0-dev libwxgtk2.6-dev build-essential zip curl ncurses-dev zlib1g-dev valgrind libpangox-1.0-0:i386 libpangoxft-1.0-0:i386 libidn11:i386 gstreamer0.10-pulseaudio:i386 gstreamer0.10-plugins-base:i386 gstreamer0.10-plugins-good:i386 gstreamer0.10-ffmpeg:i386
sudo apt-get install build-essential
sudo apt-get install make
sudo apt-get install gcc
sudo apt-get install g++
sudo apt-get install libc6-dev
sudo apt-get install patch
sudo apt-get install texinfo
sudo apt-get install libncurses-dev
sudo apt-get install git-core gnupg
sudo apt-get install flex
sudo apt-get install bison
sudo apt-get install gperf
sudo apt-get install libsdl-dev
sudo apt-get install libesd0-dev
sudo apt-get install libwxgtk2.6-dev
sudo apt-get install build-essential
sudo apt-get install zip
sudo apt-get install curl
sudo apt-get install ncurses-dev
sudo apt-get install zlib1g-dev
sudo apt-get install valgrind
sudo apt-get install python2.5(该软件我没有安装成功,最后也没出什么问题)
sudo apt-get install libgtk2.0-0:i386
sudo apt-get install libpangox-1.0-0:i386
sudo apt-get install libpangoxft-1.0-0:i386
sudo apt-get install libidn11:i386
sudo apt-get install gstreamer0.10-pulseaudio:i386
sudo apt-get install gstreamer0.10-plugins-base:i386
sudo apt-get install gstreamer0.10-plugins-good:i386
sudo apt-get install gstreamer0.10-ffmpeg:i386
一、配置依赖工具
sudo apt-get install git-core gnupg flex bison gperf build-essential
zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev
libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-dev:i386
g++-multilib mingw32 openjdk-6-jdk tofrodos python-markdown
libxml2-utils xsltproc zlib1g-dev:i386 libxext-dev:i386
(注意如果是编译Mokee4.4.2 可能还会缺少一个png xxxx的工具, 在编译的时候会提示缺少, 按提示sudo apt-get install pngxxx 即可)
二、配置java jdk, kitkat 4.4编译要用jdk 6u45版本(sun官网的版本 非openjdk)或者更新的版本(本人没测试过jdk7, 据说也可以)
可以到sun官网下载,地址为: http://www.oracle.com/technetwork/java/javase/downloads/java-archive-downloads-javase6-419409.html
也可以到我的共享下载:http://pan.baidu.com/s/1nt2Wd9f
下载后将jdk-6u45-linux-x64.bin 放到 一个目录下 然后 chmod 777 jdk-6u45-linux-x64.bin 添加权限
然后./jdk-6u45-linux-x64.bin 运行,完成后 再配置下环境变量:
sudo gedit /etc/profile
在文件最后添加:
JAVA_HOME=/home/syhost/tools/jdk1.6.0_45
export JRE_HOME=$JAVA_HOME/jre
export CLASSPATH=.:$JAVA_HOME/lib:$JRE_HOME/lib:$CLASSPATH
export PATH=$JAVA_HOME/bin:$JRE_HOME/bin:$PATH
注意这里 JAVA_HOME后面的路径要换成你电脑里的, 就是上面运行完jdk-6u45-linux-x64.bin 后出来的那个文件夹的路径
然后重启电脑或者 执行 source /etc/profile 也可以
然后看一下是否配置成功
运行 java -version ,如果是显示下面内容则配置成功:
java version "1.6.0_45"
Java(TM) SE Runtime Environment (build 1.6.0_45-b06)
Java HotSpot(TM) 64-Bit Server VM (build 20.45-b01, mixed mode)
ubuntu 编译源码坏境配置