2011-07-08 11:32:39 +02:00
|
|
|
/****************************************************************************
|
|
|
|
|
**
|
2018-07-11 13:53:28 +02:00
|
|
|
** Copyright (C) 2018 The Qt Company Ltd.
|
2016-01-15 14:51:16 +01:00
|
|
|
** Contact: https://www.qt.io/licensing/
|
2011-07-08 11:32:39 +02:00
|
|
|
**
|
2016-01-15 14:51:16 +01:00
|
|
|
** This file is part of the Qt Creator documentation.
|
2011-07-08 11:32:39 +02:00
|
|
|
**
|
2016-01-15 14:51:16 +01:00
|
|
|
** Commercial License Usage
|
|
|
|
|
** Licensees holding valid commercial Qt licenses may use this file in
|
|
|
|
|
** accordance with the commercial license agreement provided with the
|
|
|
|
|
** Software or, alternatively, in accordance with the terms contained in
|
|
|
|
|
** a written agreement between you and The Qt Company. For licensing terms
|
|
|
|
|
** and conditions see https://www.qt.io/terms-conditions. For further
|
|
|
|
|
** information use the contact form at https://www.qt.io/contact-us.
|
2011-07-08 11:32:39 +02:00
|
|
|
**
|
2016-01-15 14:51:16 +01:00
|
|
|
** GNU Free Documentation License Usage
|
2011-07-08 11:32:39 +02:00
|
|
|
** Alternatively, this file may be used under the terms of the GNU Free
|
|
|
|
|
** Documentation License version 1.3 as published by the Free Software
|
2016-01-15 14:51:16 +01:00
|
|
|
** Foundation and appearing in the file included in the packaging of
|
|
|
|
|
** this file. Please review the following information to ensure
|
|
|
|
|
** the GNU Free Documentation License version 1.3 requirements
|
|
|
|
|
** will be met: https://www.gnu.org/licenses/fdl-1.3.html.
|
2011-07-08 11:32:39 +02:00
|
|
|
**
|
|
|
|
|
****************************************************************************/
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
|
|
2018-07-11 13:53:28 +02:00
|
|
|
\contentspage index.html
|
2011-07-08 11:32:39 +02:00
|
|
|
\page creator-developing-generic-linux.html
|
2018-08-10 16:15:05 +02:00
|
|
|
\if defined(qtdesignstudio)
|
|
|
|
|
\previouspage creator-developing-android.html
|
2018-08-24 13:46:38 +02:00
|
|
|
\nextpage studio-advanced.html
|
2018-08-10 16:15:05 +02:00
|
|
|
\else
|
|
|
|
|
\previouspage creator-developing-baremetal.html
|
2013-09-11 12:32:20 +02:00
|
|
|
\nextpage creator-developing-ios.html
|
2018-08-10 16:15:05 +02:00
|
|
|
\endif
|
2011-07-08 11:32:39 +02:00
|
|
|
|
2012-04-12 14:33:49 +02:00
|
|
|
\title Connecting Embedded Linux Devices
|
2011-07-08 11:32:39 +02:00
|
|
|
|
2017-02-21 14:47:56 +01:00
|
|
|
You can connect embedded Linux devices to the development PC to run,
|
|
|
|
|
debug, and analyze applications built for them from \QC.
|
2011-07-08 11:32:39 +02:00
|
|
|
|
2012-04-12 14:33:49 +02:00
|
|
|
If you have a tool chain for building applications for embedded Linux
|
2013-10-09 12:22:20 +02:00
|
|
|
devices installed on the development PC, you can add
|
2012-09-03 17:50:37 +02:00
|
|
|
it to \QC. You can then select a \l{glossary-buildandrun-kit}{kit}
|
2014-12-11 15:43:19 +01:00
|
|
|
with \uicontrol {Embedded Linux} device type to
|
2017-02-21 14:47:56 +01:00
|
|
|
build applications for and run them on embedded Linux devices.
|
2011-07-08 11:32:39 +02:00
|
|
|
|
2012-04-12 14:33:49 +02:00
|
|
|
To be able to run and debug applications on embedded Linux devices, you must
|
2012-09-14 12:44:57 +02:00
|
|
|
add devices and select them in the \QC \l{glossary-buildandrun-kit}{kit}.
|
2011-07-08 11:32:39 +02:00
|
|
|
|
|
|
|
|
You use a wizard to create the connections. You can edit the settings later
|
2014-12-11 15:43:19 +01:00
|
|
|
in \uicontrol Tools > \uicontrol Options > \uicontrol Devices.
|
2011-07-08 11:32:39 +02:00
|
|
|
|
2012-09-03 17:50:37 +02:00
|
|
|
\image qtcreator-linux-device-configurations.png "Devices dialog"
|
2011-07-08 11:32:39 +02:00
|
|
|
|
2011-09-27 11:50:21 +02:00
|
|
|
You can protect the connections between \QC and a device by using
|
2011-07-08 11:32:39 +02:00
|
|
|
either a password or an SSH key. If you do not have an SSH key, you can
|
2011-09-27 11:50:21 +02:00
|
|
|
create it in \QC. For more information, see \l {Generating SSH Keys}.
|
2011-07-08 11:32:39 +02:00
|
|
|
|
2012-08-31 11:33:23 +02:00
|
|
|
To configure connections between \QC and an embedded Linux device and to
|
|
|
|
|
specify build and run settings for the device:
|
2011-07-08 11:32:39 +02:00
|
|
|
|
|
|
|
|
\list 1
|
|
|
|
|
|
2013-02-06 08:50:23 +01:00
|
|
|
\li Make sure that your device can be reached via an IP address.
|
2011-07-08 11:32:39 +02:00
|
|
|
|
2018-04-25 13:00:53 +02:00
|
|
|
\li Select \uicontrol Tools > \uicontrol Options > \uicontrol Kits >
|
|
|
|
|
\uicontrol {Qt Versions} > \uicontrol Add to add the Qt version
|
|
|
|
|
for embedded Linux.
|
2011-07-08 11:32:39 +02:00
|
|
|
|
2018-04-25 13:00:53 +02:00
|
|
|
\li Select \uicontrol Tools > \uicontrol Options > \uicontrol Kits >
|
|
|
|
|
\uicontrol Compilers > \uicontrol Add to add the compiler for
|
|
|
|
|
building the applications.
|
2011-07-08 11:32:39 +02:00
|
|
|
|
2013-02-06 08:50:23 +01:00
|
|
|
\li To deploy applications and run them remotely on devices, specify
|
2011-07-08 11:32:39 +02:00
|
|
|
parameters for accessing the devices:
|
|
|
|
|
|
|
|
|
|
\list 1
|
|
|
|
|
|
2014-12-11 15:43:19 +01:00
|
|
|
\li Select \uicontrol Tools > \uicontrol Options > \uicontrol Devices
|
|
|
|
|
> \uicontrol Add > \uicontrol {Generic Linux Device}
|
|
|
|
|
> \uicontrol {Start Wizard}.
|
2011-07-08 11:32:39 +02:00
|
|
|
|
|
|
|
|
\image qtcreator-screenshot-devconf-linux.png "Connection Data wizard"
|
|
|
|
|
|
2014-12-11 15:43:19 +01:00
|
|
|
\li In the \uicontrol {The name to identify this configuration} field,
|
2011-07-08 11:32:39 +02:00
|
|
|
enter a name for the connection.
|
|
|
|
|
|
2014-12-11 15:43:19 +01:00
|
|
|
\li In the \uicontrol {The device's host name or IP address} field,
|
2011-07-08 11:32:39 +02:00
|
|
|
enter the host name or IP address of the device.
|
2015-06-22 13:58:00 +02:00
|
|
|
This value will be available in the variable \c %{Device:HostAddress}.
|
2011-07-08 11:32:39 +02:00
|
|
|
|
2014-12-11 15:43:19 +01:00
|
|
|
\li In the \uicontrol {The username to log into the device} field,
|
2014-07-18 12:20:04 +02:00
|
|
|
enter the username to log into the device and run the
|
2011-07-08 11:32:39 +02:00
|
|
|
application as.
|
2015-06-22 13:58:00 +02:00
|
|
|
This value will be available in the variable \c %{Device:UserName}.
|
2011-07-08 11:32:39 +02:00
|
|
|
|
2014-12-11 15:43:19 +01:00
|
|
|
\li In the \uicontrol {The authentication type} field, select whether
|
|
|
|
|
to use \uicontrol Password or \uicontrol Key authentication, and enter
|
2011-07-08 11:32:39 +02:00
|
|
|
the user's password or the file that contains the user's
|
|
|
|
|
private key.
|
2015-06-22 13:58:00 +02:00
|
|
|
The latter will be available in the variable \c %{Device:PrivateKeyFile}.
|
2011-07-08 11:32:39 +02:00
|
|
|
|
2014-12-11 15:43:19 +01:00
|
|
|
\li Click \uicontrol {Next} to create the connection.
|
2011-07-08 11:32:39 +02:00
|
|
|
|
|
|
|
|
\endlist
|
|
|
|
|
|
2014-02-05 14:44:54 +01:00
|
|
|
All of these parameters can be edited later, as well as additional ones that the
|
|
|
|
|
wizard does not show because there are sensible default values. One of these is
|
2015-06-22 13:58:00 +02:00
|
|
|
the SSH port number, which is available in the variable \c %{Device:SshPort}.
|
2014-02-05 14:44:54 +01:00
|
|
|
|
|
|
|
|
|
2018-04-25 13:00:53 +02:00
|
|
|
\li Select \uicontrol Tools > \uicontrol Options > \uicontrol Kits >
|
|
|
|
|
\uicontrol Add to add a kit for building for the device. Select the
|
2012-09-03 17:50:37 +02:00
|
|
|
Qt version, compiler, and device that you added above, and choose
|
2014-12-11 15:43:19 +01:00
|
|
|
\uicontrol {Generic Linux Device} for the device type.
|
2012-08-31 11:33:23 +02:00
|
|
|
|
2013-02-06 08:50:23 +01:00
|
|
|
\li To specify build settings:
|
2011-07-08 11:32:39 +02:00
|
|
|
|
|
|
|
|
\list 1
|
|
|
|
|
|
2013-02-06 08:50:23 +01:00
|
|
|
\li Open a project for an application you want to develop for the
|
2011-07-08 11:32:39 +02:00
|
|
|
device.
|
|
|
|
|
|
2016-10-04 16:53:05 +02:00
|
|
|
\li Select \uicontrol Projects > \uicontrol {Build & Run} to enable
|
|
|
|
|
the kit that you specified above.
|
2011-07-08 11:32:39 +02:00
|
|
|
|
|
|
|
|
\endlist
|
|
|
|
|
|
2015-08-06 15:46:22 +02:00
|
|
|
\li Select \uicontrol Run to specify run settings. Usually, you can use
|
|
|
|
|
the default settings.
|
2011-07-08 11:32:39 +02:00
|
|
|
|
2012-04-12 14:33:49 +02:00
|
|
|
When you run the project, \QC deploys the application as specified by the
|
|
|
|
|
deploy steps. By default, \QC copies the application files to the device.
|
2013-10-09 12:22:20 +02:00
|
|
|
For more information, see \l{Deploying Applications to Embedded Linux Devices}.
|
2011-07-08 11:32:39 +02:00
|
|
|
|
|
|
|
|
\endlist
|
|
|
|
|
|
2017-02-10 15:17:34 +01:00
|
|
|
\include linux-mobile/linuxdev-keys.qdocinc generating ssh keys
|
|
|
|
|
\include linux-mobile/linuxdev-processes.qdocinc managing device processes
|
2011-07-08 11:32:39 +02:00
|
|
|
*/
|