Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » How to build an RCP app with Linux/Motif?
icon5.gif  How to build an RCP app with Linux/Motif? [message #490077] Wed, 07 October 2009 09:07 Go to next message
Thomas SZADEL is currently offline Thomas SZADELFriend
Messages: 36
Registered: July 2009
Member
Hi all,

I wonder how to build an RCP application with Linux/Motif (Eclipse 3.4.x)?

I have not seen any RCP platform based on Linux/motif on the Eclipse download page. The only thing I have found is the main eclipse product...

Thus, I've tried to download the delta pack... but the linux/motif version is missing Sad

So, I've added the swt and launcher plugins of the eclipse/motif version in my current eclipse platform and rebuilt my application (the build is done with an headless ant script).
The build is successful, but when I launch the application, I've got the following error message:

java.lang.UnsatisfiedLinkError: no swt-motif-3449 or swt-motif in swt.library.path, java.library.path or the jar file
        at org.eclipse.swt.internal.Library.loadLibrary(Library.java:233)
        at org.eclipse.swt.internal.Library.loadLibrary(Library.java:151)
        at org.eclipse.swt.internal.C.<clinit>(C.java:21)
        at org.eclipse.swt.graphics.Device.<clinit>(Device.java:116)
        at org.eclipse.ui.internal.Workbench.createDisplay(Workbench.java:509)
        at org.eclipse.ui.PlatformUI.createDisplay(PlatformUI.java:161)
        at ...
Re: How to build an RCP app with Linux/Motif? [message #490808 is a reply to message #490077] Sun, 11 October 2009 08:16 Go to previous messageGo to next message
Antonio is currently offline AntonioFriend
Messages: 39
Registered: July 2009
Member
Hi tomas i think you read this how-to
http://www.vogella.de/articles/RichClientPlatform/article.ht ml
remanber you will create a produt for windows and other for linux, naturally
you can write your application on windows system.
bye
antonio

"Thomas SZADEL" <thomas.szadel@atosorigin.com> ha scritto nel messaggio
news:hahlnq$642$1@build.eclipse.org...
> Hi all,
>
> I wonder how to build an RCP application with Linux/Motif (Eclipse 3.4.x)?
>
> I have not seen any RCP platform based on Linux/motif on the Eclipse
> download page. The only thing I have found is the main eclipse product...
>
> Thus, I've tried to download the delta pack... but the linux/motif version
> is missing :(
>
> So, I've added the swt and launcher plugins of the eclipse/motif version
> in my current eclipse platform and rebuilt my application (the build is
> done with an headless ant script).
> The build is successful, but when I launch the application, I've got the
> following error message:
>
>
> java.lang.UnsatisfiedLinkError: no swt-motif-3449 or swt-motif in
> swt.library.path, java.library.path or the jar file
> at org.eclipse.swt.internal.Library.loadLibrary(Library.java:23 3)
> at org.eclipse.swt.internal.Library.loadLibrary(Library.java:15 1)
> at org.eclipse.swt.internal.C.<clinit>(C.java:21)
> at org.eclipse.swt.graphics.Device.<clinit>(Device.java:116)
> at
> org.eclipse.ui.internal.Workbench.createDisplay(Workbench.ja va:509)
> at org.eclipse.ui.PlatformUI.createDisplay(PlatformUI.java:161)
> at ...
>
Re: How to build an RCP app with Linux/Motif? [message #490951 is a reply to message #490808] Mon, 12 October 2009 15:02 Go to previous messageGo to next message
Thomas SZADEL is currently offline Thomas SZADELFriend
Messages: 36
Registered: July 2009
Member
Hi Antonio!

Thank you for your answer... but I know hot to deploy an RCP application Very Happy

The problem is: the linux/motif version seems to be no longer available... neither in the RCP plugin nor in the delta pack...

I have a bug with the GTK2 version (let's see my previous post about Obscured widget) and I wish to switch the application into the Motif version of SWT.

Tom
Re: How to build an RCP app with Linux/Motif? [message #491984 is a reply to message #490077] Fri, 16 October 2009 21:28 Go to previous message
Andrew Niefer is currently offline Andrew NieferFriend
Messages: 990
Registered: July 2009
Senior Member
For 3.4.2, there is a motif download of the sdk
http://download.eclipse.org/eclipse/downloads/drops/R-3.4.2- 200902111700/download.php?dropFile=eclipse-SDK-3.4.2-linux-m otif.tar.gz
that was used for testing purposes.

I'm assuming that is where you got the swt & launcher plugins?
If you look in your swt.motif.linux.x86 fragment does it contain the
libswt-motif-3449.so library? 3449 is the version from 3.4.1, 3.4.2 was
3452.

The swt java class files have hardcoded the version of the native they
are looking for, if you've assembled your own fragment jar, they could
be mismatched.

Or, if the library version is correct, maybe the library can't be loaded
due to missing dependencies. The SDK ships with a libXm.so.2 in the
root of eclipse, are you missing that?

(Also the 3.5. deltapacks do contain linux/motif if you want to upgrade).

-Andrew
Thomas SZADEL wrote:
> Hi all,
>
> I wonder how to build an RCP application with Linux/Motif (Eclipse 3.4.x)?
>
> I have not seen any RCP platform based on Linux/motif on the Eclipse
> download page. The only thing I have found is the main eclipse product...
>
> Thus, I've tried to download the delta pack... but the linux/motif
> version is missing :(
>
> So, I've added the swt and launcher plugins of the eclipse/motif version
> in my current eclipse platform and rebuilt my application (the build is
> done with an headless ant script).
> The build is successful, but when I launch the application, I've got the
> following error message:
>
>
> java.lang.UnsatisfiedLinkError: no swt-motif-3449 or swt-motif in
> swt.library.path, java.library.path or the jar file
> at org.eclipse.swt.internal.Library.loadLibrary(Library.java:23 3)
> at org.eclipse.swt.internal.Library.loadLibrary(Library.java:15 1)
> at org.eclipse.swt.internal.C.<clinit>(C.java:21)
> at org.eclipse.swt.graphics.Device.<clinit>(Device.java:116)
> at
> org.eclipse.ui.internal.Workbench.createDisplay(Workbench.ja va:509)
> at org.eclipse.ui.PlatformUI.createDisplay(PlatformUI.java:161)
> at ...
>
Previous Topic:Hide context menuitem in navigator/package explorer
Next Topic:EditorPart and doSave
Goto Forum:
  


Current Time: Tue Sep 24 03:35:02 GMT 2024

Powered by FUDForum. Page generated in 0.04266 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top