Difference between revisions of "Hacking:Eclipse"

From GIMP Developer Wiki
Jump to: navigation, search
(edit 'About Eclipse', 'Prepare build environment', 'Get Eclipse')
(edit Preparations, add structure for 'Configure Eclipse')
Line 22: Line 22:
  
 
= Preparations =
 
= Preparations =
The following steps describe the process for Eclipse 4.3 'Kepler' on Linux. It is assumed that your workspace is /home/user/workspace.
+
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.
 +
Where necessary the tutorial describes the differences for Babl and GIMP.  
  
 
== Prepare the build environment ==
 
== Prepare the build environment ==
By example of Babl:
+
 
clone the Babl Git repository into your workspace:  
+
clone the GEGL Git repository into your workspace:  
# cd /home/user/workspace
+
# '''cd /home/user/workspace'''
# git clone git://git.gnome.org/babl
+
# '''git clone git://git.gnome.org/gegl'''
  
 
To the same for GEGL and GIMP.
 
To the same for GEGL and GIMP.
Line 43: Line 46:
  
 
== Configure Eclipse to work on Babl, GEGL and GIMP ==
 
== Configure Eclipse to work on Babl, GEGL and GIMP ==
 +
 +
=== Create projects ===
 +
 +
=== Share projects with Git ===
 +
 +
=== Configure build environment ===
 +
 +
=== Integrate Autotools ===
 +
  
 
= Working with Eclipse =
 
= Working with Eclipse =
Line 55: Line 67:
  
 
= Problems and solutions =
 
= Problems and solutions =
 +
 +
See the [[Hacking:Problems_and_solutions| Problems and Solutions page]].

Revision as of 19:20, 9 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 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 GEGL, because it is uses other libraries as well as it is used itself by GIMP. Where necessary the tutorial describes the differences for Babl and GIMP.

Prepare the build environment

clone the GEGL Git repository into your workspace:

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

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.