|
Veethree D7 SDK
|
The toolchain for host builds needs to be provided by the Linux distro. Please refer to External dependencies for the host toolchain to install required toolchains before proceeding.
Activate the development environment shell
This prepares the shell for building the application using the host environment from the D7 SDK.
Navigate to application source directory to create build directory
We will use the QML application from the examples/gui/qml-analog directory as an example. As seen on step 6 of this walkthrough (Building a QML application using the D7 SDK), this example demonstrates integrating the D7 SDK and Qt libraries into a single application.
For this example, you will need to have the Qt libraries installed separately from the D7 SDK. Please refer to the guide for installing Qt.
While running on the host, the sensor readings are mocked, since there are no sensors that can be used there. They will all read 249 Ohms.
Steps to build:
Source the environment script with this command:
Navigate to the source directory and create the build directory:
Configure and build the project.
The previous commands should run without any errors and produce output similar to the following.
You should now be able to run qml-analog-app from the build directory and it should look like this:
If you would like to configure QtCreator to build and run SDK apps on the host, see Running the application on the host via Qt Creator
If you wish to see examples of using the D7 SDK's APIs, please see the D7 software development kit examples section.