Difference between revisions of "Eclipse"

From ArmadeusWiki
Jump to: navigation, search
m (Eclipse start and configuration for the target (user applications))
m
Line 34: Line 34:
 
  /home/nicolas/armadeus/buildroot/build_arm/staging_dir/bin/arm-linux-as
 
  /home/nicolas/armadeus/buildroot/build_arm/staging_dir/bin/arm-linux-as
  
 +
==Testprogs build==
 +
Once the project correctly configured, we will add a new C File to it.
 +
1. add a source file to the project by right clicking on the '''testprogs''' project and selecting New -> Source File <br>
 +
2. Enter the name '''main.c''' and click '''finish''' <br>
 +
3. Write the code. See [[HelloWorld | hello world]] example <br>
 +
4.
  
  
  
 
[[Category:Toolchain]]
 
[[Category:Toolchain]]

Revision as of 20:08, 3 June 2008

How-To install Eclipse IDE and GDB debugger

Forewords

Eclipse IDE has been chosen as standard IDE for the Armadeus software development process.
Specific pluggins will be added to ease writing kernel drivers and user applications.
Despite one or two drawbacks (slow for example), Eclipse provides several advantages like the support of different languages, the good integration of GDB ...


Eclipse installation

Go to the Eclipse download page

and select Eclipse IDE for C/C++ Developers (Linux version)

Install Eclipse to the Home directory:

$cd $HOME

Assuming that the downloaded package is located on your desktop

$tar -xvzf Desktop/eclipse-cpp-europa-winter-linux-gtk.tar.gz

Eclipse start and configuration for the target

$eclipse/eclipse &

1. Select your workspace (where your projects will be saved)
2. Go to the workbench by clicking on "Workbench"
3. Create a new C Project with the name "testprogs" ->File ->New -> C project
4. Enter the project name here "testprogs" and click finish
5. Now the ARM compiler has to be chosen to build the code for the target. Right click on the project "testprogs" in the project explorer and select properties
6. In the C/C++ Build entry, select Settings then GCC C Compiler then insert the path of the ARM compiler in the field Command

/home/nicolas/armadeus/buildroot/build_arm/staging_dir/bin/arm-linux-gcc 

7. GCC options can be modified in the All options field
8. Now the ARM linker has to be chosen as well. GCC C Linker then insert the path of the ARM linker in the field Command

/home/nicolas/armadeus/buildroot/build_arm/staging_dir/bin/arm-linux-gcc

9. And finally the ARM assembler.GCC Assembler then insert the path of the ARM assembler in the field Command

/home/nicolas/armadeus/buildroot/build_arm/staging_dir/bin/arm-linux-as

Testprogs build

Once the project correctly configured, we will add a new C File to it. 1. add a source file to the project by right clicking on the testprogs project and selecting New -> Source File
2. Enter the name main.c and click finish
3. Write the code. See hello world example
4.