Develop And Test Applications; Develop Using The Cli-Command Line Interpreter; Configure The Dev Machine's Terminal Windows For Development - mangOH Red Getting Started

Wpx5xx + linux dev machine + cli
Hide thumbs Also See for Red:
Table of Contents

Advertisement

A: Develop and Test applications
alias cfglegato=\
"pushd . && cd ~/legato_framework/legato && source ./bin/configlegatoenv ; popd"
Rev 2 8/23/17
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.
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.
Tip:
This tutorial touches on the basics of using the Legato development environment. After
completing the examples in this chapter, see
opers.html
for detailed references, forums, etc.
A.1 Develop using the CLI—Command Line
Interpreter
A.1.1 Configure the Dev Machine's Terminal
Windows for Development
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.
To use the CLI in a terminal window to compile and build applications, you must
configure the window to work with Legato tools.
The easiest way to do this is to define a short 'alias' in your ~/.bashrc file (the startup
script that runs each time you open a new terminal window) that you can use to run
the required commands (instead of entering the commands manually every time):
To modify your .bashrc (you only need to do this once on your dev machine):
1. Open a terminal window.
2. Edit your ~/.bashrc file and add the following lines at the end of the file:
3. Save and close the file.
4. Run the script to set the new environment variable for your current window:
$ . ~/.bashrc
42
http://legato.io/legato-docs/latest/mangOH_devel-
A
41110481

Advertisement

Table of Contents
loading

Table of Contents