Skip to content

Commit 7706ef6

Browse files
jsuhaas22cshilwant
authored andcommitted
feat: linux: Add compilation instructions for EdgeAI GUI App
meta-arago-toolchain lacks Qt6 support for compiling EdgeAI GUI App. The correct way to compile it is to use Yocto. However, for quicker way to compile it, we can also use ARM64 Docker containers. Provide a guide on how to compile edgeai-gui-app using ARM64 Docker container which TI provides [0]. [0] https://github.com/TexasInstruments/ti-docker-images/pkgs/container/debian-arm64 Signed-off-by: Suhaas Joshi <[email protected]>
1 parent 4aa1327 commit 7706ef6

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

source/linux/Demo_User_Guides/Edge_AI_Gallery_User_Guide.rst

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,3 +139,50 @@ The edge AI gallery launches on Linux startup. Follow the below instructions to
139139
.. ifconfig:: CONFIG_part_variant in ('J784S4')
140140

141141
13. For more information on edge AI software stack, refer `Edge AI Documentation <https://software-dl.ti.com/jacinto7/esd/processor-sdk-linux-edgeai/AM69A/10_01_00/exports/docs/common/sdk_overview.html>`_
142+
143+
Compiling EdgeAI GUI App
144+
========================
145+
146+
The ideal way to compile EdgeAI GUI App is to trigger a Yocto
147+
build. But for a quicker way to do it, especially during development,
148+
TI provides a `debian-arm64
149+
<https://github.com/TexasInstruments/ti-docker-images/pkgs/container/debian-arm64>`__
150+
Docker image. This image already has all dependencies required
151+
for compiling edgeai-gui-app.
152+
153+
First, clone EdgeAI GUI App on host:
154+
155+
.. code:: console
156+
157+
git clone https://git.ti.com/git/apps/edgeai-gui-app.git
158+
export EDGEAI_GUI_APP_REPO="$(pwd)/edgeai-gui-app"
159+
cd ${EDGEAI_GUI_APP_REPO}
160+
161+
Then, pull TI's debian-arm64 Docker image and run it:
162+
163+
.. code:: console
164+
165+
docker pull ghcr.io/texasinstruments/debian-arm64:latest
166+
docker run -it -v ${EDGEAI_GUI_APP_REPO}:/root/ti-apps-launcher ghcr.io/texasinstruments/debian-arm64 bash
167+
168+
Finally, run:
169+
170+
.. code:: console
171+
172+
cmake -B build -S . -DRT_BUILD=0 # if target is RT image, make -DRT_BUILD=1
173+
make -C build
174+
175+
The compiled binary should be ``build/edgeai-gui-app``.
176+
177+
Copy the compiled binary to the :file:`/usr/bin` of the target:
178+
179+
.. code:: console
180+
181+
scp ${EDGEAI_GUI_APP_REPO}/build/edgeai-gui-app root@<ip-addr-of-device>:/usr/bin/
182+
183+
.. note::
184+
185+
This is a quick and easy way to compile ti-apps-launcher during
186+
development, but it is a good idea to validate with Yocto builds
187+
often. There is a possibility that compiler mismatch could present
188+
issues in the run up to production.

0 commit comments

Comments
 (0)