Eclipse

From OpenAIP

Jump to: navigation, search

This project uses a standard platform, specifically Ubuntu 9.04 for intel64, the Intel C/C++ Compiler and eclipse. This article is about setting up the eclipse platform for use with this project.

Note: This is the last thing that you should do after installing and configuring Ubuntu and installing and configuring Intel C/C++ Compiler

BEWARE: Check your Intel C/C++ Compiler version number

Contents

Installing Eclipse

  • Download the latest eclipse for Java developers from eclipse.org save it to your home directory.
  • Untar the eclipse binary package
  • Open eclipse
$ cd eclipse/ 
$ ./eclipse

Add CDT extensions to eclipse

  • Click Help->Install New Software
  • Click Add
  • Click OK
  • Select CDT Main Features and CDT Optional Features
  • Click Next>
  • Install CDT
  • Restart Eclipse

Install icc extensions in eclipse

  • Click Help->Install New Software
  • Click Add
  • Click Local
  • Select /opt/intel/Compiler/11.1/046/eclipse_support/cdt6.0/eclipse
  • Type in Intel C Compiler
  • Click OK
  • Click on the Work with: drop down menu select Intel C Compiler - file:/opt/intel/Compiler/11.1/046/eclipse_support/cdt6.0/eclipse
  • Uncheck the box which says Group Items by Category
  • Install Intel(R) C++ Compiler 11.1 for Linux* and Intel(R) C++ Compiler Documentation
  • Restart eclipse

Optional: install idbc extensions

  • Click Help->Install New Software
  • Click Add
  • Click Local
  • Select /opt/intel/Compiler/11.1/056/idb/eclipse_support/cdt6.0/eclipse
  • Type Intel C Debuger
  • Click OK
  • Click on the Work with: drop down menu select Intel C Debugger - file:/opt/intel/Compiler/11.1/056/idb/eclipse_support/cdt6.0/eclipse
  • Make sure the option Group Items by Category is not checked
  • Install Intel(R) Debugger for applications 11.1
  • Restart Eclipse

Configure Shell Script for Eclipse

You may want to create a shell script to run eclipse from GNOME or KDE or whatever in this case the execution environment will not be setup from BASH so you will have to create a shell script to launch eclipse with the proper execution environment for icc and idbc. In the eclipse directory do the following.

$ mkdir bin
$ cd bin
$ touch eclipse 
$ chmod +x eclipse

open your editor and edit the eclipse file, or copy this:

#!/bin/bash

source /opt/intel/Compiler/11.1/056/bin/iccvars.sh intel64
exec ~/eclipse/eclipse

Setting up bash

Since your lazy and probably want eclipse to run from a command line add the following line to your .bashrc

export PATH=~/eclipse/bin/:$PATH

CDT Install Addendum

if your intel debugger does not work you can find the proper CDT file under the cdt nightly builds here follow the instuctions but add it as a archive.

Personal tools