Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Tycho build for ARM (Raspberry Pi)

there is no SWT port for ARM AFAIK

I know people have experimented with eclipse on ARM before

https://resheim.net/2013/05/running-eclipse-rcp-applications-on.html

http://eclipseandlinux.blogspot.de/2013/04/is-running-eclipse-on-raspberry-
pi.html 


Jan


On 29/09/15 19:16, "tycho-user-bounces@xxxxxxxxxxx on behalf of Alexandre
Waris" <tycho-user-bounces@xxxxxxxxxxx on behalf of
alexandre.waris@xxxxxxxxx> wrote:

>Thanks for the answer but it doesn't work.
>
>Using the "java - jar org.eclipse.equinox.launcher....jar [...]  -arch
>x86" I have the follwoing error :
>
>---------------------------
>java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons:
>        
>/home/pi/Goko/configuration/org.eclipse.osgi/106/0/.cp/libswt-gtk-4527.so:
> 
>/home/pi/Goko/configuration/org.eclipse.osgi/106/0/.cp/libswt-gtk-4527.so:
> cannot open shared object file: No such file or directory (Possible
>cause: can't load IA 32-bit .so
> on a ARM-bit platform)
>        no swt-gtk in java.library.path
>        /home/pi/.swt/lib/linux/arm/libswt-gtk-4527.so:
>/home/pi/.swt/lib/linux/arm/libswt-gtk-4527.so: cannot open shared object
>file: No such file or directory (Possible cause: can't load IA 32-bit .so
>on a ARM-bit platform)
>        Can't load library: /home/pi/.swt/lib/linux/arm/libswt-gtk.so
>
>        at org.eclipse.swt.internal.Library.loadLibrary(Library.java:327)
>        at org.eclipse.swt.internal.Library.loadLibrary(Library.java:236)
>        at org.eclipse.swt.internal.C.<clinit>(C.java:16)
>        at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:63)
>        at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:54)
>        at org.eclipse.swt.widgets.Display.<clinit>(Display.java:134)
>        at 
>org.eclipse.e4.ui.internal.workbench.swt.E4Application.start(E4Application
>.java:140)
>        at 
>org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.jav
>a:196)
>        at 
>org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplicatio
>n(EclipseAppLauncher.java:134)
>        at 
>org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(Eclipse
>AppLauncher.java:104)
>        at 
>org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:38
>0)
>        at 
>org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:23
>5)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at 
>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
>57)
>        at 
>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorIm
>pl.java:43)
>        at java.lang.reflect.Method.invoke(Method.java:606)
>        at 
>org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:669)
>        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:608)
>        at org.eclipse.equinox.launcher.Main.run(Main.java:1515)
>        at org.eclipse.equinox.launcher.Main.main(Main.java:1488)
>---------------------------
>
>
>
>So I tried using arm as arch with "java - jar
>org.eclipse.equinox.launcher....jar [...]  -arch x86". But now I have :
>---------------------------
>
>!ENTRY org.eclipse.osgi 4 0 2015-09-29 17:13:58.885
>!MESSAGE Application error
>!STACK 1
>java.lang.NoClassDefFoundError: org/eclipse/swt/widgets/Display
>        at 
>org.eclipse.e4.ui.internal.workbench.swt.E4Application.start(E4Application
>.java:140)
>        at 
>org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.jav
>a:196)
>        at 
>org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplicatio
>n(EclipseAppLauncher.java:134)
>        at 
>org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(Eclipse
>AppLauncher.java:104)
>        at 
>org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:38
>0)
>        at 
>org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:23
>5)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at 
>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
>57)
>        at 
>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorIm
>pl.java:43)
>        at java.lang.reflect.Method.invoke(Method.java:606)
>        at 
>org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:669)
>        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:608)
>        at org.eclipse.equinox.launcher.Main.run(Main.java:1515)
>        at org.eclipse.equinox.launcher.Main.main(Main.java:1488)
>Caused by: java.lang.ClassNotFoundException:
>org.eclipse.swt.widgets.Display cannot be found by
>org.eclipse.e4.ui.workbench.swt_0.13.0.v20150504-0621
>        at 
>org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoad
>er.java:439)
>        at 
>org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:
>352)
>        at 
>org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:
>344)
>        at 
>org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLo
>ader.java:160)
>        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
>------------------------
>
>
>I guess I'll have to use some ARM ready swt library/jar...
>
>
>What do you think ?
>
>
>
>
>
>2015-09-29 9:28 GMT+02:00 Sievers, Jan <jan.sievers@xxxxxxx>:
>
>AFAIK the native eclipse launchers are thin wrappers which just start a
>JVM with given commandline options.
>
>sth like 'java -jar org.eclipse.equinox.launcher_*.jar <further args>'
>
>check eclipse.ini of an existing eclipse installation for the arguments
>(or the eclipse log)
>
>you could create a shell script that does the same thing and add it as PDE
>root file to your installation [1,2]
>
>Regards
>Jan
>
>[1]
>http://help.eclipse.org/mars/index.jsp?topic=%2Forg.eclipse.pde.doc.user%2
>F
>tasks%2Fpde_rootfiles.htm
>[2] 
>https://wiki.eclipse.org/Tycho/Demo_Projects/RCP_Application
><https://wiki.eclipse.org/Tycho/Demo_Projects/RCP_Application>
>
>On 28/09/15 22:30, "tycho-user-bounces@xxxxxxxxxxx on behalf of Alexandre
>Waris" <tycho-user-bounces@xxxxxxxxxxx on behalf of
>alexandre.waris@xxxxxxxxx> wrote:
>
>>Hello,
>>
>>
>>I already have a tycho build setup for multiple platform (Win 32 & 64,
>>Linux 32 & 64) but I'd like to provide a version for Raspberry PI
>>(running Raspbian).
>>
>>The Pi uses a ARM processor and trying to run the Linux launcher on it,
>>gives the following error :
>>
>>
>>"Cannot execute binary file"
>>
>>
>>Running a "file Goko" command gives the following :
>>
>>"Goko: ELF 32-bit LSB executable, Intel 80386, version1 (SYSV),
>>dynamically linked (uses shared libs), for GNU/Linux 2.2.5, not stripped"
>>
>>
>>I had no chance to test it on a regular Intel Linux but I assume it would
>>at least execute the launcher.
>>
>>
>>Any idea how to add it to Tycho build ?
>>
>>Could the native launcher be replaced with some command line call ?
>>
>>
>>I tried and follow
>>https://resheim.net/2013/05/running-eclipse-rcp-applications-on.html
>><https://resheim.net/2013/05/running-eclipse-rcp-applications-on.html>,
>>but had no success.I'm not even sure what's the target architecture name
>>(arm, arm6l, .... ?)
>>
>>
>>
>>Thanks,
>>
>>Alex,
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>
>_______________________________________________
>tycho-user mailing list
>tycho-user@xxxxxxxxxxx
>To change your delivery options, retrieve your password, or unsubscribe
>from this list, visit
>https://dev.eclipse.org/mailman/listinfo/tycho-user
>
>
>
>
>



Back to the top