C

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.

QUL_ROOT and QUL_TOOLS are used in the command line examples below as if they were set as environment variables. For example:

export QUL_ROOT=$HOME/Qt/QtMCUs/2.8.2
export QUL_TOOLS=$HOME/Qt/Tools/QtMCUs
set QUL_ROOT=C:\Qt\QtMCUs\2.8.2
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=MinSizeRel -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>
    make
    cmake %QUL_ROOT%\examples\minimal -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=MinSizeRel -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>
    nmake

    If you have created flash targets for your platform as per the instructions in the Creating flash targets 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

Next, you can proceed to verifying platform functionality with the tests provided by Qt Quick Ultralite.

Available under certain Qt licenses.
Find out more.