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.

  1. Build and install your platform port as instructed in the previous topic.
  2. Set the following environment variables:

    Linux host:

    export Qul_DIR=/path/to/your/platform
    export Qul_Generators=/path/to/Qt/QtMCUs/<VERSION>/lib/cmake/Qul/QulGenerators.cmake

    Windows host:

    set Qul_DIR=path\to\your\platform
    set Qul_Generators=path\to\Qt\QtMCUs\<VERSION>\lib\cmake\Qul\QulGenerators.cmake

    If you're using ARM GCC toolchain, set the ARMGCC_DIR environment variable:

    Linux host:

    export ARMGCC_DIR=/path/to/ARMGCC

    Windows host:

    set ARMGCC_DIR=path\to\ARMGCC
  3. Create a build directory:
    mkdir build
    cd build
  4. Configure and build the example using the following commands:

    Linux host:

    cmake $Qul_DIR/examples/minimal -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=$Qul_DIR/lib/cmake/Qul/toolchain/<YOUR_TOOLCHAIN>.cmake -DQUL_GENERATORS=$Qul_Generators -DQUL_PLATFORM=<YOUR_PLATFORM>

    Windows host:

    cmake %Qul_DIR%\examples\minimal -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=%Qul_DIR%\lib\cmake\Qul\toolchain\<YOUR_TOOLCHAIN>.cmake -DQUL_GENERATORS=%Qul_Generators% -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.