Eclipse

From Gentoo Wiki
Jump to: navigation, search
Resources

Eclipse is a software development platform including front ends for typically Java development software tools, however a C/C++ front end can also be optionally installed and is called CDT. The installation of CDT is further discussed below.

Installation

Overlay

Install the java overlay, using Layman.

root #layman -a eclipse

If you use Eix, regenerate the index to include the newly added overlay:

root #eix-update

Emerge

Install the Eclipse SDK:

root #emerge --ask dev-util/eclipse-sdk-bin

Usage

Invocation

The package is slotted for major Eclipse releases, so you can have multiple versions installed at the same time.

To run it simply type the following replacing with the version number installed:

user $/usr/bin/eclipse-bin-4.6

In your favourite desktop environment the different versions should show up automatically in the list of installed applications.

Install CDT

CDT adds C/C++ tools to Eclipse SDK.

Need to first find the latest code name for the latest release of CDT. Go to the following page and take note of the latest code named release. (ie. kepler, indigo, juno, ...)

http://www.eclipse.org/cdt/downloads.php

Configuration

Install Update Repository

Go to "Help > Install New Software" and add the following repository after clicking add, and after finding and replacing "kepler" with the latest code named repository.

This general repository is needed prior trying to add the CDT repository, as the CDT repository depends on other packages outside of the CDT repository and which were not installed by default.

Install CDT Repository

Go to "Help > Install New Software" and click 'add', adding the following after also replacing the code name with the latest code named repository.

Once this repository is entered, go ahead and select it and select all or some of the packages and click next. Eclipse may need to restart afterwards.

Troubleshooting

"bundle org.eclipse.rse.ui ... could not be found" or "missing remote debug launcher"

You need to install the general Update Software repository mentioned above prior to installing CDT in order to satisfy these dependencies. Eclipse SDK should then automatically pull them in.

Random crashes happening in native code (C [libgobject-2.0.so.0+0x1b0b8] g_object_get_qdata+0x18)

See also Bug 430432

Workaround: Set the gtk+-2 theme to default. You can limit this to eclipse-sdk:

user $GTK2_RC_FILES=/usr/share/themes/Default/gtk-2.0/gtkrc eclipse-sdk

See also

PyCharm Community Edition - A free and open source IDE for Python.