2

I have a pre-existing Eclipse RCP application that I'd like to port to the Raspberry Pi. In Eclipse Mars (4.5), there is support for cross-platform export to multiple Linux platforms (PPC, PPC64, PPC64LE, S390, S390x, x86, x86_64) but none for ARM.

Am I missing something or is Linux/ARM not supported? Since the Eclipse IDE itself apparently runs on ARM, I would expect this to be supported.

asked Jan 24, 2016 at 21:16

2 Answers 2

1

I've done it whith this toolschain : http://gnutoolchains.com/raspberry/

But it's only for Windows to ARM support... If it's your case, you'll find all necessary documentation on their web-site

answered Jan 24, 2016 at 22:58
3
  • Windows to ARM support is what I need. I have examined the toolchain you linked to, but I can't see in it how to port an Eclipse RCP/Java application to the Pi. Have I overlooked something? Commented Jan 25, 2016 at 9:18
  • Like said @flakeshake, for Java apps you don't need crosscompilation... but for C/C++, the link i send work for me. Just be carefull : raspberry-gcc-4.9.2-r2.exe is for Jessie distrib and raspberry-gcc4.6.3.exe is for wheezy one. Commented Jan 25, 2016 at 18:08
  • As I noted in my reply to @flakeshake, Java GUI applications using RCP/SWT do need to be cross compiled for each platform, because they use widgets native to each platform. Commented Feb 9, 2016 at 0:12
0

Isn't the Eclipse RCP written in and for Java ? The big selling point of Java was the "compile once , run anywhere" paradigm which should hold true as long your targets have a JVM available.

Raspbian supports several JVMs , the official Oracle JVM is even shipped by default.

TL,DR : You don't recompile Java apps and Raspbian supports Java apps already - your app should work as-is.

answered Jan 25, 2016 at 12:35
2
  • 1
    Not quite: RCP (rich client platform) is a platform for building GUI programs that have a look and feel native to the OS they are running on. RCP is in turn based on SWT (standard windowing toolkit). Because it uses widgets native to each platform, and it is not a standard part of the JVM, it has to be ported for each platform. You do in fact recompile Eclipse programs for each new platform. Commented Feb 9, 2016 at 0:08
  • Well, i guess you will have to compile everything from source then ? First SWT , then RCP , then your App ... i've compiled big projects on the Pi1 with a swapfile on USB HDD ... took 20 hours Commented Feb 9, 2016 at 8:16

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.