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
This page uses
QUL_TOOLS in command line examples as if they were set as environment variables. For example:
export QUL_ROOT=$HOME/Qt/QtMCUs/2.4 export QUL_TOOLS=$HOME/Qt/Tools/QtMCUs
set QUL_ROOT=C:\Qt\QtMCUs\2.4 set QUL_TOOLS=C:\Qt\Tools\QtMCUs
- Build and install your platform port as instructed in the previous topic.
- Create a build directory:
mkdir build cd build
- 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 Getting started section, flash the example using the following command:
You should have the following output on your display when running the 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.