2011-07-08 11:32:39 +02:00
|
|
|
/****************************************************************************
|
|
|
|
|
**
|
|
|
|
|
** This file is part of Qt Creator
|
|
|
|
|
**
|
2012-01-25 16:28:25 +01:00
|
|
|
** Copyright (c) 2012 Nokia Corporation and/or its subsidiary(-ies).
|
2011-07-08 11:32:39 +02:00
|
|
|
**
|
2012-07-19 12:26:56 +02:00
|
|
|
** Contact: http://www.qt-project.org/
|
2011-07-08 11:32:39 +02:00
|
|
|
**
|
|
|
|
|
**
|
|
|
|
|
** GNU Free Documentation License
|
|
|
|
|
**
|
|
|
|
|
** Alternatively, this file may be used under the terms of the GNU Free
|
|
|
|
|
** Documentation License version 1.3 as published by the Free Software
|
|
|
|
|
** Foundation and appearing in the file included in the packaging of this
|
|
|
|
|
** file.
|
|
|
|
|
**
|
|
|
|
|
**
|
|
|
|
|
****************************************************************************/
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
|
|
|
|
|
|
\contentspage index.html
|
2011-09-14 16:36:18 +02:00
|
|
|
\previouspage creator-developing-meego.html
|
2011-07-08 11:32:39 +02:00
|
|
|
\page creator-developing-generic-linux.html
|
2011-09-14 16:36:18 +02:00
|
|
|
\nextpage creator-developing-maemo.html
|
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
|
|
|
|
2012-04-12 14:33:49 +02:00
|
|
|
You can connect embedded Linux devices to the development PC to build, run,
|
2011-09-27 11:50:21 +02:00
|
|
|
debug, and analyze applications on 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
|
2011-07-08 11:32:39 +02:00
|
|
|
devices (with no MADDE support) 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}
|
|
|
|
|
with \gui {Embedded Linux} device type to
|
|
|
|
|
build and run applications 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-03 17:50:37 +02:00
|
|
|
create device configurations 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
|
2012-09-03 17:50:37 +02:00
|
|
|
in \gui {Tools > Options > Devices > 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
|
|
|
|
|
|
|
|
|
|
\o Make sure that your device can be reached via an IP address.
|
|
|
|
|
|
2011-10-18 11:27:30 +02:00
|
|
|
\o Select \gui {Tools > Options > Build & Run > Qt Versions > Add} to
|
|
|
|
|
add the Qt version
|
2012-04-12 14:33:49 +02:00
|
|
|
for the embedded Linux.
|
2011-07-08 11:32:39 +02:00
|
|
|
|
2012-08-24 08:31:01 +02:00
|
|
|
\o Select \gui {Tools > Options > Build & Run > Compilers > Add} to
|
|
|
|
|
add the compiler
|
|
|
|
|
for building the applications.
|
2011-07-08 11:32:39 +02:00
|
|
|
|
|
|
|
|
\o To deploy applications and run them remotely on devices, specify
|
|
|
|
|
parameters for accessing the devices:
|
|
|
|
|
|
|
|
|
|
\list 1
|
|
|
|
|
|
2012-09-03 17:50:37 +02:00
|
|
|
\o Select \gui {Tools > Options > Linux Devices > Devices > Add
|
|
|
|
|
> Generic Linux Device > Start Wizard}.
|
2011-07-08 11:32:39 +02:00
|
|
|
|
|
|
|
|
\image qtcreator-screenshot-devconf-linux.png "Connection Data wizard"
|
|
|
|
|
|
|
|
|
|
\o In the \gui {The name to identify this configuration} field,
|
|
|
|
|
enter a name for the connection.
|
|
|
|
|
|
|
|
|
|
\o In the \gui {The device's host name or IP address} field,
|
|
|
|
|
enter the host name or IP address of the device.
|
|
|
|
|
|
|
|
|
|
\o In the \gui {The user name to log into the device} field,
|
|
|
|
|
enter the user name to log into the device and run the
|
|
|
|
|
application as.
|
|
|
|
|
|
|
|
|
|
\o In the \gui {The authentication type} field, select whether
|
|
|
|
|
to use \gui Password or \gui Key authentication, and enter
|
|
|
|
|
the user's password or the file that contains the user's
|
|
|
|
|
private key.
|
|
|
|
|
|
|
|
|
|
\o Click \gui {Next} to create the connection.
|
|
|
|
|
|
|
|
|
|
\endlist
|
|
|
|
|
|
2012-09-03 17:50:37 +02:00
|
|
|
\o Select \gui Tools > \gui Options > \gui {Build & Run} > \gui Kits
|
|
|
|
|
> \gui Add to add a kit for building for the device. Select the
|
|
|
|
|
Qt version, compiler, and device that you added above, and choose
|
|
|
|
|
\gui {Generic Linux Device} for the device type.
|
2012-08-31 11:33:23 +02:00
|
|
|
|
2011-07-08 11:32:39 +02:00
|
|
|
\o To specify build settings:
|
|
|
|
|
|
|
|
|
|
\list 1
|
|
|
|
|
|
|
|
|
|
\o Open a project for an application you want to develop for the
|
|
|
|
|
device.
|
|
|
|
|
|
2012-09-03 17:50:37 +02:00
|
|
|
\o Select \gui {Projects > Build & Run Settings > Add Kit}.
|
2011-07-08 11:32:39 +02:00
|
|
|
|
2012-09-03 17:50:37 +02:00
|
|
|
\o Select the kit that you added above.
|
2011-07-08 11:32:39 +02:00
|
|
|
|
|
|
|
|
\endlist
|
|
|
|
|
|
2012-08-31 11:33:23 +02:00
|
|
|
\o To specify run settings, select \gui Run.
|
2011-07-08 11:32:39 +02:00
|
|
|
|
2012-04-12 14:33:49 +02:00
|
|
|
\image qtcreator-run-settings-linux-devices.png "Run settings for embedded Linux devices"
|
2011-07-08 11:32:39 +02:00
|
|
|
|
2012-08-31 11:33:23 +02:00
|
|
|
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.
|
|
|
|
|
For more information, see \l{Deploying Applications to Linux-Based Devices}.
|
2011-07-08 11:32:39 +02:00
|
|
|
|
|
|
|
|
\endlist
|
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|