ubuntu 13.10搭建MTK android源码编译环境
1, install an pure english version ubuntu 13.10
2, add right button to open terminel
sudo apt-get install nautilus-open-terminal
nautilus -q
3, install sogou input:
sudo add-apt-repository ppa:fcitx-team/nightly
sudo apt-get update
sudo apt-get install fcitx-sogoupinyin
进入语言设置选择fcitx,重启之后就可以输入中文输入法了。
4, sudo apt-get install -y flex bison gperf build-essential curl zlib1g-dev g++-multilib g++-4.4-multilib libc6-dev-i386 lib32ncurses5-dev lib32z1 lib32ncurses5 lib32bz2-1.0 x11proto-core-dev libx11-dev lib32readline-gplv2-dev lib32z1-dev wine mingw32 tofrodos
5, 安装相关库
#!/bin/sh
#wget http://archive.ubuntu.com/ubuntu/pool/main/f/flex/flex_2.5.35-9_amd64.deb
#wget http://archive.ubuntu.com/ubuntu/pool/main/m/m4/m4_1.4.13-3_amd64.deb
#wget http://archive.ubuntu.com/ubuntu/pool/main/b/bison/bison_2.4.1.dfsg-3_
#wget http://archive.ubuntu.com/ubuntu/pool/main/g/gperf/gperf_3.0.3-1build3_amd64.deb
#wget http://archive.ubuntu.com/ubuntu/pool/main/c/curl/curl_7.19.7-1ubuntu1_amd64.deb
#wget http://archive.ubuntu.com/ubuntu/pool/main/z/zlib/zlib1g-dev_1.2.3.3.dfsg-15ubuntu1_amd64.deb
sudo dpkg -i bison_2.4.1.dfsg-3_amd64.deb
sudo dpkg -i curl_7.19.7-1ubuntu1_amd64.deb
sudo dpkg -i flex_2.5.35-9_amd64.deb
sudo dpkg -i gperf_3.0.3-1build3_amd64.deb
sudo dpkg -i jdk-6u23-linux-x64.bin
sudo dpkg -i m4_1.4.13-3_amd64.deb
sudo dpkg -i wine-1.1.13.tar.bz2
sudo dpkg -i zlib1g-dev_1.2.3.3.dfsg-15ubuntu1_amd64.deb
6, gcc降级到4.4.7
sudo apt-get install gcc-4.4 g++-4.4 g++-4.4-multilib
sudo -s
cd /usr/bin/
sudo ln -s g++-4.4 g++
sudo ln -s gcc-4.4 gcc
7, 安装wime-1.1.33
sudo apt-get build-dep wine
sudo apt-get install -y gnome-devel libx11-dev:i386
sudo apt-get install -y libxrender-dev:i386 libxml2-dev:i386 libjpeg-dev:i386 libxi-dev:i386 libXxf86vm-dev:i386 libxrandr-dev:i386 libxcomposite-dev:i386 libglu1-mesa-dev:i386 libgnutls-dev:i386 libsane-dev:i386 liblcms1-dev:i386 libcapi20-dev:i386 libldap2-dev:i386 fontconfig:i386 libcups2-dev:i386 openssl:i386
sudo apt-get install -ylibpng12-0:i386 libpng12-dev:i386 libpng++-dev:i386 libpng3:i386
sudo apt-get install -y libfontconfig1-dev:i386 libfontconfig1:i386
wget sourceforge.net/projects/wine/files/Source/wine-1.1.33.tar.bz2
tar xvf wine-1.1.33
cd wine-1.1.33
./configure --prefix=/opt/wine-1.1.33
make depend;make
sudo make install
8, jdk的安装
下载jdk-6u23-linux-x64.bin,这个玩意在oracle的网站不好找,慢慢找吧
sudo cp ./jdk-6u23-linux-x64.bin /opt
cd /opt
sudo chmod u+x jdk-6u23-linux-x64.bin
./jdk-6u23-linux-x64.bin
9, sdk的安装
google官网上下载adt-bundle-linux-x86_64-20140321.zip
unzip adt-bundle-linux-x86_64-20140321.zip
cd adt-bundle-linux-x86_64-20140321
sudo cp -r * /opt/
10, 环境变量的设置
sudo gedit $HOME/.bashrc
增加如下内容
JAVA_HOME=/opt/jdk1.6.0_23
export JAVA_HOME
ANDROID_JAVA_HOME=/opt/jdk1.6.0_23
export ANDROID_JAVA_HOME
export CLASSPATH=.:$CLASSPATH:$JAVA_HOME/lib:$JAVA_HOME/jre/lib
PATH=/opt/jdk1.6.0_23/bin:/opt/wine-1.1.33/bin:/opt/sdk/platform-tools:/opt/sdk/tools:$PATH
export PATH
11, bcompare ubuntu版本的安装
去http://pkgs.org/ubuntu-12.04/ubuntu-main-i386/libxft2_2.2.0-3ubuntu2_i386.deb.html网站下载
libxft2_2.2.0-3ubuntu2_i386.deb
sudo dpkg -i libxft2_2.2.0-3ubuntu2_i386.deb
官网上下载bcompare-3.3.10.17762.tar.gz
sudo cp ./bcompare-3.3.10.17762.tar.gz
cd /opt/
sudo tar xvf bcompare-3.3.10.17762.tar.gz
网上找ubuntu bcompare的破解成keygen
sudo cp kegen /opt/bcompare-3.3.10.17762
cd /opt/bcompare-3.3.10.17762
sudo chmod 777 ./keygen
./keygen
=================================================
****** TEAM ZWT ******
******Keygen&Patch for Beyond Compare Linux******
****** by [email protected] ******
=================================================
1. Do you want me to patch Beyond Compare?(y/n)y
Begin patching...
Patch and Backup(BCompare.bak) success!
2. Do you want me to generate a valid license?(y/n)y
2.a please give me your user name:root
2.b please give me the number of licenses:(max 9999)1
2.c please select the Platform(0,Windows;1,Linux;2,Linux/Windows):2
2.d please select the Edition(0,Pro;1,Standard):0
The License key is:
--- BEGIN LICENSE KEY ---
cw98TaEXZCtOwGGLDWa5m2tXaqeShjYEF+A33aSwIZnou-CLBLPBCw22Y
7hMNDrc7+yBmJ0rwCEfFHa90f5i-NM1PrkfQr96Czn52qQhjN+bgTr0If
atliY4hUdXp40AB64mdbjGOJfeMDNXyaxnzS394D1HS4Hp7O1+Vqwul1U+
--- END LICENSE KEY -----
Bye! Have a nice day!
=================================================
then
sudo mkdir ../bcompare
弹出界面,要求输入license,把刚刚得到的license copy到这里
继续运行就ok了
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。