trouble building SWT for gtk 64 from CVS [message #518399] |
Wed, 03 March 2010 23:51 |
Francis Upton IV 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)
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
|
|
|
Re: trouble building SWT for gtk 64 from CVS [message #518732 is a reply to message #518399] |
Thu, 04 March 2010 15:38 |
Grant Gayed 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
|
|
|
Powered by
FUDForum. Page generated in 0.02131 seconds