{{WarningMessage|text=This application note was validated against specific versions of the kit only. It may not work with other versions. Supported versions are listed in the ''History'' section.}}
=History=
!Version
!Date
!XELK DIVELK version
!Notes
|-
|1{{oldid|8080|4.0.0}}|March April 2018|[[Axel_Embedded_Linux_Kit_Diva_Embedded_Linux_Kit_(XELKDIVELK)#XELK_software_componentsDIVELK_software_components|DIVELK 4.0.0]]||-|4.0.1|3March 2019|[[Diva_Embedded_Linux_Kit_(DIVELK)#DIVELK_software_components#DIVELK_4.0.1|DIVELK 4.0.1]]|First release
|}
= Introduction =
This application note details QT Creator setup and configuration in [[Axel_Embedded_Linux_Kit_Diva_Embedded_Linux_Kit_(XELKDIVELK)|XELKDIVELK]] [[Managed Virtual Machine (MVM)|MVM]]
= Setting up Qt Creator to build for XELK DIVELK =
An installation wizard will appear. Clik Click '''Next''' to proced proceed with the installation. [[File:QtCreator XELK 3 0 DIVELK 4.0 .1 - Qt Creator 01.pngjpg|400pxcenter|borderframeless|center438x438px]]
In order to add the device information automatically, DAVE provides a simple setup script.
TBD
<!--
</pre>
If the installation process complete successfully, you should see inside the <code>Tools -> Options -> Kits</code> a ''kit'' named XELKDIVELK, as in the following screenshot:
If you don't want to use the automatic setup or want to customize the configuration, in this section we details detail all the step required.=== Linaro Toolchain ===You should be able to find the linaro toolchain already inside the virtual machine at ~/diva, if not the following will download and extract the toolchain. Download the following [https://releases.linaro.org/components/toolchain/binaries/6.2-2016.11/arm-linux-gnueabihf/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf.tar.xz archive] and extract it <pre>mkdir -p /home/dvdk/divatar -xvf gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf.tar.xz -C /home/dvdk/diva</pre>
Insert the IP address of your device, ''root'' as username and leave password empty (this is the default configuration of XELK DIVELK root file systems). Make sure that the device is connected to the network and your virtual machine networking is correctly configured (see [[VirtualBox Network Configuration|this]] article for more details).
Now that the setup is finished, you can create your first application.
Open In order to debug your application with QtCreator, it is mandatory to utilize the linaro toolchain [[DIVELK-AN-002:_Using_Qt_Creator#Linaro_Toolchain|Toolchain]]. Furthermore, if the Weston compositor is active, the debug process is slow. For this reason it is higly recomanded to disable it with root@diva:~# /etc/init.d/weston stopNow open a new terminal and source the environment variables with the command.