Changes

How to install Eclipse IDE

6,782 bytes added, 12:07, 21 August 2012
Created page with '= How to install Eclipse with IGEP support (under construction) = == Overview == Eclipse is a multi-language software development environment comprising an integrated de…'
= How to install Eclipse with IGEP support (under construction) =

== Overview ==

Eclipse is a multi-language software development environment comprising an integrated development environment (IDE) and an extensible plug-in system. It is written mostly in Java. It can be used to develop applications in Java and, by means of various plug-ins, other programming languages including Ada, C, C++, COBOL, Haskell, Perl, PHP, Python, R, Ruby (including Ruby on Rails framework), Scala, Clojure, Groovy, Android and Scheme. One of these interesting plugins is the Yocto Eclipse IDE Plug-in.

The Yocto Eclipse IDE Plug-in integrates the functionality of the [http://www.yoctoproject.org/projects/application-development-toolkit-adt Yocto Project Application Development Toolkit (ADT)] and toolchain into the Eclipse IDE. This allows its users direct access to deploy, build, run and debug your own project. More information about Eclipse software [http://en.wikipedia.org/wiki/Eclipse_%28software%29 here].

'''NOTE:''' If you use IGEP SDK Virtual Machine you don't need to follow this guide, go directly to How to develop with Eclipse IDE under IGEP technology

== Requirements ==

*PC with Linux, for example [http://www.linuxmint.com/ Linux Mint distribution].
*[http://www.isee.biz/component/zoo/item/igep-yocto-toolcahin-sdk IGEP YOCTO Toolchain SDK]
*[http://www.eclipse.org/downloads/packages/eclipse-ide-cc-linux-developers-includes-incubating-components/indigor Eclipse IDE for C/C++ Linux Developers]
*[http://www.yoctoproject.org/projects/eclipse-ide-plug Yocto Eclipse IDE Plug-in]

{{Message/Information Message|message= This guide was tested under Linux Mint Lisa 12, Eclipse 3.7 Indigo and Yocto IDE Plug-in 1.2}}

== Install ==

=== Install Java Runtime Environment ===

Eclipse IDE has Java dependencies. Java Runtime Environment should be installed, but if you don't have it type next command in a terminal:
<pre>sudo apt-get install sun-java6-bin sun-java6-jre</pre>

=== Install Eclipse IDE ===

[http://www.eclipse.org/downloads/packages/eclipse-ide-cc-linux-developers-includes-incubating-components/indigor Download] Eclipse 3.7 Indigo for C/C++ Linux Developers, choose 32 or 64 bits version depends your machine.

You maybe want to install "build-essential" package to test programs in your Host computer. Install it using the next command:
<pre>sudo apt-get install build-essential </pre>
Extract Eclipse binaries, in my case the downloaded file is located at Downloads folder:
<pre>jdoe@ubuntu ~/Downloads $ tar xzf eclipse-linuxtools-indigo-incubation-linux-gtk.tar.gz -C ~/ </pre>

=== Install Yocto SDK ===

{{#lst:How to setup a cross compiler|install_sdk}}

== Configure ==

=== Open Eclipse IDE ===

Eclipse binaries are located inside ~/eclipse folder. Open IDE clicking eclipse executable file, at first program execution you should configure "workspace" directory.

{| cellspacing="1" cellpadding="1" width="200" border="1"
|-
| [[Image:Eclipse open.png|331px]]
| [[Image:Eclipse loading.png|331px]]
|-
| [[Image:Eclipse set workspace.png|331px]]
| [[Image:Eclipse workspace.png|331px]]
|}

'''<sup>Click to enlarge image</sup>'''

=== Update Eclipse IDE ===

You should update Eclipse IDE before install plugins:

*Go to Help menu -&gt; Check for Updates...
*Follow the assistant and restart Eclipse program

{| cellspacing="1" cellpadding="1" width="200" border="1"
|-
| [[Image:Eclipse update1.png|250px]]
| [[Image:Eclipse update2.png|250px]]
| [[Image:Eclipse update3.png|250px]]
|-
| [[Image:Eclipse update4.png|250px]]
| [[Image:Eclipse update5.png|250px]]
| [[Image:Eclipse update6.png|250px]]
|}

'''<sup>Click to enlarge image</sup>'''

=== Install Linux tools ===

Yocto Eclipse IDE Plug-in has Linux Tools Plug-in dependencies, so you need to install Linux tools first:

*Go to Help menu&nbsp;-&gt; Install New Software...<br>
*Click "Avaliable Software Sites" inside Install window
*Enable Linux Tools in software site list and click OK
*Select Linux Tools in Work with list.
*Mark Linux Tools software
*Follow the assistant and restart Eclipse program

{| cellspacing="1" cellpadding="1" width="200" border="1"
|-
| [[Image:Eclipse linuxtools1.png|250px]]
| [[Image:Eclipse linuxtools2.png|250px]]
| [[Image:Eclipse linuxtools3.png|250px]]
| [[Image:Eclipse linuxtools4.png|250px]]
|-
| [[Image:Eclipse linuxtools5.png|250px]]
| [[Image:Eclipse linuxtools6.png|250px]]
| [[Image:Eclipse linuxtools7.png|250px]]
| [[Image:Eclipse linuxtools8.png|250px]]
|}

'''<sup>Click to enlarge image</sup>'''

=== Install Yocto Eclipse IDE Plug-in ===

Now is time to install Yocto Eclipse IDE Plug-in:

*Go to Help menu -&gt; Install New Software...
*Click to Add button
*In Add Repository window type in "Location:" field: http://downloads.yoctoproject.org/releases/eclipse-plugin/1.2/
*Mark Yocto Eclipse IDE software
*Follow the assistant and restart Eclipse program

{| cellspacing="1" cellpadding="1" width="200" border="1"
|-
| [[Image:Eclipse linuxtools1.png|250px]]
| [[Image:Eclipse yocto2.png|250px]]
| [[Image:Eclipse yocto3.png|250px]]
| [[Image:Eclipse yocto4.png|250px]]
|-
| [[Image:Eclipse yocto5.png|250px]]
| [[Image:Eclipse yocto6.png|250px]]
| [[Image:Eclipse yocto7.png|250px]]
| [[Image:Eclipse linuxtools8.png|250px]]
|}
'''<sup>Click to enlarge image</sup>'''

=== Configure Yocto Eclipse IDE Plug-in ===

Yocto Eclipse IDE Plug-in is not configured by default:

*Go to Window menu -&gt; Preferences
*Select Yocto Project ADT and fill configuration like image below
*Apply changes

{| cellspacing="1" cellpadding="1" width="200" border="1"
|-
| [[Image:Eclipse configyocto1.png|331px]]
| [[Image:Eclipse configyocto2.png|331px]]
|}
'''<sup>Click to enlarge image</sup>'''

=== Set up a connection between IGEP and Host computer ===

Now you can compile programs for IGEP devices, but it is necessary configure a connection between IGEP and Host machine to debug/run applications remotely:

*Go to Window menu -&gt; Open Perspective -&gt; Other...
*Select Remote System Explorer
*In "Remote System" window, right click: New -&gt; Connection...
*Select TCF system type
*In "Host Name" field type your &lt;IGEP IP address&gt;
*In TCF Connection Settings properties change Login:Required and Pwd.Required values to true

{| cellspacing="1" cellpadding="1" width="200" border="1"
|-
| [[Image:Eclipse network1.png|250px]]
| [[Image:Eclipse network2.png|250px]]
| [[Image:Eclipse network3.png|250px]]
| [[Image:Eclipse network4.png|250px]]
|-
| [[Image:Eclipse network5.png|250px]]
| [[Image:Eclipse network6.png|250px]]
| [[Image:Eclipse network7.png|250px]]
| [[Image:Eclipse network8.png|250px]]
|}

'''<sup>Click to enlarge image</sup>'''
4,199
edits