Khadas Docs

Amazing Khadas, always amazes you!

User Tools

Site Tools


products:sbc:edge2:development:android:install-toolchains

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
products:sbc:edge2:development:android:install-toolchains [2022/09/28 09:40]
nick
products:sbc:edge2:development:android:install-toolchains [2024/09/18 22:06] (current)
william
Line 8: Line 8:
 This document mainly describes how to install the tools used to compile Edge2 Android source code. This document mainly describes how to install the tools used to compile Edge2 Android source code.
  
-===== Install =====+==== Install directly on PC ====
  
-To build an environment for compiling Android. The following software packages need to be installed:+1. To build an environment for compiling Android. The following software packages need to be installed.
  
 ```shell ```shell
Line 18: Line 18:
 $ sudo apt-get install openjdk-8-jdk $ sudo apt-get install openjdk-8-jdk
 ``` ```
 +
 +==== Use docker container ====
 +
 +1. Install docker.
 +
 +```shell
 +$ sudo apt update
 +$ sudo apt install docker docker.io
 +```
 +2. Pull the khadas docker image.
 +
 +```shell
 +$ sudo docker pull wesion/khadas_android:v0.6
 +```
 +
 +3. Run the docker container using the following command.
 +
 +```shell
 +$ sudo docker run --privileged -i -t -v /home/you_name:/home/android wesion/khadas_android:v0.6 bash
 +```
 +
  
 More instructions are available [[https://source.android.com/source/initializing.html]]. More instructions are available [[https://source.android.com/source/initializing.html]].
Last modified: 2022/09/28 09:40 by nick