Last edited one week ago

X-LINUX-QT Starter Package

Applicable for STM32MP13x lines, STM32MP15x lines, STM32MP21x lines, STM32MP23x lines, STM32MP25x lines

Information
This version of X-LINUX-QT expansion package is compatible with ecosystem release v7.0.0 .

This article explains how to generate and install the X-LINUX-QT starter package.

X-LINUX-QT starter package is not delivered for version v2.4.0 compatible Yocto-based OpenSTLinux embedded software v7.0.0.

Nevertheless the starter package can be generated thanks to the X-LINUX-QT_Distribution_Package. This article is still useful for this version of X-LINUX-QT expansion package.


1. Prerequisites[edit | edit source]

Needed prerequisites are described in X-LINUX-QT expansion package#Prerequisites.

2. Generate and install X-LINUX-QT starter package[edit | edit source]

2.1. Generate the X-LINUX-QT starter package image[edit | edit source]

The X-LINUX-QT starter package must be generated following instructions available in X-LINUX-QT_Distribution_Package#Re-build_the_X-LINUX-QT_starter_package.

2.2. Load the generated image in the board[edit | edit source]

When the image st-image-qt is available, it must be loaded in the board.
"How to load an image in an ST board" is explained in' Image flashing' chapter available in one of articles available in Category:Starter Package : find the one corresponding to your ST board, and follow the flashing instructions.

2.3. Boot the board[edit | edit source]

When the image st-image-qt has been loaded in the board, the board must be boot.
"How to boot an ST board" is explained in' Booting the board' chapter available in one of articles available in Category:Starter Package: find the one corresponding to your ST board, and follow the flashing instructions.

3. Starter package expected results[edit | edit source]

The X-LINUX-QT starter package is firstly installed (see previous chapters), then follow steps defined below depending if your board supports the GPU or not.

3.1. For board without GPU support[edit | edit source]

STM32MP135F-DK Discovery kit and STM32MP215F-DK Discovery kit do not support the GPU. For such board, the splash screen is displayed.

In order to run a Qt example, please use following commands. They can depend on the X-LINUX-QT/OpenSTLinux release you have installed.

First of all, "weston graphical service" needs to be stopped:

systemctl stop weston-graphical-session.service

Then any Qt example can be run such as analog clock widget:

/usr/share/examples/widgets/widgets/analogclock/analogclock 

or (path changed with Qt version)

/usr/share/examples/widgets/widgets/analogclock/bin/analogclock 

3.2. For board with GPU support[edit | edit source]

STM32MP157F-DK2 Discovery kit and STM32MP257F-DK Discovery kit support the GPU. For such boards, once the Weston graphical service is restarted, the new Qt™ STLauncher is displayed.

  • The Qt™ STLauncher splash screen is displayed for few seconds:
STLauncher Splash screen
  • The Main Window displays all compatible installed applications.
  • To display more information about the running hardware and software:
    • Click on the Settings button on the top right of the screen:
STLauncher Main window
  • The SETTINGS screen is displayed:
STLauncher Settings window
  • Click on the INFORMATIONS button.
  • The INFORMATIONS screen is displayed:
STLauncher Information window

4. Run examples from the starter package[edit | edit source]

4.1. Legacy demonstrations[edit | edit source]

Demonstrations, available via the GTK demo launcher, are also supported by the new Qt™ STLauncher.
For example, run the 3D Cube Demo from the new Qt™ STLauncher:

  • Select the demo's icon (Selected icon will be in Yellow)
STLauncher - Selected 3D Cube Icon
  • Click on the demo's icon again to run the demo:
Running 3D Cube Demo

4.2. New Qt examples[edit | edit source]

Qt™ OpenGL Cube example

The Qt™ OpenGL Cube example is now displayed in the new Qt™ STLauncher.

In order to run the examples, select its icon first then click on it again to start it.

  • Select the Qt™ OpenGL Cube example icon (Selected icon will be in Yellow):
STLauncher - Selected OpenGL Cube Icon
  • Click on the demo's icon again to run the demo:
Running OpenGL Cube Demo

4.3. New Qt demonstrations[edit | edit source]

The new Medical and RobotArm3D demonstrations are displayed in the new Qt™ STLauncher. In order to run the demonstration, select its icon first then click on it again to start it.

  • ST Medical
ST Medical Demo - Startup screen



Running ST Medical Demo
  • ST RobotArm3D Demo
ST RobotArm3D Demo - Startup screen



Running ST RobotArm3D Demo