|
From: Arno P. <ar...@pu...> - 2009-08-29 18:58:17
|
to make my life easier, could you please send me Vec2.java and Vec2.class?
Thanks,
Arno
August Bering wrote:
> I am getting strange errors when trying to cross compile jbox2d to iphone. Among other things the Vec2 class contains 2 clone() functions when compiled to objective c, with the only difference being different return types. This of course causes the obj c compiler to halt. This is the Vec2.h file that's output:
>
>
> #import "xmlvm.h"
> #import "java_lang_Object.h"
>
> // For circular include:
> @class org_jbox2d_common_MathUtils;
> @class java_lang_Object;
> @class java_lang_Class;
> @class java_lang_StringBuilder;
> @class java_lang_String;
> @class org_jbox2d_common_Vec2;
> @class java_lang_Float;
>
> // Automatically generated by xmlvm2obj. Do not edit!
>
>
>
> @interface org_jbox2d_common_Vec2 : java_lang_Object
> {
> @public float x;
> @public float y;
>
> }
> + (int) _GET_STATIC_watchCreations;
> + (void) _PUT_STATIC_watchCreations: (int) v;
> + (int) _GET_STATIC_creationCount;
> + (void) _PUT_STATIC_creationCount: (int) v;
> + (void) initialize;
> - (void) __init_org_jbox2d_common_Vec2;
> - (void) __init_org_jbox2d_common_Vec2___float_float :(float)n1 :(float)n2;
> - (void) __init_org_jbox2d_common_Vec2___org_jbox2d_common_Vec2 :(org_jbox2d_common_Vec2*)n1;
> - (void) setZero;
> - (void) set___float_float :(float)n1 :(float)n2;
> - (org_jbox2d_common_Vec2*) set___org_jbox2d_common_Vec2 :(org_jbox2d_common_Vec2*)n1;
> - (org_jbox2d_common_Vec2*) add___org_jbox2d_common_Vec2 :(org_jbox2d_common_Vec2*)n1;
> - (org_jbox2d_common_Vec2*) sub___org_jbox2d_common_Vec2 :(org_jbox2d_common_Vec2*)n1;
> - (org_jbox2d_common_Vec2*) mul___float :(float)n1;
> - (org_jbox2d_common_Vec2*) negate;
> - (org_jbox2d_common_Vec2*) negateLocal;
> - (org_jbox2d_common_Vec2*) addLocal___org_jbox2d_common_Vec2 :(org_jbox2d_common_Vec2*)n1;
> - (org_jbox2d_common_Vec2*) addLocal___float_float :(float)n1 :(float)n2;
> - (org_jbox2d_common_Vec2*) subLocal___org_jbox2d_common_Vec2 :(org_jbox2d_common_Vec2*)n1;
> - (org_jbox2d_common_Vec2*) mulLocal___float :(float)n1;
> - (float) length;
> - (float) lengthSquared;
> - (float) normalize;
> - (int) isValid;
> - (org_jbox2d_common_Vec2*) abs;
> - (void) absLocal;
> - (org_jbox2d_common_Vec2*) clone;
> - (java_lang_String*) toString;
> + (org_jbox2d_common_Vec2*) abs___org_jbox2d_common_Vec2 :(org_jbox2d_common_Vec2*)n1;
> + (void) absToOut___org_jbox2d_common_Vec2_org_jbox2d_common_Vec2 :(org_jbox2d_common_Vec2*)n1 :(org_jbox2d_common_Vec2*)n2;
> + (float) dot___org_jbox2d_common_Vec2_org_jbox2d_common_Vec2 :(org_jbox2d_common_Vec2*)n1 :(org_jbox2d_common_Vec2*)n2;
> + (float) cross___org_jbox2d_common_Vec2_org_jbox2d_common_Vec2 :(org_jbox2d_common_Vec2*)n1 :(org_jbox2d_common_Vec2*)n2;
> + (org_jbox2d_common_Vec2*) cross___org_jbox2d_common_Vec2_float :(org_jbox2d_common_Vec2*)n1 :(float)n2;
> + (void) crossToOut___org_jbox2d_common_Vec2_float_org_jbox2d_common_Vec2 :(org_jbox2d_common_Vec2*)n1 :(float)n2 :(org_jbox2d_common_Vec2*)n3;
> + (org_jbox2d_common_Vec2*) cross___float_org_jbox2d_common_Vec2 :(float)n1 :(org_jbox2d_common_Vec2*)n2;
> + (void) crossToOut___float_org_jbox2d_common_Vec2_org_jbox2d_common_Vec2 :(float)n1 :(org_jbox2d_common_Vec2*)n2 :(org_jbox2d_common_Vec2*)n3;
> + (void) negateToOut___org_jbox2d_common_Vec2_org_jbox2d_common_Vec2 :(org_jbox2d_common_Vec2*)n1 :(org_jbox2d_common_Vec2*)n2;
> + (org_jbox2d_common_Vec2*) min___org_jbox2d_common_Vec2_org_jbox2d_common_Vec2 :(org_jbox2d_common_Vec2*)n1 :(org_jbox2d_common_Vec2*)n2;
> + (org_jbox2d_common_Vec2*) max___org_jbox2d_common_Vec2_org_jbox2d_common_Vec2 :(org_jbox2d_common_Vec2*)n1 :(org_jbox2d_common_Vec2*)n2;
> + (void) minToOut___org_jbox2d_common_Vec2_org_jbox2d_common_Vec2_org_jbox2d_common_Vec2 :(org_jbox2d_common_Vec2*)n1 :(org_jbox2d_common_Vec2*)n2 :(org_jbox2d_common_Vec2*)n3;
> + (void) maxToOut___org_jbox2d_common_Vec2_org_jbox2d_common_Vec2_org_jbox2d_common_Vec2 :(org_jbox2d_common_Vec2*)n1 :(org_jbox2d_common_Vec2*)n2 :(org_jbox2d_common_Vec2*)n3;
> - (int) hashCode;
> - (int) equals___java_lang_Object :(java_lang_Object*)n1;
> - (java_lang_Object*) clone;
>
> @end
>
>
>
> /August Bering
>
>
>
>
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now. http://p.sf.net/sfu/bobj-july
> _______________________________________________
> xmlvm-users mailing list
> xml...@li...
> https://lists.sourceforge.net/lists/listinfo/xmlvm-users
|