Changes

User:Pau pajuelo

3,134 bytes removed, 11:36, 1 August 2012
no edit summary
= "CHECK ALL IN A NEW VIRTUAL MACHINE" =
= Write your first C Program using Eclipse IDE (upgrade wiki content) =
 
== Overview ==
 
Eclipse IDE is a software development environtment, this software package is very popular because you can extend its functionalities using pluggins. C applications can be compiled in Eclipse using Autoconf tools or Makefile. Autoconf tools can be useful if you want to develop a huge application with a lot of software dependencies, but this method can be tedious if you want to develop a simple application.
 
At IGEP v3.0 VM, Eclipse includes Linux tools and Yocto plugin to develop C applications for IGEP firmware as quickly and easily as possible.
 
== Pre-requisites ==
 
To follow this How-to you need:
 
*VMware or VirtualBox virtualization software
*IGEP SDK Virtual Machine<br>
*IGEP BOARD<br>
*IGEP SDK Software User Manual<br>
 
== Getting started ==
 
First at all, you should read IGEP SDK Software User Manual and follow the next chapters:
 
*Chapter 2.3: Setting up and running the VM<br>
*Chapter 6.1: Create igep firmware bootable micro-SD card<br>
*Chapter 3.2.1: Connecting to IGEP devices using Ethernet cable, yuo can use other methods like WIFI&nbsp;o USB&nbsp;Ethernet gadget but are not preconfigured at Eclipse<br>
*Chapter 5: Application development with Eclipse<br>
 
== Hello world compiled with Eclipse<br> ==
 
If you follow "Getting started" chapter you have compiled some source example programs for Eclipse, these programs use Autotools to generate binary code for IGEP. Now is time to compile your Helloworld example program without using autotools.
 
=== Create your new project: ===
 
Open Eclipse-&gt;File-&gt;New-&gt;C Project
 
At C Project Window:
 
Yocto Project ADT Project -&gt;Empty Project
 
Insert your project name and finish. At Project explorer panel you will see your new project
 
=== Create your source files: ===
 
Go to New C/C++ Source File button and write at "Source file:" field your source file name, for example main.c. Finish the assistant and copy the next code at this file:
<pre>#include &lt;stdio.h&gt;
int main(void)
{
printf("Hello world\n");
return 0;
} </pre>
Follow the instructions above and create a Source File named Makefile and copy the next code:
<pre>all: main.c
$(CC) -g -O0 -o main main.c
 
clean:
rm -f main main.o</pre>
CC is an environment variable that links with arm-poky-linux-gnueabi-gcc binary (IGEP SDK GCC). Environment variables are a set of dynamic named values that can affect the way running processes will behave on a computer. It is very useful because you can generate a Makefile that can be compiled with multiple toolchains.
 
IGEP SDK Environtment variables are located at /opt/poky/1.2/environment-setup-armv7a-vfp-neon-poky-linux-gnueabi. You can add this variables using "source" command or see your current environtment variables using "env" command.
 
If you need to develop more complex programs, you should read this [http://www.cs.colby.edu/maxwell/courses/tutorials/maketutor/ Makefile tutorial].<br>
 
=== 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 =
4,199
edits