Changes

User:Pau pajuelo

38 bytes added, 20:07, 25 July 2012
no edit summary
== Download and install Qt demo image to a SD<br> ==
Once you have open IGEP SDK VM, launch a terminal and &nbsp;:
<pre>cd Desktop/
wget http://downloads.isee.biz/denzil/binary/qt4e-demo-image-igep00x0.tar.bz2
Qt demo image is a root filesystem build by Yocto that contains Qt embedded libraries, also this image has some Qt examples for testing purposes.
This image doesn't have openssh and gdbserver, so we should install these packages to develop Qt applications. Open a shell prompt using serial communication (IGEP&nbsp;SDK&nbsp;SOFTWARE&nbsp;MANUAL chapter 3.1 "Using serial mode") and typethe following commands:
<pre>zypper ref
zypper in openssh
==== Open an example:<br> ====
Copy your desired example to desktop, examples are located atfrom: /opt/QtSDK/Examples/4.7 to your desktop.<br>
{| width="200" cellspacing="1" cellpadding="1" border="1"
'''NOTE:''' some examples (like hellogl) cannot be compiled to ARM
Open this example with Qt CreatoCreator, set Desktop target setup and use for each Qt Version one debug and one release
{| cellspacing="1" cellpadding="1" border="1" style="width: 675px; height: 256px;"
==== Run Programs ====
Once you compiled the program pass it from VM to IGEP&nbsp;via SSH, lauch launch a terminal and type:
<pre>scp "pathtobinary" root@192.168.5.1:/home/root</pre>
Get a remote shell prompt an and run your program: <br>
<pre>ssh root@192.168.5.1
./"binary" "optional:arguments"</pre>
{| width="200" cellspacing="1" cellpadding="1" border="1"
|-
|}
'''NOTE:''' You cannot use igep-remote-x program because qtQt-demo image doesn't have X installed.<br>
==== Debug Programs ====
Once you compiled the program pass it from VM to IGEP&nbsp;via SSH, launch a terminal and type:
<pre>scp "pathtobinary" root@192.168.5.1:/home/root</pre>
Get a remote shell prompt and run gdbserver:
gdbserver "hostip,for example 192.168.5.10":1000 "pathtobinary" "optional:armguments"
</pre>
Now use the followings steps to debug program:  At Start Debugger window use the following configuration:  Debugger:<br>/opt/poky/1.2/sysroots/i686-pokysdk-linux/usr/bin/armv7a-vfp-neon-poky-linux-gnueabi/arm-poky-linux-gnueabi-gdb<br>Local executable:<br>/home/jdoe/Desktop/calculator/calculator<br>Host and port:<br>192.168.5.1:1000<br>Architecture:<br>arm<br>GNU target:<br>arm-none-linux-gnueabi<br>Sysroot:<br>/opt/poky/1.2/sysroots/armv7a-vfp-neon-poky-linux-gnueabi<br>Location of debugging information: (empty)<br>Override host GDB starrt script. (empty)
{| width="200" cellspacing="1" cellpadding="1" border="1"
|}
<br> Set breakpoints in your source code At Start Debugger window (image 3), use the following configuration: *Debugger: /opt/poky/1.2/sysroots/i686-pokysdk-linux/usr/bin/armv7a-vfp-neon-poky-linux-gnueabi/arm-poky-linux-gnueabi-gdb*Local executable: "pathtohostbinary"*Host and port: 192.168.5.1:1000*Architecture: arm*GNU target: arm-none-linux-gnueabi*Sysroot: /opt/poky/1.2/sysroots/armv7a-vfp-neon-poky-linux-gnueabi*Location of debugging information: (empty)*Override host GDB starrt script. (empty) 
'''NOTE:''' You cannot use igep-remote-x program because qt-demo image doesn't have X installed.<br>
'''NOTE:''' You cannot use igep-remote-x program because Qt-demo image doesn't have X installed.<br>
=== x86 Platform<br> ===
4,199
edits