Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » trouble building SWT for gtk 64 from CVS
trouble building SWT for gtk 64 from CVS [message #518399] Wed, 03 March 2010 23:51 Go to next message
Francis Upton IV is currently offline Francis Upton IVFriend
Messages: 472
Registered: July 2009
Location: Oakland, CA
Senior Member
I have followed the instructions from the Wiki for building SWT from CVS and followed mostly the FAQ, and yet I get the exception when below I try to run Eclipse, a snippet, or an SWT example.

Here is what I did:

(in a workspace having platform-ui and p2 checked out)

1) check out oe.swt, swt.x86_64, swt.examples
2) Copy the classpath per instructions in swt
3) Execute the build.jars target in the build.xml in the swt.x86_64 plugin
4) Refresh that plugin, clean build

I also tried to change the this line in the .classpath file:
<attribute name="org.eclipse.jdt.launching.CLASSPATH_ATTR_LIBRARY_PATH_ENTRY " value="org.eclipse.swt.gtk.linux.x86_64"/>

(adding the _64), both ways produce the same result.

I tried to delete the swt.jar file from the x86_64 plugin and it still gets the same error, so it looks like it's getting a 32 bit swt.jar from somewhere, but I can't figure out where.

I'm running on Unbuntu x86_64 machine with an X86_64 version of Eclipse (Build id: I20100225-1936)

I'm sure I'm doing something stupid, but can't figure it out. Also the FAQ for the gtk.x86_64 seems a little out of date when it talks about the build.xml file (the specified targets in the FAW don't exist).





Exception in thread "main" java.lang.UnsatisfiedLinkError: Cannot load 32-bit SWT libraries on 64-bit JVM
at org.eclipse.swt.internal.Library.loadLibrary(Library.java:19 7)
at org.eclipse.swt.internal.Library.loadLibrary(Library.java:17 4)
at org.eclipse.swt.internal.C.<clinit>(C.java:21)
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:132)
at org.eclipse.swt.snippets.Snippet101.main(Snippet101.java:25)


Re: trouble building SWT for gtk 64 from CVS [message #518732 is a reply to message #518399] Thu, 04 March 2010 15:38 Go to previous message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2150
Registered: July 2009
Senior Member
Hi Francis,

Yes the FAQ does look out of date, it should be updated. The following
steps worked for me:

- retrieve the projects from CVS
- rename .classpath_gtk to .classpath
- execute the jar.plugin target in the build.xml in the swt.x86_64 plugin
(FAQ: http://www.eclipse.org/swt/faq.php#howbuildplugin )

If this doesn't work for you then please follow up.

Grant


"Francis Upton" <francisu@ieee.org> wrote in message
news:hmmsm2$ssk$1@build.eclipse.org...
> I have followed the instructions from the Wiki for building SWT from CVS
and followed mostly the FAQ, and yet I get the exception when below I try to
run Eclipse, a snippet, or an SWT example.
>
> Here is what I did:
>
> (in a workspace having platform-ui and p2 checked out)
>
> 1) check out oe.swt, swt.x86_64, swt.examples
> 2) Copy the classpath per instructions in swt
> 3) Execute the build.jars target in the build.xml in the swt.x86_64 plugin
> 4) Refresh that plugin, clean build
>
> I also tried to change the this line in the .classpath file:
> <attribute
name="org.eclipse.jdt.launching.CLASSPATH_ATTR_LIBRARY_PATH_ENTRY "
value="org.eclipse.swt.gtk.linux.x86_64"/>
>
> (adding the _64), both ways produce the same result.
>
> I tried to delete the swt.jar file from the x86_64 plugin and it still
gets the same error, so it looks like it's getting a 32 bit swt.jar from
somewhere, but I can't figure out where.
>
> I'm running on Unbuntu x86_64 machine with an X86_64 version of Eclipse
(Build id: I20100225-1936)
>
> I'm sure I'm doing something stupid, but can't figure it out. Also the
FAQ for the gtk.x86_64 seems a little out of date when it talks about the
build.xml file (the specified targets in the FAW don't exist).
>
>
>
>
>
> Exception in thread "main" java.lang.UnsatisfiedLinkError: Cannot load
32-bit SWT libraries on 64-bit JVM
> at org.eclipse.swt.internal.Library.loadLibrary(Library.java:19 7)
> at org.eclipse.swt.internal.Library.loadLibrary(Library.java:17 4)
> at org.eclipse.swt.internal.C.<clinit>(C.java:21)
> 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:132)
> at org.eclipse.swt.snippets.Snippet101.main(Snippet101.java:25)
>
> --
> Platform UI Committer for Common Navigator
>
> http://wiki.eclipse.org/index.php/Common_Navigator_Framework
>
http://help.eclipse.org/galileo/topic/org.eclipse.platform.d oc.isv/guide/cnf.htm
Previous Topic:Some questions about developing a wizard
Next Topic:Re: IGVuOaJKZXpRUFzR
Goto Forum:
  


Current Time: Sun Dec 08 19:03:02 GMT 2024

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

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

Back to the top