Changes

Jump to: navigation, search

DIVELK-AN-002: Using Qt Creator

505 bytes added, 12:03, 8 March 2019
History
{{Applies To Diva}}
{{InfoBoxBottom}}
{{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=
!Notes
|-
|1{{oldid|8080|4.0.0}}
|April 2018
|[[Diva_Embedded_Linux_Kit_(DIVELK)#DIVELK_software_components|DIVELK 4.0.0]]
|First release|-|4.0.1|March 2019|[[Diva_Embedded_Linux_Kit_(DIVELK)#DIVELK_software_components#DIVELK_4.0.1|DIVELK 4.0.1]]|
|}
An installation wizard will appear. Click '''Next''' to proceed with the installation.
 [[File:QtCreator XELK 3 0 DIVELK 4.0 .1 - Qt Creator 01.pngjpg|400pxcenter|borderframeless|center438x438px]] 
Select '''Skip'''.
 [[File:QtCreator XELK 3 0 DIVELK 4.0 .1 - Qt Creator 02.png|400pxjpg|border|center|437x437px]] 
Select '''Next'''.
 [[File:QtCreator XELK 3 0 DIVELK 4.0 .1 - Qt Creator 03.png|400pxjpg|border|center|437x437px]] 
Select the install directory or click '''Next'''.
 [[File:QtCreator XELK 3 0 DIVELK 4.0 .1 - Qt Creator 04.png|400pxjpg|border|center|437x437px]] 
Select '''Next'''.
 [[File:QtCreator XELK 3 0 DIVELK 4.0 .1 - Qt Creator 05.png|400pxjpg|border|center|437x437px]] 
Click '''Next''' again.
 [[File:QtCreator XELK 3 0 DIVELK 4.0 .1 - Qt Creator 06.png|400pxjpg|border|center|437x437px]] 
And then click '''Install''' and complete the installation.
 [[File:QtCreator XELK 3 0 DIVELK 4.0 .1 - Qt Creator 07.png|400pxjpg|border|center|436x436px]] 
Then '''Finish''' to exit the setup wizard.
 [[File:QtCreator XELK 3 0 DIVELK 4.0 .1 - Qt Creator 08.png|400pxjpg|border|center|437x437px]]
== Automatic configuration ==
If you don't want to use the automatic setup or want to customize the configuration, in this section we 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/toolchaindivatar -xvf gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf.tar.xz -C /home/dvdk/tolchaindiva
</pre>
<pre>
/home/dvdk/toolchaindiva/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabignueabihf-gcc
</pre>
<pre>
/home/dvdk/toolchaindiva/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabignueabihf-g++
</pre>
<pre>
home/dvdk/toolchaindiva/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabignueabihf-gdb
</pre>
Now that the setup is finished, you can create your first application.
In order to debug your application with QtCreator, it is mandatory to utilize the linaro toolchain [[Editing DIVELK-AN-xxx002: Using Qt Creator_Using_Qt_Creator#Linaro ToolchainLinaro_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 stop
<pre>
dvdk@vagrant-ubuntu-trusty-64:~$ ./qtcreator-4.35.02/bin/qtcreator
</pre>
8,154
edits

Navigation menu