Update to documentation before Marlin
[AGL/documentation.git] / docs / 3_Developer_Guides / 1_Setting_Up_AGL_SDK.md
1 ---
2 title: Setting Up AGL SDK
3 ---
4
5 AGL provides a pre-built ready-made Software Development Kit (SDK) to help
6 quickstart the service and application development process.
7
8 1. Download the prebuilt SDK :
9
10       - **x86** : [qemux86-64](https://download.automotivelinux.org/AGL/snapshots/master/latest/qemux86-64/deploy/sdk/poky-agl-glibc-x86_64-agl-demo-platform-crosssdk-corei7-64-qemux86-64-toolchain-10.90.0+snapshot.sh)
11
12       - **ARM 32 bit** : [qemuarm](https://download.automotivelinux.org/AGL/snapshots/master/latest/qemuarm/deploy/sdk/poky-agl-glibc-x86_64-agl-demo-platform-crosssdk-armv7vet2hf-neon-vfpv4-qemuarm-toolchain-10.90.0+snapshot.sh)
13
14       - **AARCH64 - ARM 64bit** : [qemuarm64](https://download.automotivelinux.org/AGL/snapshots/master/latest/qemuarm64/deploy/sdk/poky-agl-glibc-x86_64-agl-demo-platform-crosssdk-aarch64-qemuarm64-toolchain-10.90.0+snapshot.sh)
15
16         *Henceforth,* **qemux86-64** *is used in these guides, unless specified
17         otherwise. We also use the 'agl-demo-platform-crosssdk' as example.*
18
19 2. Create application developmment directory and copy SDK into them :
20
21     ```sh
22     $ mkdir ~/agl-app
23     $ cp ~/Downloads/poky-agl-glibc-x86_64-agl-demo-platform-crosssdk-corei7-64-qemux86-64-toolchain-10.90.0+snapshot.sh ~/agl-app/
24     $ cd ~/agl-app
25     ```
26
27 3. Install the downloaded SDK :
28
29     ```sh
30     $ chmod 777 poky-agl-glibc-x86_64-agl-demo-platform-crosssdk-corei7-64-qemux86-64-toolchain-10.90.0+snapshot.sh
31     $ mkdir agl-sdk/
32     $ ./poky-agl-glibc-x86_64-agl-demo-platform-crosssdk-corei7-64-qemux86-64-toolchain-10.90.0+snapshot.sh
33     ```
34     Select target directory for SDK : `~/agl-app/agl-sdk`
35
36     ```sh
37     Automotive Grade Linux SDK installer version 10.90.0+snapshot
38     =============================================================
39     Enter target directory for SDK (default: /opt/agl-sdk/10.90.0+snapshot-corei7-64): ~/agl-app/agl-sdk
40     You are about to install the SDK to "/home/boron/agl-app/agl-sdk". Proceed [Y/n]? Y
41     Extracting SDK..........................................................................................................................................done
42     Setting it up...done
43     SDK has been successfully set up and is ready to be used.
44     Each time you wish to use the SDK in a new shell session, you need to source the environment setup script e.g.
45     $ . /home/boron/agl-app/agl-sdk/environment-setup-corei7-64-agl-linux
46     ```
47
48 4. Source the SDK environment setup, each time you wish to use the SDK in a new shell session :
49
50     ```sh
51     $ source ~/agl-app/agl-sdk/environment-setup-corei7-64-agl-linux
52     ```