Personal tools

Log in

Changes

From IGEP - ISEE Wiki

Jump to: navigation, search

How to develop with Qt under IGEP Technology

367 bytes added, 11:03, 21 September 2018
Download and install Qt demo image to a SD
== Overview ==
<section begin=overview />This guide can be helpful to learnt to develop Qt applications under IGEP Boards. Qt is a cross-platform application framework that is widely used for developing application software with a graphical user interface, and also used for developing non-GUI programs such as command-line tools and consoles for servers. You can get more information [http://qt.nokia.comio/ here]. <section end=overview />
== Requirements<br> ==
There are some requisites to follow this guide:
*[http://isee.biz/component/zoo/item/igep-virtual-machine-sdk-yocto IGEP SDK VM]: follow the [http://isee.biz/component/zoo/item/igep-sdk-software-user-manual IGEP&nbsp;SDK&nbsp;SOFTWARE&nbsp;USER&nbsp;MANUAL ] (chapter 2.3 "Setting up and running the VM")or install [[How to install Qt Creator|Qt Creator]]<br> *[http://downloads.isee.biz/denzil/binary/qt4e-demo-image-igep00x0.tar.bz2 IGEP Qt Demo]: follow the [http://isee.biz/component/zoo/item/igep-sdk-software-user-manual IGEP&nbsp;SDK SOFTWARE&nbsp;USER&nbsp;MANUAL ] (chapter 6.1 "Create IGEP firmware bootable micro-sd card") and install&nbsp;qt4e-demo-image-igep00x0.tar.bz2 instead IGEP firmware. *[httphttps://www.isee.biz/products/igep-processor-boards/igepv2-board IGEPv2dm3730 IGEP v2], [httphttps://www.isee.biz/products/igep-expansion-boards/product-igep-berlin IGEP BERLIN] or [httphttps://www.isee.biz/products/igep-expansion-boards/product-igep-paris IGEP PARIS] *MicroSD Card (at least 2Gbytes)<br>
== Download and install Qt demo image to a SD<br> ==Once you have open IGEP SDK VM, launch a terminal and type:
Once you have open IGEP SDK VM, launch a terminal and type:
<pre>cd Desktop/
wget http://downloads.isee.biz/denzil/binary/qt4e-demo-image-igep00x0.tar.bz2 </pre><pre>git clone githttps://git.isee.biz/pub/scmigep-tools/igep-tools.git</pre><pre>cd igep-tools/scriptsscript</pre> Insert a SD-Card media and use the igep-media-create script to copy the firmware to SD-Card media, required options are:
*--mmc &lt;/dev/sdX&gt;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; unformated MMC Card
*--image &lt;filename&gt;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; specify file used to create the bootable SD card.
*--machine &lt;machine&gt;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; specify the machine. Options are igep0020, igep0030 or igep0032<br>
For example, assuming the SD card device takes "/dev/sdf" and you have and IGEPv2 board (igep0020), type:  <pre>./igep-media-create --mmc /dev/sdf --machine igep0020 --image /home/jdoe/Desktop/qt4e-demo-image-igep00x0.tar.bz2</pre> This should give you a bootable SD-card<br>
== Prepare Qt demo image ==
== Using Qt Creator ==
=== First SteepsSteps<br> ===
==== Open Program:<br> ====
Go to Applications -&gt; IGEP development -&gt; Qt Creator<br>
{| cellspacingborder="1" cellpaddingwidth="1200" bordercellspacing="1" widthcellpadding="2001"
|-
| [[Image:Openqtv2.png|331x249px]]<br>
==== Open an example:<br> ====
Copy your desired example from: (/opt/QtSDK/Examples/4.7 using VM or ~/QtSDK/Examples/4.7 default directory install) to your desktop.<br>
{| cellspacing="1" cellpadding="1" borderwidth="1200" widthborder="2001"
|-
| [[Image:Qtcopyanexamplev2.png|496x373px]]
Open this example with Qt Creator, set Desktop target and use for each Qt Version one debug and one release
{| cellspacing="1" cellpadding="1" borderwidth="1757" widthborder="7571"
|-
| [[Image:Qtopenanexamplev2.png|250x188px]]
|}
'''<sup>Click to enlarge image</sup>'''
=== ARM Platform<br> ===
To compile to ARM for IGEP go to Project use the following configuration at Projects field -&gt; Build:
{| cellspacingborder="1" cellpaddingwidth="1200" bordercellspacing="1" widthcellpadding="2001"
|-
| [[Image:Qtarmconfigv2.png|496px]]
<pre>ssh root@"IGEP IP for example: 192.168.5.1"
./"binary" "optional:arguments"</pre>
{| cellspacingborder="1" cellpaddingwidth="1200" bordercellspacing="1" widthcellpadding="2001"
|-
| [[Image:Qtrunarmv2.jpg|496x373px]]
Now use the followings steps to debug program:<br>
{| cellspacingborder="1" cellpaddingwidth="1200" bordercellspacing="1" widthcellpadding="2001"
|-
| [[Image:Qtdebugx861v2.png|331x249px]]
To compile to x86 go to Project use the following configuration at Projects field -&gt; Build:
{| cellspacingborder="1" cellpaddingwidth="1200" bordercellspacing="1" widthcellpadding="2001"
|-
| [[Image:Qtx86configv2.png|496px]]
Use run button (Ctrl+R).
{| cellspacingborder="1" cellpaddingwidth="1200" bordercellspacing="1" widthcellpadding="2001"
|-
| [[Image:Qtrunx86v2.png|496x373px]]
Set breakpoints in your source code and press debug button (F5)
{| cellspacingborder="1" cellpaddingwidth="1200" bordercellspacing="1" widthcellpadding="2001"
|-
| [[Image:Qtdebugx861v2.png|331x249px]]
|}
'''<sup>Click to enlarge image</sup>''' [[Category:Software]][[Category:Software applications]][[Category:Tutorials]]