Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Which native libraries for RCP application?
Which native libraries for RCP application? [message #484712] Tue, 08 September 2009 20:22 Go to next message
Eclipse UserFriend
Originally posted by: jean.bovet.oracle.com

Hi,

I'm trying to figure out which libraries are needed for my RCP
application to run on other platform than Windows. I downloaded the
platform specific packages from the Eclipse download page (under the RCP
Runtime Library). Let's take for example Linux 32 bits. The only native
library I can see in the downloaded package is:
- org.eclipse.swt.gtk.linux.x86-3.5.0.v3550b.jar

However, in the main distribution of Eclipse, I can also find this library:
- org.eclipse.core.filesystem.linux.x86-1.2.0.v20080604-1400.j ar

Is the filesystem library needed on Linux? Or should I only rely on what
I downloaded for the RCP runtime? Why this difference?

Thanks,

Jean
Re: Which native libraries for RCP application? [message #484715 is a reply to message #484712] Tue, 08 September 2009 20:30 Go to previous messageGo to next message
Lars Vogel is currently offline Lars VogelFriend
Messages: 1098
Registered: July 2009
Senior Member

Hi Jean,

you can rely on the downloaded RCP runtime. If you need to build for
other platforms, e.g. windows, you need the deltapack.

The deltapack is (in addition) to p2 build described:
http://www.vogella.de/articles/EclipsePDEBuild/article.html

Otherwise you should be fine with your download.

Best regards, Lars


--
http://www.vogella.de/ - Eclipse plugin and Eclipse RCP Tutorials
http://www.twitter.com/vogella - vogella on Twitter
Re: Which native libraries for RCP application? [message #484716 is a reply to message #484715] Tue, 08 September 2009 20:41 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jean.bovet.oracle.com

Thanks Lars. The delta pack is really helpful.

Just out of curiosity, why is the
org.eclipse.core.filesystem.linux.x86-1.2.0.v20080604-1400.j ar not
needed for an RCP runtime on Linux? Are the RCP applications not using
certain native libraries that the Eclipse IDE does (but the IDE is an
RCP app, right?)?

One more question: is there a way to automatically load a native library
or shall I need to have different config.ini file for each platform to
include the correct libraries?

Regards,

Jean

On 9/8/2009 1:30 PM, Lars Vogel wrote:
> Hi Jean,
>
> you can rely on the downloaded RCP runtime. If you need to build for
> other platforms, e.g. windows, you need the deltapack.
>
> The deltapack is (in addition) to p2 build described:
> http://www.vogella.de/articles/EclipsePDEBuild/article.html
>
> Otherwise you should be fine with your download.
>
> Best regards, Lars
>
>
Re: Which native libraries for RCP application? [message #484835 is a reply to message #484716] Wed, 09 September 2009 13:33 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Eclipse User wrote on Tue, 08 September 2009 16:41
Originally posted by: jean.bovet.oracle.com

Just out of curiosity, why is the
org.eclipse.core.filesystem.linux.x86-1.2.0.v20080604-1400.j ar not
needed for an RCP runtime on Linux? Are the RCP applications not using
certain native libraries that the Eclipse IDE does (but the IDE is an
RCP app, right?)?



An RCP app doesn't include any of the "workspace" plugins. The IDE is an RCP app, but an RCP app that includes the workspace.

Eclipse User wrote on Tue, 08 September 2009 16:41

One more question: is there a way to automatically load a native library
or shall I need to have different config.ini file for each platform to
include the correct libraries?



Yes, you use Bundle-NativeCode header in the MANIFEST.MF and you can load the correct DLLs or .so depending on your platform. It's a little difficult to get right, though.

PW


Previous Topic:How to get editor order
Next Topic:Problem generating product
Goto Forum:
  


Current Time: Thu Apr 25 10:46:16 GMT 2024

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

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

Back to the top