This application note details QT Creator setup and configuration in [[AXEL_ULite_SOM/DESK-MX6UL-L|DESK]] [[AXEL_ULite_SOM/DESK-MX6UL-L/General/DVDK_Virtual_Machine|MVM]]
{{InfoBoxTop}}
{{AppliesToAXEL ULite AN}}
== Setting up Qt Creator to build for DESK ==
{{ImportantMessage|text=Note: The version of NXP BSP 4.14.98 includes Qt Creator may differ from images below5. The version provided from DESK 1.010.1 release is so the following instructions has been created using Qt Creator 4.115.1 included in the qt-opensource installer for this Qt version.0}}
=== Qt Creator Installation ===
=== Qt versions ==={{ImportantMessage|text=The ''qt-opensource-linux'' installer will install can be downloaded form the '''5Qt download http site, i.e. from [https://download.12qt.7''' Qt library version which are not aligned with the '''io/new_archive/qt/5.10.1''' Qt version included in the DESK-MX6UL-L BSP.<br>This is because NXP BSP includes <u> Qt /5.10.1</u> version while Qt Company does not provide the Qt Creator qt-opensource-linux-x64-5.10.1 installer anymore.run this link].}}
This is not an issue for creating and compiling Qt application for the target<pre>dvdk@vagrant: the binary version deployed into the target will be created starting from the Qt included into the SDK~/desk-mx-l$ wget https://download.qt.io/new_archive/qt/5.10/5.10. Only the Qt Creator IDE is configured and used for creating Qt application for the target1/qt-opensource-linux-x64-5.10.1.run In any case, the Qt x86 libraries installed in the MVM can be used for Qt application creation and debugging.</pre>
=== Qt Creator Installation ===
To install Qt Creator inside your toolchain launch a terminal emulator and run the ''qt-opensource-linux'' installer.
[[File:QtCreator_connection.png|400px|border|center]]QtCreator asks you to create a deployment key for the target connection:[[File:QtCreator_deployment_key.png|400px|border|center]]If the target data was inserted correctly (IP address, login username) then the key will be correctly deployed into the target:[[File:QtCreator_deployment_key_finishedQtCreator_device_connection.png |400px|border|center]]
If everything went ok pressing ''Finish'' button you should see a dialog like the image below.
And finally this is how the <code>Devices</code> window should look like.
Click on Push Button in the Buttons tab and drag it to the main window view. In order to edit the text displayed by the label, double click it and write ''"Hello World!"''.
The last step before running the application inside the device is to configure Qt backend into application command line arguments: open the <code>Project</code> window and select the <code>Run</code> configuration, then type <code>-platform linuxfb</code> into <code>Arguments</code>
After these changes you are ready to debug your application inside your board with the <code>Run/Debug</code> command [[File:QtCreator XELK 3 0 0 35.png|30px]]