Refs:
Https://wiki.ubuntu.com/Touch/Install#Step_1_-_Desktop_Setup
Https://wiki.ubuntu.com/Touch/Building
1) it seems that Ubuntu 12.04 or a later version is required, because adding the source on 10.04 is not successful (or it may be due to the company's network restrictions)
For development you can run any 64-bit desktop version of ubuntu between 12.04 lts and 13.04.
2) basic Android compiling environment. For details, refer to Google's website.
3) Ubuntu Development Environment
sudo add-apt-repository ppa:phablet-team/tools
Or
deb http://ppa.launchpad.net/phablet-team/tools/ubuntu [dist-codename] maindeb-src http://ppa.launchpad.net/phablet-team/tools/ubuntu [dist-codename] main
* Note: Replace [dist-codename] with precise, quantal, raring or saucy.
The first method is not successfully added, and the second method is worked.
Sudo apt-Get updatesudo apt-Get install phablet-tools Android-tools-ADB android-tools-fastboot4) install a bunch of thingssudo apt-get install git gnupg flex bison gperf build-essential \ zip bzr curl libc6-dev libncurses5-dev:i386 x11proto-core-dev \ libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 \ libgl1-mesa-dev g++-multilib mingw32 tofrodos \ python-markdown libxml2-utils xsltproc zlib1g-dev:i386 schedtool
5) You will be prompted for installation during compilation.
Sudo apt-Get install Ubuntu-Dev-Tools
6) download the source code
Repo init-u git: // phablet.ubuntu.com/cyanogenmod/android-B phablet-10.1
Repo sync
You can also use
phablet-dev-bootstrap
Tool complete
7) Compile
. Build/envsetup. Sh
In enventup. Sh, get_hybris does not seem to need to be executed every time.
It takes a long time, because pull-Lp-source will be used to download the saucy whose package is libhybirs.
Hybris_src = Ubuntu/hybris
Hybris_src_package = libhybris
Hybris_src_series = saucy
----------------------------------------------------------------
Pull-Lp-Source: Downloading libhybris version 0.1.0 + git20130606 + c5d897a-0ubuntu16
Pull-Lp-Source: Downloading libhybris_0.1.020.git20130606425c5d897a.orig.tar.gz from archive.ubuntu.com (0.483 MIB)
Pull-Lp-Source: Downloading libhybris_0.1.020.git20130606425c5d897a-0ubuntu16.debian.tar.gz from archive.ubuntu.com (0.082 MIB)
Gpgv: Signature made Fri 09 Aug 2013 10:56:57 pm CST using RSA key ID b16223a3
Gpgv: Can't check Signature: Public Key not found
Dpkg-Source: Warning: failed to verify signature on./libhybris_0.1.0 + git20130606 + c5d897a-0ubuntu16.dsc
Dpkg-Source: info: extracting libhybris in libhybris-0.1.0 + git20130606 + c5d897a
Dpkg-Source: info: Unpacking libhybris_0.1.01_git20130606109c5d897a.orig.tar.gz
Dpkg-Source: info: Unpacking libhybris_0.1.020.git20130606109c5d897a-0ubuntu16.debian.tar.gz
Dpkg-Source: info: Applying 0001-media-adding-initial-compat-files-for-media.patch
Dpkg-Source: info: Applying 0002-media-recorder-adding-initial-support-for-media-reco.patch
Dpkg-Source: info: Applying 0003-hybris-common-jb-making-libhybris-buildable-x86-64.patch
Dpkg-Source: info: Applying 0004-platforms-makefile.am-temporarily-disabling-fbdev-to.patch
Dpkg-Source: info: Applying 0005-common-hooks.c-adding-nvidia-hack-needed-by-nexus-7.patch
Dpkg-Source: info: Applying 0006-jb-linker.c-allow-debug-of-the-linker-and-hooked-sym.patch
Dpkg-Source: info: Applying 0007-jb-linker.c-ubuntu-touch-uses-dev-alog-instead-of-de.patch
Dpkg-Source: info: Applying 0008-hooks-shm-fixing-logic-with-cond-is-negative-error.patch
Dpkg-Source: info: Applying 0009-jb-linker.c-performance-debugging-output-for-prespon-li.patch
Dpkg-Source: info: Applying 0010-hardware-include-adding-audio-hal-related-headers-fr.patch
Dpkg-Source: info: Applying 0011-hooks.c-no-need-to-map-strcasestr.patch
Dpkg-Source: info: Applying 0012-hooks.c-handle-invalid-mutex-in-pthread_mutex_destro.patch
Dpkg-Source: info: Applying 0013-implement-getset-property-via-property-service.patch
Dpkg-Source: info: Applying 0014-input_compatibility_layer.cpp-avoid-blocking-on-exit.patch
Dpkg-Source: info: Applying 0015-camera_compatibility_layer.cpp-don-t-explicitly-rele.patch
Dpkg-Source: info: Applying 0016-media-adding-files-for-media-codec-support-with-stag.patch
Dpkg-Source: info: Applying 0017-common-hooks.c-handle-null-attr-in-pthread_rwlock_in.patch
Dpkg-Source: info: Applying 0018-properties.c-better-handling-for-name-and-value-size.patch
Dpkg-Source: info: Applying 0019-fix-last-argument-to-pthread_cond_timedwait.patch
8) the following is the same as Android.