Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Building motif libs on HP UX Itanium architecture 64bit
Building motif libs on HP UX Itanium architecture 64bit [message #309419] Thu, 26 October 2006 12:34 Go to next message
Shajeer Mohammed is currently offline Shajeer MohammedFriend
Messages: 4
Registered: July 2009
Junior Member
I have seen that there is a 32 bit version of libswt-motif-3138.so available
in org.eclipse.swt.motif.hpux.ia64_32 plugin.
Howevr I need to build a 64 bit version of the same.
Can some please guide me how to build/port this code.
Re: Building motif libs on HP UX Itanium architecture 64bit [message #309561 is a reply to message #309419] Tue, 31 October 2006 14:26 Go to previous messageGo to next message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2150
Registered: July 2009
Senior Member
Hi Shajeer,

swt's motif codebase is not instrumented to run with 64-bit addresses, so
this would be an enormous task to take on. You're much better off to try to
convert swt's linux-gtk codebase. The basic steps should be:

- retrieve swt into an eclipse workspace as described in
http://www.eclipse.org/swt/cvs.php, get the following projects
-> org.eclipse.swt
-> org.eclipse.swt.gtk.linux.x86_64
-> org.eclipse.swt.tools
- rename org.eclipse.swt's .classpath_gtk to .classpath
- org.eclipse.swt.gtk.linux.x86_64/build.xml is an ant file. Run its
targets:
-> replace.32.to.64: this will swap all pointers in the swt codebase from
32-bit int's to 64-bit long's
-> build.cfiles: this will regenerate swt's C files to use 64-bit jlong's
instead of 32-bit jint's, and will copy everything 64-bit into the
org.eclipse.swt.gtk.linux.x86_64 project
- refresh your workspace (select all projects, press F5)
- attempt to rebuild swt's libraries now by going into
org.eclipse.swt.gtk.linux.x86_64/src/bin/library/ and invoking build.sh
-> this should fail because there are linux-specific assumptions being
made, so you'll need to fix at least the build.sh and Makefile to be more
hpux-ish (swt's 32-bit hpux build.sh and Makefile should be good references
here)
- rebuild the eclipse launcher, as described in
http://www.eclipse.org/swt/faq.php#buildeclipseexe

Note that since I have not heard of this being tried before, everything may
not go as smoothly as the description implies ;-). If you have follow-up
questions you should ask them on the eclipse.platform.swt newsgroup. Good
luck!

Grant


"Shajeer Mohamed" <shajeer@hotmail.com> wrote in message
news:ehq9vo$ee2$1@utils.eclipse.org...
> I have seen that there is a 32 bit version of libswt-motif-3138.so
available
> in org.eclipse.swt.motif.hpux.ia64_32 plugin.
> Howevr I need to build a 64 bit version of the same.
> Can some please guide me how to build/port this code.
>
>
Re: Building motif libs on HP UX Itanium architecture 64bit [message #309579 is a reply to message #309561] Wed, 01 November 2006 14:24 Go to previous message
Shajeer Mohammed is currently offline Shajeer MohammedFriend
Messages: 4
Registered: July 2009
Junior Member
Thank you for the update. Looks like an enormous task to take on.


"Grant Gayed" <grant_gayed@ca.ibm.com> wrote in message
news:ei7meq$g7b$1@utils.eclipse.org...
> Hi Shajeer,
>
> swt's motif codebase is not instrumented to run with 64-bit addresses, so
> this would be an enormous task to take on. You're much better off to try
> to
> convert swt's linux-gtk codebase. The basic steps should be:
>
> - retrieve swt into an eclipse workspace as described in
> http://www.eclipse.org/swt/cvs.php, get the following projects
> -> org.eclipse.swt
> -> org.eclipse.swt.gtk.linux.x86_64
> -> org.eclipse.swt.tools
> - rename org.eclipse.swt's .classpath_gtk to .classpath
> - org.eclipse.swt.gtk.linux.x86_64/build.xml is an ant file. Run its
> targets:
> -> replace.32.to.64: this will swap all pointers in the swt codebase from
> 32-bit int's to 64-bit long's
> -> build.cfiles: this will regenerate swt's C files to use 64-bit jlong's
> instead of 32-bit jint's, and will copy everything 64-bit into the
> org.eclipse.swt.gtk.linux.x86_64 project
> - refresh your workspace (select all projects, press F5)
> - attempt to rebuild swt's libraries now by going into
> org.eclipse.swt.gtk.linux.x86_64/src/bin/library/ and invoking build.sh
> -> this should fail because there are linux-specific assumptions being
> made, so you'll need to fix at least the build.sh and Makefile to be more
> hpux-ish (swt's 32-bit hpux build.sh and Makefile should be good
> references
> here)
> - rebuild the eclipse launcher, as described in
> http://www.eclipse.org/swt/faq.php#buildeclipseexe
>
> Note that since I have not heard of this being tried before, everything
> may
> not go as smoothly as the description implies ;-). If you have follow-up
> questions you should ask them on the eclipse.platform.swt newsgroup. Good
> luck!
>
> Grant
>
>
> "Shajeer Mohamed" <shajeer@hotmail.com> wrote in message
> news:ehq9vo$ee2$1@utils.eclipse.org...
>> I have seen that there is a 32 bit version of libswt-motif-3138.so
> available
>> in org.eclipse.swt.motif.hpux.ia64_32 plugin.
>> Howevr I need to build a 64 bit version of the same.
>> Can some please guide me how to build/port this code.
>>
>>
>
>
Previous Topic:What is the "eclipse way" to copy a file from plugin to plugin state?
Next Topic:JFace Table Viewer help
Goto Forum:
  


Current Time: Fri Apr 19 20:50:29 GMT 2024

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

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

Back to the top