This shows you the differences between two versions of the page.
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 |
- | 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/ | ||
+ | ``` | ||
+ | |||
+ | 3. Run the docker container using the following command. | ||
+ | |||
+ | ```shell | ||
+ | $ sudo docker run --privileged -i -t -v / | ||
+ | ``` | ||
+ | |||
More instructions are available [[https:// | More instructions are available [[https:// |