(→Preparing the netbook) |
(→Configuring device access in Qt Creator) |
||
| Line 43: | Line 43: | ||
== Configuring device access in Qt Creator == | == Configuring device access in Qt Creator == | ||
| - | + | [[File:sdk-1.2-qt-creator-remote-device-configuration.png|thumb|600px]] | |
| - | + | ||
| - | + | ||
| - | + | ||
| - | [[File: | + | |
'''To configure device access:''' | '''To configure device access:''' | ||
| - | # Open | + | # Open ''Tools'' > ''Options'' > ''Projects'' > ''MeeGo Device Configurations''. |
| - | # | + | # Create a new Device Configuration by clicking on ''Add''. |
| - | # Give the new Device Configuration a name in the Configuration Name text field, and add the following settings in the other test fields: | + | # Give the new Device Configuration a name in the ''Configuration Name'' text field, and add the following settings in the other test fields: |
| - | #* Device type: Remote device | + | #* ''Device type'': '''Remote device''' |
| - | #* Authentication type: Password | + | #* ''Authentication type'': select '''Password''' |
| - | #* Host Name: <device IP address> | + | #* ''Host Name'': '''<device IP address>''' |
| - | #* SSH Port: 22 | + | #* ''SSH Port'': '''22''' |
| - | #* | + | #* ''Free ports'': '''10000-10100''' |
| - | #: '''Note:''' If this | + | #*: These will be used to connect Qt Creator to the gdb debugging server. |
| - | #* Connection Timeout: 30 | + | #*: '''Note:''' If some ports in this range are not free, select a different range. |
| - | #* | + | #* ''Connection Timeout'': '''30''' |
| - | #* Password: meego | + | #* ''Username'': '''root''' |
| - | # Click | + | #* ''Password'': '''meego''' |
| - | # To test the settings, click | + | # Click ''Apply''. |
| + | # To test the settings, click ''Test''. | ||
#: The message "Device configuration successful." is displayed in Device Configuration Test window. | #: The message "Device configuration successful." is displayed in Device Configuration Test window. | ||
| - | # Click | + | # Click ''Close'' and ''OK''. |
If the message "Could not connect to host" is displayed, check your setting selections and make sure that the network is connected. | If the message "Could not connect to host" is displayed, check your setting selections and make sure that the network is connected. | ||
This page is in progress and is likely to contain incorrect instructions at present -- Elliot Smith 11:23, 4 May 2011 (UTC)
This page explains how to prepare a netbook so it can be used as a deployment target for MeeGo development ???check link.
If you don't have access to a netbook which can run MeeGo, you can use QEMU or Xephyr as a deployment target instead:
First you need to install MeeGo on the netbook. Instructions are available here.
You will need a working network connection on the netbook, to make it accessible to the development host machine.
Next, add some extra packages and configuration so you can deploy to the netbook from Qt Creator. The following steps require a command line on the netbook; this is available from the Applications zone, under System Tools > Terminal.
On the command line:
sudo zypper install openssh-server
Then start the SSH server manually (you'll need to do this just after you've installed it, otherwise it won't be available until you reboot):
sudo /etc/init.d/sshd start
And add it to the init sequence so it starts at boot time:
sudo chkconfig --add sshd
sudo zypper install gdb-gdbserver
xhost +SI:localuser:root
You will need to do this each time you want to use the netbook as a deployment target (i.e. each time you reboot it).
The netbook should now be ready for work as a deployment target. See the hello world for an example of how to deploy to the netbook from Qt Creator.
To configure device access:
If the message "Could not connect to host" is displayed, check your setting selections and make sure that the network is connected.