On Thu, Nov 06, 2025 at 02:15:30PM -0800, American Citizen wrote:
> Hello:
> 
> I do have the Eclipse IDE installed on my openSuse Leap 15.5 system, but
> today I learned that an IDE from them is intended for the C and C++
> environments.
> 
> I did github clone {CDT package} but upon reading the build instruction, I
> found out that lots was involved, and things might possibly go wrong.

Eclipse is not exactly design for mere users to build and install from
source. Normally, that would only be done by developers having to work
on Eclipse itself. I generally use some prebuilt flavor tailored to my
specific use-case. I would recommend using this download for getting
Eclipse CDT:

https://www.eclipse.org/downloads/packages/release/2025-09/r/eclipse-ide-cc-developers

This download is a self-contained version of Eclipse that does not
require installing. It can run directly out of the extracted eclipse
folder. However, even their installer I would consider safe and can be
run as a non-root user to install it into your home directory. The main
thing that the installer gives you it automatic integration into your
desktop environments start menu.

With that said, if you want to try to build from source, try these
instructions. It requires that you have Java 21 or newer, Apache Maven,
and Apache Ant. Since I'm using Ubuntu 25.04, I was able to satisfy that
with:

sudo apt install -y git openjdk-24-jdk ant maven
git clone https://github.com/eclipse-cdt/cdt
cd cdt

Since I have multiple Java versions installed, I have to add JAVA_HOME
to the command to select the correct one, but you can omit that if your
default JDK is 21 or newer. I also had some issues with the tests
running so I skipped them. You need to target package in the Maven life
cycle because it builds several packages and they need to be installed
in your local Maven repository for later build steps to succeed,
otherwise you get weird build errors. With that said, you should be able
to run the following command to build it:

JAVA_HOME=/usr/lib/jvm/java-24-openjdk-amd64 mvn -P skip-all-tests package

This will not build native binary components in the process. Instead, it
pulls in prebuilt ones. If you want a true build from source, you will
likely need to add something like -Dnative=linux.x86_64 although I have
not tested this yet. This will also likely require more dependencies to
be installed on your system.

See how it goes and hopefully this will get you unblocked.

Thanks,
Loren

> 
> Has anyone in this group installed the Eclipse CDT IDE package on their
> linux system?
> 
> Please let me know, as I'd like to email you and talk about your
> success(es).
> 
> Randall
> 

-- 
Loren M. Lang
[email protected]
http://www.north-winds.org/
IRC: penguin359


Public Key: http://www.north-winds.org/lorenl_pubkey.asc
Fingerprint: 7896 E099 9FC7 9F6C E0ED  E103 222D F356 A57A 98FA

Attachment: signature.asc
Description: PGP signature

Reply via email to