Can you use Eclipse on the Raspberry Pi?

On a Raspberry Pi 1 (pre RPi2 model B)

Forget it! Technically eclipse will run, but not really!  The RPi 1 is far too underpowered for it

On a Raspberry Pi 2 Model B

Yes we've got eclipse to run, but not with the cdt c++ compiler installed for it.  Lets hope this can be fixed soon as currently eclipse seems totally unstable for c++ development on the RPi

WE CAN'T CURRENTLY (MAY 2015) GET ECLIPSE FOR C++ DEVELOPMENT TO RUN ON THE RPi2 – PLEASE LET US KNOW IN THE COMMENTS IF YOU FIND A WAY!

Installing Eclipse Attempt 1

Enter this at the command line (N.B. this install takes a looooong time!)


sudo apt-get install eclipse

Use startx to load the GUI and you'll then find eclipse in the 'Programming' group.

Now install the C++ tools

Menu > Help > Install New Software

Work with: http://download.eclipse.org/releases/indigo/   (Will likely be an option already in the dropdown called 'Indigo Update Site')

Hit return and then once it retrieves everything (can take ages with just 'Pending…' showing) select 'Programming Languages' (can also take a while to download and open)

Select 'C/C++ Development Tools' > Next > IT CRASHES

Using this URL instead causes  acrash before you even get shown the options: http://download.eclipse.org/tools/cdt/releases/indigo

Installing Eclipse Attempt 2

Enter this at the command line (N.B. this install takes a looooong time!)


sudo apt-get install eclipse
sudo apt-get install eclipse-cdt g++

The -cdt line installs the c++ option into eclipse. 

Use startx to load the GUI and you'll then find eclipse in the 'Programming' group.

Now run Eclipse > IT CRASHES BEFORE IT FINISHES LOADING

 

USEFUL?
We benefit hugely from resources on the web so we decided we should try and give back some of our knowledge and resources to the community by opening up many of our company’s internal notes and libraries through mini sites like this. We hope you find the site helpful.
Please feel free to comment if you can add help to this page or point out issues and solutions you have found, but please note that we do not provide support on this site. If you need help with a problem please use one of the many online forums.

Comments

  1. Helena Heinonen

    8 years ago

    Does this work on a raspberry pi 3?

    1. Enderguy_58

      7 years ago

      If it works on the 2, surely!

  2. John Heart

    8 years ago

    WIth an RPi2 running the Raspian Jessie this works out of the box.

    1. pirateman1966

      9 years ago

      Indeed. It works now.
      Be careful with spaces. That page uses crappy fonts for code.
      Thanks Olivier.

Comments

Your email address will not be published. Required fields are marked *