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~

    沒有留言:

    張貼留言

    How to disable GUI on armbian (revert the Desktop to server)

    Check which Display manager that you're using currently cat /etc/X11/default-display-manager nodm should be default if you're choose...