Working with Eclipse under Windows

This is a crash course on using the open-source Eclipse environment under Windows. It assumes a reader who

Installation

The modern installation of Eclipse for C++ is relatively trivial, just use the project Europa: http://www.eclipse.org/downloads/moreinfo/c.php. See the Gotchas section for minor tricks if things do not work out smoothly.

At the very least, the following packages need to be installed before Eclipse

Gotchas

The following is a list of minor problems (but major annoyances) that I have encountered using Eclipse:

Perspectives

All IDEs use multiple window configurations for different tasks, like editing and debugging. In Eclipse, this process is made explicit via "perspectives" - stored window configuration layouts. Eclipse likes to ask questions if it is OK to change to a new perspective - in my experience, answer shall always be "yes". The perspectives can be switched via a selector in the top right corner of the IDE. So, if you are wondering where all your editing screens have gone after a debugging session, don't worry - they are only a click away .

Managing Projects

An idea of a project in Eclipse is quite different from other IDEs. For example, it prefers the source files to be in the directory tree maintained by Eclipse. Unfortunately, the C/C++ projects apparently go somewhat against the grain of "sea of classes" in Java and therefore are hard to graft onto primarily Java-oriented culture of core Eclipse developers. Some tips:

Developing with Eclipse for Zynq (Standalone)

Setup:

  1. Install the "Xilinx SDK", it includes Eclipse, drivers, etc.
  2. Setup the development board for using JTAG (there are typically two switch groups, group of four shall be set 0-0-0-0, group of two shall be set 0-1)
  3. Plug both USB cables into the front panel (the one with miniB connector is USB serial port set to 115200 baud by default, the one with microB connector is the JTAG)

Creating a project:

  1. In Eclipse, use  New > Application Project. Use "Create New" for BSP setting. Use "Helloword" option
  2. Edit and build the project as required. Note that the stack size is pretty small compared to a typicl PC setup.
  3. Run or debug. In the run/debug configuration (select "Launch on hardware"), connect the serial COM port to console at 115200 baud.
  4. Note: When adding libraries, be very careful and use the C/C++ Build > Settings, not the visibly similar items under C/C++ General. Using the latter to change libraries will completely mess up your project file.

Developing with Eclipse for BlackBerry

Setup:

  1. Download the "Full Installer" from http://na.blackberry.com/eng/developers/javaappdev/javaeclipseplug.jsp
  2. Follow the video, http://www.blackberry.com/DevMediaLibrary/view.do?name=eclipseJDE
  3. If, contrary to the video, the only non-grayed item under "Blackberry" will be "Install signature keys":