Difference between revisions of "IMX8/iMX8MEVK/Android/Building Android"
m (Dchaverri moved page IMX8/iMX8MEVK/Building Android to IMX8/iMX8MEVK/Android/Building Android) |
|||
Line 1: | Line 1: | ||
<noinclude>{{IMX8/Head}}</noinclude> | <noinclude>{{IMX8/Head}}</noinclude> | ||
+ | ===Requirements=== | ||
+ | The minimum recommended system requirements are the following: | ||
+ | *16 GB RAM | ||
+ | *300 GB hard disk | ||
+ | |||
+ | ===Establishing a Build Environment (Host Machine)=== | ||
+ | The host development environment for Android is based on Ubuntu and Debian. Please install Ubuntu version [http://www.ubuntu.com/download/desktop 14.04/16.04 64bit LTS] or [https://www.debian.org/releases Debian 8.4 64bit]. Those are the recommended Operating Systems for Android. | ||
+ | |||
+ | ====Setting up a Linux Environment==== | ||
+ | * '''Select a Branch:''' You can choose to download and build the latest source code (called ''master''), in which case you will simply omit the branch specification when you initialize the repository. Otherwise, you should specify the branch you plan to use. Find more information about platform codenames, versions, API Levels and NDK Releases in [https://source.android.com/setup/start/build-numbers.html this page]. You can access the whole Git repositories on Android in [https://android.googlesource.com/ here]. | ||
+ | |||
+ | ====Required Packages==== | ||
+ | In addition to the packages requested on the [http://source.android.com/source/initializing.html Android website], the following packages are also needed: | ||
+ | <pre> | ||
+ | sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl zlib1g-dev gcc-multilib g++-multilib | ||
+ | sudo apt-get install libc6-dev-i386 lib32ncurses5-dev x11proto-core-dev libx11-dev lib32z-dev ccache libgl1-mesa-dev libxml2-utils | ||
+ | sudo apt-get install xsltproc unzip mtd-utils u-boot-tools lzop liblzo2-2 liblzo2-dev zlib1g-dev liblz-dev uuid uuid-dev android-tools-fsutils | ||
+ | sudo apt-get install bc | ||
+ | sudo apt-get install device-tree-compiler | ||
+ | sudo apt-get install gdisk | ||
+ | </pre> | ||
+ | |||
+ | ====Installing the Java Development Kit (JDK)==== | ||
+ | The ''master'' branch of Android comes with pre-built versions of OpenJDK below '''prebuilts/jdk/''' so no additional installation is required. | ||
+ | * For Ubuntu >= 15.04 run the following: | ||
+ | <pre> | ||
+ | sudo apt-get update | ||
+ | sudo apt-get install openjdk-8-jdk | ||
+ | </pre> | ||
+ | If your Ubuntu version is missing the package (which shouldn't happen), add the PPA repository and run the previous commands again: | ||
+ | <pre> | ||
+ | sudo add-apt-repository ppa:openjdk-r/ppa | ||
+ | </pre> | ||
+ | Update the default Java version by running: | ||
+ | <pre> | ||
+ | sudo update-alternatives --config java | ||
+ | sudo update-alternatives --config javac | ||
+ | </pre> | ||
<noinclude>{{IMX8/Foot|<Replace with "previous" page>|<Replace with "next" page>}}</noinclude> | <noinclude>{{IMX8/Foot|<Replace with "previous" page>|<Replace with "next" page>}}</noinclude> |
Revision as of 19:41, 12 November 2018
|
Contents
Requirements
The minimum recommended system requirements are the following:
- 16 GB RAM
- 300 GB hard disk
Establishing a Build Environment (Host Machine)
The host development environment for Android is based on Ubuntu and Debian. Please install Ubuntu version 14.04/16.04 64bit LTS or Debian 8.4 64bit. Those are the recommended Operating Systems for Android.
Setting up a Linux Environment
- Select a Branch: You can choose to download and build the latest source code (called master), in which case you will simply omit the branch specification when you initialize the repository. Otherwise, you should specify the branch you plan to use. Find more information about platform codenames, versions, API Levels and NDK Releases in this page. You can access the whole Git repositories on Android in here.
Required Packages
In addition to the packages requested on the Android website, the following packages are also needed:
sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl zlib1g-dev gcc-multilib g++-multilib sudo apt-get install libc6-dev-i386 lib32ncurses5-dev x11proto-core-dev libx11-dev lib32z-dev ccache libgl1-mesa-dev libxml2-utils sudo apt-get install xsltproc unzip mtd-utils u-boot-tools lzop liblzo2-2 liblzo2-dev zlib1g-dev liblz-dev uuid uuid-dev android-tools-fsutils sudo apt-get install bc sudo apt-get install device-tree-compiler sudo apt-get install gdisk
Installing the Java Development Kit (JDK)
The master branch of Android comes with pre-built versions of OpenJDK below prebuilts/jdk/ so no additional installation is required.
- For Ubuntu >= 15.04 run the following:
sudo apt-get update sudo apt-get install openjdk-8-jdk
If your Ubuntu version is missing the package (which shouldn't happen), add the PPA repository and run the previous commands again:
sudo add-apt-repository ppa:openjdk-r/ppa
Update the default Java version by running:
sudo update-alternatives --config java sudo update-alternatives --config javac