Difference between revisions of "Hacking:Eclipse"

From GIMP Developer Wiki
Jump to: navigation, search
(edit Preparations, add structure for 'Configure Eclipse')
(make Babl the continuous example)
Line 18: Line 18:
 
Eclipse runs on every platform that can run Java and has a graphical interface.
 
Eclipse runs on every platform that can run Java and has a graphical interface.
  
== Why not to use Eclipse to work on GIMP? ==
+
== Why not to use Eclipse to work on Babl, GEGL and GIMP? ==
 
Because it's not Emacs :-P
 
Because it's not Emacs :-P
  
Line 24: Line 24:
 
The following steps describe the process for Eclipse 4.3 'Kepler' on Linux. It is assumed that your workspace for all projects is /home/user/workspace and GIMP will be installed in /home/user/prefix/gimp.
 
The following steps describe the process for Eclipse 4.3 'Kepler' on Linux. It is assumed that your workspace for all projects is /home/user/workspace and GIMP will be installed in /home/user/prefix/gimp.
  
The continuous example uses GEGL, because it is uses other libraries as well as it is used itself by GIMP.
+
The continuous example uses Babl, because it is small and easy for a start. Where necessary the tutorial describes the differences for GEGL and GIMP.  
Where necessary the tutorial describes the differences for Babl and GIMP.  
+
  
 
== Prepare the build environment ==
 
== Prepare the build environment ==
  
clone the GEGL Git repository into your workspace:  
+
clone the Babl Git repository into your workspace:  
 
# '''cd /home/user/workspace'''
 
# '''cd /home/user/workspace'''
# '''git clone git://git.gnome.org/gegl'''
+
# '''git clone git://git.gnome.org/Babl'''
  
 
To the same for GEGL and GIMP.
 
To the same for GEGL and GIMP.

Revision as of 02:39, 10 April 2014

This page will teach you how to set Eclipse IDE to work on the latest source of GIMP from git.

About Eclipse

Why use Eclipse to work on Babl, GEGL and GIMP?

Some of the features that are interesting for C/C++ developers are:

  • cross-referencing: Ctrl click an identifier and it will take you to its definition,
  • call hierarchy,
  • comprehensive search capabilities,
  • built in Git support,
  • Autotools integration,
  • graphical debugger,
  • explore remote systems from within Eclipse,
  • focus on the current task,
  • Bugzilla integration,
  • static code analysis.

and more. Eclipse runs on every platform that can run Java and has a graphical interface.

Why not to use Eclipse to work on Babl, GEGL and GIMP?

Because it's not Emacs :-P

Preparations

The following steps describe the process for Eclipse 4.3 'Kepler' on Linux. It is assumed that your workspace for all projects is /home/user/workspace and GIMP will be installed in /home/user/prefix/gimp.

The continuous example uses Babl, because it is small and easy for a start. Where necessary the tutorial describes the differences for GEGL and GIMP.

Prepare the build environment

clone the Babl Git repository into your workspace:

  1. cd /home/user/workspace
  2. git clone git://git.gnome.org/Babl

To the same for GEGL and GIMP.

Get Eclipse

The easiest way is simply to download Eclipse IDE for C/C++ Developers). If you already have a working Eclipse installation and want to upgrade it, then download the following plug-ins:

  • CDT (for C/C++ development),
  • EGit (for Git integration).

and optionally

  • Mylyn Task List (for Bugzilla integration and task focused working).
  • Remote Systems Explorer.

Configure Eclipse to work on Babl, GEGL and GIMP

Create projects

Share projects with Git

Configure build environment

Integrate Autotools

Working with Eclipse

Code

Build

Install

Miscellanous

Problems and solutions

See the Problems and Solutions page.