[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] Cocoa SWT Java 6 64 bit ?


Ok, you caught us. We haven't done any work to make the cocoa port run 64-bit.  That normally happens after we have everything running 32-bit.  The strategy that we use is a bit tedious (look for /*long*/ in SWT code on Windows and GTK) but in the end, it means that we are optimized at runtime for the architecture.  Given the state of the coca port (a prototype that we are about to ramp up on), the fact that we are not 64-bit happy will be added to the other numerous work items.



String Larson <string01@xxxxxxxxx>
Sent by: platform-swt-dev-bounces@xxxxxxxxxxx

04/06/2008 10:05 AM

Please respond to
"Eclipse Platform SWT component developers list."        <platform-swt-dev@xxxxxxxxxxx>

To
platform-swt-dev@xxxxxxxxxxx
cc
Subject
[platform-swt-dev] Cocoa SWT Java 6 64 bit ?





Has anyone tried to compile the  org.eclipse.swt/bin/library source as  
64 bit on OS X 10.5 ?

I tried to change the arch settings in build.sh, and get this:

./build.sh
cc -c -xobjective-c -Wall -arch x86_64 -m64 -DSWT_VERSION=3437   -
DUSE_ASSEMBLER -DCOCOA -I /System/Library/Frameworks/JavaVM.framework/
Versions/1.6.0/Headers -I /System/Library/Frameworks/Cocoa.framework/
Headers swt.c
cc -c -xobjective-c -Wall -arch x86_64 -m64 -DSWT_VERSION=3437   -
DUSE_ASSEMBLER -DCOCOA -I /System/Library/Frameworks/JavaVM.framework/
Versions/1.6.0/Headers -I /System/Library/Frameworks/Cocoa.framework/
Headers c.c
c.c: In function âJava_org_eclipse_swt_internal_C_freeâ:
c.c:35: warning: cast to pointer from integer of different size
c.c: In function âJava_org_eclipse_swt_internal_C_getenvâ:
c.c:48: warning: cast from pointer to integer of different size
c.c: In function âJava_org_eclipse_swt_internal_C_mallocâ:
c.c:62: warning: cast from pointer to integer of different size
c.c: In function âJava_org_eclipse_swt_internal_C_memmove__IIIâ:
c.c:73: warning: cast to pointer from integer of different size
c.c:73: warning: cast to pointer from integer of different size
c.c: In function âJava_org_eclipse_swt_internal_C_memmove__I_3BIâ:
... [warnings deleted]....

cc -c -xobjective-c -Wall -arch x86_64 -m64 -DSWT_VERSION=3437   -
DUSE_ASSEMBLER -DCOCOA -I /System/Library/Frameworks/JavaVM.framework/
Versions/1.6.0/Headers -I /System/Library/Frameworks/Cocoa.framework/
Headers c_stats.c
cc -c -xobjective-c -Wall -arch x86_64 -m64 -DSWT_VERSION=3437   -
DUSE_ASSEMBLER -DCOCOA -I /System/Library/Frameworks/JavaVM.framework/
Versions/1.6.0/Headers -I /System/Library/Frameworks/Cocoa.framework/
Headers callback.c
callback.c:437: error: initializer element is not constant
callback.c:437: error: (near initialization for âfnx_array[0][0]â)
callback.c:437: error: initializer element is not constant
callback.c:437: error: (near initialization for âfnx_array[0][1]â)
...

Admittedly, I have not done much digging here. For that I apologize.

Advise ? Direction?

Thanks.
-str


_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev