Eclipse

From Gentoo Wiki
Jump to:navigation Jump to:search
The information in this article is probably outdated. You can help the Gentoo community by verifying and updating this article.
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

Use eselect repository from app-eselect/eselect-repository to add the eclipse ebuild repository:

root #eselect repository enable eclipse
root #emerge --sync eclipse

If needed, see article on regenerating the Eix cache, for those using Eix.

Emerge

Install the Eclipse SDK:

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

Usage

Invocation

The package is slotted for major Eclipse releases, to be able to 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 a 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"

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. This can be limited 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.