First Qt Quick Ultralite application on new platform

Now that your platform port is done, it is time to get a Qt Quick Ultralite application running on top of the port. The following steps set up your environment for building the minimal example.

Note: This page uses QUL_ROOT and QUL_TOOLS in command line examples as if they were set as environment variables. They could be set for example:

export QUL_ROOT=$HOME/Qt/QtMCUs/2.0.0
export QUL_TOOLS=$HOME/Qt/Tools/QtMCUs
set QUL_ROOT=C:\Qt\QtMCUs\2.0.0
set QUL_TOOLS=C:\Qt\Tools\QtMCUs
  1. Build and install your platform port as instructed in the previous topic.
  2. Create a build directory:
    mkdir build
    cd build
  3. Configure and build the example using the following commands:
    cmake $QUL_ROOT/examples/minimal -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=$QUL_ROOT/lib/cmake/Qul/toolchain/<YOUR_TOOLCHAIN>.cmake -DQUL_TARGET_TOOLCHAIN_DIR=/path/to/the/toolchain -DQUL_GENERATORS=$QUL_ROOT/lib/cmake/Qul/QulGenerators.cmake -DQUL_PLATFORM=<YOUR_PLATFORM>
    cmake %QUL_ROOT%\examples\minimal -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=%QUL_ROOT%\lib\cmake\Qul\toolchain\<YOUR_TOOLCHAIN>.cmake -DQUL_TARGET_TOOLCHAIN_DIR=C:\path\to\the\toolchain -DQUL_GENERATORS=%QUL_ROOT%\lib\cmake\Qul\QulGenerators.cmake -DQUL_PLATFORM=<YOUR_PLATFORM>

    If you have created flash targets for your platform as per the instructions in the Getting started section, flash the example using the following command:

    nmake flash_minimal

    You should have the following output on your display when running the example:

    \QUL \c{minimal} example

Available under certain Qt licenses.
Find out more.