|
Veethree D7 SDK
|
For this we will be using the example application from examples/hello-world. This application is the usual Hello world! app and will serve as a good example for compiling a simple app using the D7 SDK toolchain, both for the target device and for the host machine.
Open a terminal and navigate to the D7 SDK installation directory. From there run:
This prepares the shell for building the application using the host environment from the D7 SDK.
Note: You will need a toolchain compatible with your host machine. See External dependencies for the host toolchain.
Open a terminal and navigate to the D7 SDK installation directory. From there run:
This prepares the shell for building the application using the host environment from the D7 SDK.
Note: You will need a toolchain compatible with your host machine. See External dependencies for the host toolchain.
Now navigate to the application source directory and run:
These commands should run without any errors and produce output similar to the following:
Similarly to the host build, we need to prepare the development shell for building the application for the target device.
Open a new terminal, navigate to the D7 SDK installation directory and run:
Open a new CMD window, navigate to the D7 SDK installation directory and run:
From the examples/hello-world directory
These commands should run without any errors and produce the executable which will now be transferred to the device.
Assuming the D7 is connected to the network via ethernet and its IP address is known (see Connecting via SSH), run the following command to transfer the executable:
Once the transfer is complete, ssh into the device and run the app.
The compiled binary won't be marked as executable, so once you ssh into the device, you will need to run the following command before you run the app:
On this page we gave a detailed explanation of building a Hello world! CLI application using the D7 SDK for both the target device and the host, and running it.
If you plan on using Qt libraries, the next step is installing the Qt libraries and Qt Creator.
Otherwise, you can skip directly to Creating software updates.