Changes

User:Pau pajuelo

11 bytes removed, 10:53, 1 August 2012
no edit summary
= Write your first C Program using Eclipse IDE (upgrade wiki content) =
== Overview ==
=== Compile your program: ===
Now you can compile, run and debug your program using the MANUAL IGEP SDK v3.0 VM<br>
= How to develop with Qt under IGEP =
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 ==
Now you can connect between IGEP and VM using SSH protocol:<br>
<pre>ssh root@"IGEP IP for example: 192.168.5.1"
</pre> 
== Using Qt Creator ==
Go to Applications -&gt; IGEP development -&gt; Qt Creator<br>
{| border="1" width="200" cellspacing="1" cellpadding="1" border="1"
|-
| [[Image:Openqtv2.png|331x249px]]<br>
Open this example with Qt Creator, set Desktop target and use for each Qt Version one debug and one release
{| border="1" width="757" height="188" cellspacing="1" cellpadding="1"
|-
| [[Image:Qtopenanexamplev2.png|250x188px]]
To compile to ARM for IGEP go to Project use the following configuration at Projects field -&gt; Build:
{| border="1" width="200" cellspacing="1" cellpadding="1" border="1"
|-
| [[Image:Qtarmconfigv2.png|496px]]
<pre>ssh root@"IGEP IP for example: 192.168.5.1"
./"binary" "optional:arguments"</pre>
{| border="1" width="200" cellspacing="1" cellpadding="1" border="1"
|-
| [[Image:Qtrunarmv2.jpg|496x373px]]
|}
'''NOTE:''' You cannot use igep-remote-x program because Qt-demo image doesn't have X installed.<br>
==== Debug Programs ====
Now use the followings steps to debug program:<br>
{| cellspacingborder="1" cellpaddingwidth="1200" bordercellspacing="1" widthcellpadding="2001"
|-
| [[Image:Qtdebugx861v2.png|331x249px]]
<br>
'''NOTE:''' You cannot use igep-remote-x program because Qt-demo image doesn't have X installed.<br>
=== x86 Platform<br> ===
To compile to x86 go to Project use the following configuration at Projects field -&gt; Build:
{| border="1" width="200" cellspacing="1" cellpadding="1" border="1"
|-
| [[Image:Qtx86configv2.png|496px]]
Use run button (Ctrl+R).
{| border="1" width="200" cellspacing="1" cellpadding="1" border="1"
|-
| [[Image:Qtrunx86v2.png|496x373px]]
Set breakpoints in your source code and press debug button (F5)
{| border="1" width="200" cellspacing="1" cellpadding="1" border="1"
|-
| [[Image:Qtdebugx861v2.png|331x249px]]
|}
= Set up a NFS between IGEP Board and IGEP VM (check at prove it) =
== Overview ==
In IGEP Boards, NFS protocol can be used to mount a whole root filesystem located in a remote disk, this method is useful to develop or test applications.<br>
{| cellspacingborder="1" cellpaddingwidth="1200" bordercellspacing="1" widthcellpadding="2001"
|-
| [[Image:Nfs1_filesystemNfs1 filesystem.png|402x278px331px]]| [[Image:Nfs2_filesystemNfs2 filesystem.png|402x278px331px]]
|}
root=/dev/nfs
nfsroot=192.168.5.10:/srv/{your_rootfs_dir}</pre>
Save changes, power down IGEP Board, unplug MicroSD card and power up your board.
= Install and configure codeblocks for IGEP devices (under construction) =
== Install Code::Blocks in VM ==
<pre>sudo apt-get install codeblocks codeblocks-contrib </pre>
== Configure Code::Blocks ==
Give execute privileges to script:
<pre>chmod a+x ~/Desktop/IGEP\ development/Codeblocks.sh </pre>
Codeblocks now will use IGEP SDK environtment variables every time you run this script.
=== Add IGEP SDK Compiler and Debugger ===
4,199
edits