Veethree D7 SDK
Loading...
Searching...
No Matches
Running the application on the host via Qt Creator

As mentioned in the previous section, applications built for the host that use Qt libraries will use the libraries installed outside of the D7 SDK.

The Qt versions must match between the D7 SDK and the Qt libraries installed separately. Please refer to the guide for installing Qt to check the currently supported version.

Qt Creator host build kit

It is good practice to clone the default Desktop Kit from Qt Creator and modify it as described below.

Clone the desktop kit

Add the following environment variables in the Build Environment. This guide assumes the default installation directories for Qt and for the D7 SDK:

CMAKE_PREFIX_PATH=$HOME/Qt/6.10.2/gcc_64:$HOME/d7-sdk/toolchain/sysroots/x86_64-veethree-linux/usr
OECORE_NATIVE_SYSROOT=$HOME/d7-sdk/toolchain/sysroots/x86_64-veethree-linux
Edit the desktop kit

Restart Qt creator.

Configuring the project

Launch Qt Creator and open the qml-analog project by double-clicking on the CMakeLists.txt file. When prompted for a kit selection, make sure to select the cloned kit from the previous step

Select cloned kit

And click on "Configure Project".

This should run without errors.

Launching the project

Select the cloned desktop kit in the section on the bottom left:

Select cloned desktop kit for running

It should now be possible to run the application by just pressing the green "Play" button.

(Optional) Troubleshooting

If an error similar to this occurs:

EGL not available error

Try unchecking Add build library search path to LD_LIBRARY_PATH in the "Run" configuration of the cloned desktop kit.

Cloned kit run configuration

D7 SDK programming examples

This is the end of the guide. If you wish to see examples of using the D7 SDK's APIs, please see the D7 software development kit examples section.