Installing the Seadot SDK

Aus Seadot Wiki
Wechseln zu: Navigation, Suche

Inhaltsverzeichnis

The Idea Behind the Seadot SDK Connector

The Seadot SDK Connector provides surrogates for common developer tools that you use on your PC. Unlike the real tools, these surrogates take care of syncing your project data to your Seadot device or virtual machine and running the developer tools on the remote device or virtual machine.

As a developer you work with the tools on your PC as normal, but the SDK Connector builds and runs the code directly on Seadot.

The Seadot SDK Connector can either be used on the command line, or with the Qt Creator IDE.


Supported Platforms

Seadot SDK Connector for Linux

Get the latest SDK Connector for Linux (April 7, 2013 - 84 KB).

Seadot SDK Connector for Mac OS X

Mac OS X support is work-in-progress. For the time being you can use the Linux version on Mac OS X.

Seadot SDK Connector for Windows

Windows support is work-in-progress. For the time being you can use the Linux version on Windows on the console together with MSYS.


Enabling Developer Access on the Seadot Device or Virtual Machine

The SDK uses key-based SSH access to the Seadot device or virtual machine.

To enable the developer access, run the following line on the device or virtual machine as user seadot (IMPORTANT!)

/opt/org.seadot.sdk/bin/enable_developer_access yes

To disable developer access again, run the line

/opt/org.seadot.sdk/bin/enable_developer_access no

If you just want to see whether developer access was enabled, run the tool without arguments

/opt/org.seadot.sdk/bin/enable_developer_access

Installation (Linux)

$ ./INSTALL.sh

You will be greeted by the installer.

We're now going to install the Seadot SDK Connector.

Please specify where you want the SDK tools to be installed, or leave empty
to install to the default place. Default is: /home/mgrimme/seadot-sdk
> 

You can specify an installation directory here, or just accept the default value.

 * copying templates/wizards/seadot -> /home/mgrimme/.config/QtProject/qtcreator
 * copying build-rpm -> /home/mgrimme/seadot-sdk/build-rpm
 * copying g++ -> /home/mgrimme/seadot-sdk/g++
 * copying launcher.sh -> /home/mgrimme/seadot-sdk/launcher.sh
 * copying make -> /home/mgrimme/seadot-sdk/make
 * copying qmake -> /home/mgrimme/seadot-sdk/qmake
 * copying qt4 -> /home/mgrimme/seadot-sdk/qt4
 * copying sdk-setup -> /home/mgrimme/seadot-sdk/sdk-setup
 * copying shell -> /home/mgrimme/seadot-sdk/shell

Installation finished.

Now that the files have been installed, you're being asked for a connection to your Seadot device or virtual machine. Leave empty to accept the proposed default values.

Please configure the connection to your Seadot device or virtual machine.
You may change this setting later using '/home/mgrimme/seadot-sdk/sdk-setup'.
DEVICE_NAME [Device_1365339958] > SeadotVM
REMOTE_HOST [127.0.0.1] > 
REMOTE_PORT [2200] > 

If you have a Seadot device, use your device's IP address on the network for REMOTE_HOST and use 22 for REMOTE_PORT. If you have a Seadot virtual machine, use 127.0.0.1 for REMOTE_HOST and use 2200 for REMOTE_PORT.

Development Devices

 -> 1365339958 : SeadotVM [127.0.0.1:2200]

'->' marks the currently selected device.

Please (re)start QtCreator and configure it to use the tools from
'/home/mgrimme/seadot-sdk'.
~/seadot-sdk/shell uname

You should see something like this:

[SeadotVM: seadot@127.0.0.1]
Linux

Sdk-qtcreator-options.jpg

Sdk-qtcreator-compiler.jpg

Sdk-qtcreator-compiler-path.jpg

Sdk-qtcreator-qt.jpg

Sdk-qtcreator-kit.jpg

You're now ready to create Seadot applications with QtCreator.


Using the Seadot SDK Connector on the Console

The Seadot SDK contains surrogate programs for some tools:

Some of these commands synchronize data between your local project directory and device where appropriate.


Using the Remote Shell

The shell command allows you to execute shell commands on the device.

For instance, to list the contents of the build directory of your current project on the device:

shell ls -l

To see the running processes on the device:

shell ps -ef

To monitor the processes and load on the device:

shell top

To get a shell on the device as user seadot.

shell bash

Type exit or press Ctrl-D to exit the remote shell.

To get a root shell on the device.

shell su -

Please note that the invokation of the shell command does not synchronize data between your project and the device.

Meine Werkzeuge
Namensräume
Varianten
Aktionen
Navigation
Werkzeuge