Documents/Win Eclipse

From Nutwiki
Jump to: navigation, search

Using Eclipse with Nut/OS on Linux


This is work in progress and for ARM target boards only.

It is assumed that you already installed Yagarto with Eclipse IDE and Nut/OS.

Creating An Eclipse Project

Select Programs->YAGARTO IDE->Eclipse Platform 3.2 from your Windows start menu.

If started for the first time, the welcome screen will appear.

[[File:../../img/eclipse-win01.png|Language Selection]]

Click on Workbench. If Eclipse didn't start with the welcome screen, then select Switch Workspace from the file menu.

This will bring up the Workspace Launcher Dialog.

[[File:../../img/eclipse-win02.png|Language Selection]]

You may choose any directory. Eclipse will store all workspace settings in this place.

Click OK to return to the Eclipse main window, which shows the Resource Perspective.

We will use Eclipse for the C language and should activate the C/C++ Perspective. Select Open Perspective->Other from the Window menu.

[[File:../../img/eclipse-win03.png|Language Selection]]

Select the C/C++ Perspective and click OK.

[[File:../../img/eclipse-win04.png|Language Selection]]

The Resource Perspective is not needed for C developments. Click on the Resource Tab with the right mouse button and select Close from the context menu.

[[File:../../img/eclipse-win05.png|Language Selection]]

We will now create a new project. Select New->Standard Make C Project on the file menu.

[[File:../../img/eclipse-win06.png|Language Selection]]

The New Project Dialog appears.

[[File:../../img/eclipse-win06a.png|Language Selection]]

Enter the project name httpd.

Instead of using the default loaction, we need to set the path to the Nut/OS application sample directory. Otherwise the relative paths used in the Nut/OS Makefiles won't work correctly.

You can use the Browse button to navigate to the directory that contains the httpd sources.

Click on the Next button to move to the C/Make Project Settings and then click on the Discovery Options Tab.

[[File:../../img/eclipse-win07.png|Language Selection]]

On this page we need to enter the correct Compiler invocation command. You can use the Browse button, navigate to the YAGARTO bin folder and select arm-elf-gcc.exe.

Click Finish to return to the Eclipse main window.

[[File:../../img/eclipse-win08.png|Language Selection]]
[[File:../../img/eclipse-win09.png|Language Selection]]
[[File:../../img/eclipse-win10.png|Language Selection]]
[[File:../../img/eclipse-win11.png|Language Selection]]
[[File:../../img/eclipse-win12.png|Language Selection]]
[[File:../../img/eclipse-win13.png|Language Selection]]
[[File:../../img/eclipse-win14.png|Language Selection]]
[[File:../../img/eclipse-win15.png|Language Selection]]

Good luck,
Harald Kipp
Castrop-Rauxel, 18th of October 2006