2013年9月12日 星期四

Ubuntu 64bit 12,04 Build android environment setting

I've refer http://source.android.com/source/initializing.html
and the answer of http://askubuntu.com/questions/256487/initialising-the-build-environment-for-android-on-64-bit-12-04
to setup the enviroment on my thinkpad T430...

After I've complete the environment setting up,
and build the image, it's all wonderful result...
till I've shut down my notebook, or reboot my notebook...
It will display "Could not write byte: broken pipe" with a blank screen...

It's almost make me crazy cause I've reinstall my notebook 10 times at least,
to find out which package fail, what package I've install...
lot of discussed point out that lightdm should be killer, But I can't fix it while I've follow the instruction.

finally, I doubt that why the android tool chain need glx and x11 package?
so I've reinstall again(yes...again)
and leave some package to not install that I've delete as below,
and try it...
Great, At least I can build the image same as before,
and....

Till now, I've not appear the god damn broken pipe issue again!

require package:
sudo apt-get install git gnupg flex bison gperf build-essential \
zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev \
libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx-lts-quantal:i386 \
libgl1-mesa-dev g++-multilib mingw32 tofrodos \
python-markdown libxml2-utils xsltproc zlib1g-dev:i386

PS: I found that package will cause error when make menuconfig, due to missing the package libncurses5-dev
but libncurses5-dev is conflict with libncurses5-dev:i386

solution is install the package as below,
lib32ncurses5-dev 
lib32readline6-dev
lib32z1-dev

and JDK6:
  1. Download binary from oracle website or other mirror and install it.
    1. download jdk-6u*-linux-x64.bin
    2. chmod a+x jdk-6u*-linux-x64.bin
    3. ./jdk-6u*-linux-x64.bin
    4. export PATH=~/jdk1.6.0_*/bin:$PATH
  2. Add PPA source
    1. https://launchpad.net/~webupd8team/+archive/java
Next step...
I'm still try to figure out how to install office on my ubuntu 12.04~

    沒有留言:

    張貼留言

    來推薦一下VPS Racknerd

    網路上有蠻多這間VPS的推薦,不過大多是賺傭金的 推薦的點不外乎是便宜,然後中國那邊很多拿來當VPN跳板主機 我當初也是無聊租了一台來玩 後來實際上用起來覺得還可以 但是有幾個小地方當初租的時候沒注意到 就來分享一下,順便分享我的推薦連結 XDDD Racknerd有很多優惠方案...