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~

    沒有留言:

    張貼留言

    Replace J-S J-7508 Speaker amplifier again

    忘記哪來的喇叭,好像是我哥給的,時間已經不可考 最初給我的時候應該是圖片中的擴大器異常,已經忘記是不過電還是音量控制有問題啥的 (剛才查這顆喇叭發現可能是通病,有一些文章有提到長時間使用後,音量的可變電阻可能會不正常) 我已經忘了當初檢修的過程,或是有沒有修了 最後我放棄那個擴大...