![mangOH Red Manual Download Page 39](http://html.mh-extra.com/html/mangoh/red/red_manual_699547039.webp)
Rev 3 9/21/17
39
A
A: Develop and Test applications
In this section, you will learn how to develop applications in the Legato development environment, install them onto
your mangOH Red, and test that they run.
Legato provides two interfaces for developing applications:
•
CLI—Command Line Interpreter in a terminal window.
•
Developer Studio—A GUI (Graphical User Interface) development environment.
This section describes development using CLI.
A.1 Develop using the CLI—Command Line Interpreter
A.1.1 Configure the Dev Machine’s Terminal Windows for
Development
To use the CLI in a terminal window to compile and build applications, you must configure the window to work with
Legato tools.
Each time you open a new terminal window, do the following:
1.
Configure the window:
$ cfglegato
Note:
You will be updating application source code in this section. Use whichever editor you prefer—
these instructions do not refer to a specific editor.
Note:
This tutorial touches on the basics of using the Legato development environment. After completing
the examples in this chapter, see
http://legato.io/legato-docs/latest/mangOH_developers.html
for detailed
references, forums, etc.
Note:
If you installed Legato to a subdirectory of your home directory using a different name than
’legato’, replace "~/legato" with "~/<yourDirectory>" in the commands in this section.
Note:
If you did not set up the cfglegato command in
Platform and mangOH Red Platform on Target
, do it now.
Power is OFF
Ignore these toolchain warnings.