2 title: IVI Flutter apps
5 # Build and Boot AGL Flutter IVI dashboard demo applications made for GSoC
7 ## 0. Prepare Your Build Host
9 - Install the required tools to build an AGL Image. For detailed explanation, check [Preparing Your Build host](https://docs.automotivelinux.org/en/master/#01_Getting_Started/02_Building_AGL_Image/02_Preparing_Your_Build_Host/)
11 ## 1. Define Your Top-Level Directory
14 $ export AGL_TOP=$HOME/AGL
15 $ echo 'export AGL_TOP=$HOME/AGL' >> $HOME/.bashrc
19 ## 2. Download the repo Tool and Set Permissions
23 $ export PATH=$HOME/bin:$PATH
24 $ echo 'export PATH=$HOME/bin:$PATH' >> $HOME/.bashrc
25 $ curl https://storage.googleapis.com/git-repo-downloads/repo > $HOME/bin/repo
26 $ chmod a+x $HOME/bin/repo
29 ## 3. Download the AGL Source Files
30 To download the latest **master** branch AGL files, use the following commands:
35 $ repo init -u https://gerrit.automotivelinux.org/gerrit/AGL/AGL-repo
39 ## 4. Initialize the build environment using aglsetup.sh Script
40 To initialize the build environment, we must use the setup script.
41 This script is available here:
43 $ $AGL_TOP/master/meta-agl/scripts/aglsetup.sh
49 $ source master/meta-agl/scripts/aglsetup.sh -b build-flutter-dashboard -m qemux86-64 agl-demo agl-devel
52 - Here `-b` is used to specify the build directory and `-m` is used to specify the target platform.
54 - Running this script, will create a build directory if it does not exist. Default build directory: `$AGL_TOP/master/build-flutter-dashboard`
55 - Default target paltform: `qemux86-64`
60 $ cd $AGL_TOP/build-flutter-dashboard
61 $ source agl-init-build-env
62 $ bitbake agl-ivi-demo-platform-flutter
65 ## 6. Deploying the AGL Demo Image
66 Boot the image using QEMU
69 $ cd $AGL_TOP/build-flutter-dashboard
70 $ source agl-init-build-env
71 $ runqemu kvm serialstdio slirp publicvnc
74 ## 6. Run the Graphics
75 To get graphics of the app, you need VNC client like VNC Viewer or Vinagre
78 - Enter the server address as `localhost:0`
80 That's it, you should get something like this:
81 ![Screenshot](images/ivi_homescreen.PNG)