You can subscribe to this list here.
2009 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(29) |
Aug
(75) |
Sep
(32) |
Oct
(147) |
Nov
(31) |
Dec
(49) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2010 |
Jan
(46) |
Feb
(35) |
Mar
(148) |
Apr
(33) |
May
(53) |
Jun
(46) |
Jul
(60) |
Aug
(44) |
Sep
(135) |
Oct
(23) |
Nov
(68) |
Dec
(42) |
2011 |
Jan
(94) |
Feb
(55) |
Mar
(114) |
Apr
(78) |
May
(64) |
Jun
(10) |
Jul
(31) |
Aug
(2) |
Sep
(25) |
Oct
(13) |
Nov
(8) |
Dec
(24) |
2012 |
Jan
(5) |
Feb
(33) |
Mar
(31) |
Apr
(19) |
May
(24) |
Jun
(23) |
Jul
(14) |
Aug
(15) |
Sep
(12) |
Oct
(3) |
Nov
(4) |
Dec
(19) |
2013 |
Jan
(8) |
Feb
(20) |
Mar
(4) |
Apr
(2) |
May
(1) |
Jun
(2) |
Jul
|
Aug
(1) |
Sep
(2) |
Oct
(1) |
Nov
(4) |
Dec
|
2014 |
Jan
|
Feb
|
Mar
(6) |
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2015 |
Jan
(7) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(6) |
2016 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(3) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2019 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(2) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Arno P. <ar...@pu...> - 2012-06-07 09:49:44
|
one little comment from my side: On 6/7/12 11:05 AM, Spoorthi D'Silva wrote: > To make use of this new code base, one needs to use a special flag > --xmlvm-new-ios-api. > Eg:java -Xmx1G -jar ../../../dist/xmlvm.jar > --in=bin/org/xmlvm/test/ios/ --out=out --app-name=HelloWorld > --target=iphonec --xmlvm-new-ios-api ; Note that there are two versions of the Java classes for iOS: - Package org.xmlvm.iphone.*: these are the (old) hand-written iOS classes. - Package org.xmlvm.ios.*: these are the (new) iOS classes generated with the help of crossmobile. If you want to use the new API, you need to develop against package org.xmlvm.ios.* in conjunction with the --xmlvm-new-ios-api. Arno |
From: Spoorthi D'S. <spo...@ma...> - 2012-06-07 09:20:50
|
Sorry for the delayed reply. I spent some time digging through this and from what I can tell there are 2 issues here: 1. UIWindow c wrapper was getting collected since it does not have a reference to it from outside which triggers the collection of the UIWindow Objective-C instance as well. UIWindow should not get collected and should be available through out the life of the application. This would lead to collection of all the objects that UIWindow has references to. 2. In the similar way, in the particular use case mentioned, UIControl C wrapper would get collected since it does not have external reference, leading to collection of the UIControlDelegateWrapper (since the reference to the delegate is part of UIControl wrapper). This issue holds for any delegates. There has been on going effort in automating the generation of Java skeletons as well as the C bridge code for iOS APIs under crossmobile (trunk/crossmobile) which basically parses the iOS headers and generates the Java API and the C wrapper code. This is still not in a complete form but supports most of the APIs. The generated Java skeletons and C wrapper code for iOS SDK 4.3 is checked into the trunk. To make use of this new code base, one needs to use a special flag --xmlvm-new-ios-api. Eg:java -Xmx1G -jar ../../../dist/xmlvm.jar --in=bin/org/xmlvm/test/ios/ --out=out --app-name=HelloWorld --target=iphonec --xmlvm-new-ios-api ; In this new code base, the issue that was faced in the specified test case is solved and seems to work fine. May be you can try to run your application against the new code base and let us know for your feedback. This is checked into the trunk. [You can check the tutorial apps under https://xmlvm.svn.sourceforge.net/svnroot/xmlvm/branches/tutorial/tutorial/ios/ which have been modified to use the new code base] Spoorthi |
From: Spoorthi D'S. <spo...@ma...> - 2012-06-07 09:11:31
|
Sorry for the delayed reply. I spent some time digging through this and from what I can tell there are 2 issues here: 1. UIWindow c wrapper was getting collected since it does not have a reference to it from outside which triggers the collection of the UIWindow Objective-C instance as well. UIWindow should not get collected and should be available through out the life of the application. This would lead to collection of all the objects that UIWindow has references to. 2. In the similar way, in the particular use case mentioned, UIControl C wrapper would get collected since it does not have external reference, leading to collection of the UIControlDelegateWrapper (since the reference to the delegate is part of UIControl wrapper). This issue holds for any delegates. There has been on going effort in automating the generation of Java skeletons as well as the C bridge code for iOS APIs under crossmobile (trunk/crossmobile) which basically parses the iOS headers and generates the Java API and the C wrapper code. This is still not in a complete form but supports most of the APIs. The generated Java skeletons and C wrapper code for iOS SDK 4.3 is checked into the trunk. To make use of this new code base, one needs to use a special flag --xmlvm-new-ios-api. Eg:java -Xmx1G -jar ../../../dist/xmlvm.jar --in=bin/org/xmlvm/test/ios/ --out=out --app-name=HelloWorld --target=iphonec --xmlvm-new-ios-api ; In this new code base, the issue that was faced in the specified test case is solved and seems to work fine. May be you can try to run your application against the new code base and let us know for your feedback. This is checked into the trunk. [You can check the tutorial apps under https://xmlvm.svn.sourceforge.net/svnroot/xmlvm/branches/tutorial/tutorial/ios/ which have been modified to use the new code base] Spoorthi |
From: Kensuke M. <mat...@ki...> - 2012-06-07 09:08:05
|
Hi, When I create CGContext using UIGraphics.beginImageContext(), how can I release it? CGContext.finalizer doesn't call CGContextRelease, also CFTyp.finalizer doesn't call CFRelease. And UIGraphics.popContext without pushContext raises error. Thanks in advance. |
From: Kensuke M. <mat...@ki...> - 2012-06-06 13:15:42
|
Hi, http://linux.die.net/man/1/libgc says "This makes it much easier for the collector to place large objects. These are recommended for large object allocation. (Objects expected to be larger than about 100KBytes should be allocated this way.)" According to GC_allochblk_nth (in allchblk.c) and BL_LIMIT (in gc_priv.h), blacklisting works efficiently if IGNORE_OFF_PAGE is on, because GC can skip black list checking after HBLKSIZE bytes. And big object allocation without IGNORE_OFF_PAGE risks a false reference. Thanks Kensuke (2012/06/06 19:20), Arno Puder wrote: > GC_MALLOC_ATOMIC() is used for arrays that do not store object > references (e.g., new byte[500000]). In this case it is clear that the > memory region cannot contain references to other objects and hence the > GC does not need to scan this region. Ultimately this is done as an > optimization. Whether GC_MALLOC_ATOMIC() should be used or not is > determined in XMLVMArray_getTypeInfo() > (native_org_xmlvm_runtime_XMLVMArray.c). Can you please elaborate how > this introduces a leak? > > Arno > > > On 6/6/12 12:12 PM, Kensuke Matsuzaki wrote: >> Hi, >> >> Now xmlvm2c uses GC_MALLOC_ATOMIC in XMLVMArray. >> This causes memory leak, when I allocate large array (like new byte[500000]). >> Perhaps xmlvm2c can use GC_MALLOC_ATOMIC_IGNORE_OFF_PAGE instead of GC_MALLOC_ATOMIC, >> because array object has reference by head of allocated area. >> >> Thank you. >> |
From: Arno P. <ar...@pu...> - 2012-06-06 10:44:16
|
GC_MALLOC_ATOMIC() is used for arrays that do not store object references (e.g., new byte[500000]). In this case it is clear that the memory region cannot contain references to other objects and hence the GC does not need to scan this region. Ultimately this is done as an optimization. Whether GC_MALLOC_ATOMIC() should be used or not is determined in XMLVMArray_getTypeInfo() (native_org_xmlvm_runtime_XMLVMArray.c). Can you please elaborate how this introduces a leak? Arno On 6/6/12 12:12 PM, Kensuke Matsuzaki wrote: > Hi, > > Now xmlvm2c uses GC_MALLOC_ATOMIC in XMLVMArray. > This causes memory leak, when I allocate large array (like new byte[500000]). > Perhaps xmlvm2c can use GC_MALLOC_ATOMIC_IGNORE_OFF_PAGE instead of GC_MALLOC_ATOMIC, > because array object has reference by head of allocated area. > > Thank you. > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users |
From: Kensuke M. <mat...@ki...> - 2012-06-06 10:12:48
|
Hi, Now xmlvm2c uses GC_MALLOC_ATOMIC in XMLVMArray. This causes memory leak, when I allocate large array (like new byte[500000]). Perhaps xmlvm2c can use GC_MALLOC_ATOMIC_IGNORE_OFF_PAGE instead of GC_MALLOC_ATOMIC, because array object has reference by head of allocated area. Thank you. |
From: Arno P. <ar...@pu...> - 2012-06-05 00:19:21
|
I think the general demo target is broken. cd into the demo you want to compile (eg. xmlvm/demo/android/xokoban) and type ant run-Xcode. Arno Barry Fawthrop <ba...@tt...> wrote: ant demos Buildfile: /Users/barryf/Desktop/xmlvm/build.xml Trying to override old definition of task javac init: build-xmlvm: [echo] Compiling XMLVM build-objc-compat-lib: [echo] Generating objc-compat.jar build-android-ios-compat-lib: cc-android-ios-compat-lib: cc-android-ios-compat-lib.impl: build-csharp-compat-lib: [echo] Generating csharp-compat.jar build-android-wp7-compat-lib: xmlvmjar: [unjar] Expanding: /Users/barryf/Desktop/xmlvm/lib/one-jar-boot.jar into /Users/barryf/Desktop/xmlvm/build/base [unjar] Expanding: /Users/barryf/Desktop/xmlvm/lib/lwjgl.jar into /Users/barryf/Desktop/xmlvm/build/base [unjar] Expanding: /Users/barryf/Desktop/xmlvm/dist/lib/objc-compat.jar into /Users/barryf/Desktop/xmlvm/build/base [unjar] Expanding: /Users/barryf/Desktop/xmlvm/dist/lib/csharp-compat.jar into /Users/barryf/Desktop/xmlvm/build/base [unjar] Expanding: /Users/barryf/Desktop/xmlvm/dist/lib/android-ios-compat.jar into /Users/barryf/Desktop/xmlvm/build/base [unjar] Expanding: /Users/barryf/Desktop/xmlvm/dist/lib/android-wp7-compat.jar into /Users/barryf/Desktop/xmlvm/build/base classpath: classpath: jar: demos-iphone: demos-iphone: -xmlvm-init: -xmlvm-init-target: -xmlvm-requirement: xproject: -xcode-init: -update-android-resources: -target-compile: [mkdir] Created dir: /Users/barryf/Desktop/xmlvm/demo/iphone/ifireworks/build/classes [mkdir] Created dir: /Users/barryf/Desktop/xmlvm/demo/iphone/ifireworks/build/gen [javac] Compiling 6 source files to /Users/barryf/Desktop/xmlvm/demo/iphone/ifireworks/build/classes [javac] org/xmlvm/iphone/UIImage.class(org/xmlvm/iphone:UIImage.class): warning: Cannot find annotation method 'references()' in type 'org.xmlvm.XMLVMSkeletonOnly': class file for org.xmlvm.XMLVMSkeletonOnly not found [javac] org/xmlvm/iphone/CGRect.class(org/xmlvm/iphone:CGRect.class): warning: Cannot find annotation method 'references()' in type 'org.xmlvm.XMLVMSkeletonOnly' [javac] org/xmlvm/iphone/UIView.class(org/xmlvm/iphone:UIView.class): warning: Cannot find annotation method 'selector()' in type 'org.xmlvm.XMLVMDelegateMethod': class file for org.xmlvm.XMLVMDelegateMethod not found [javac] org/xmlvm/iphone/UIView.class(org/xmlvm/iphone:UIView.class): warning: Cannot find annotation method 'selector()' in type 'org.xmlvm.XMLVMDelegateMethod' [javac] org/xmlvm/iphone/UIView.class(org/xmlvm/iphone:UIView.class): warning: Cannot find annotation method 'params()' in type 'org.xmlvm.XMLVMDelegateMethod' [javac] org/xmlvm/iphone/UIView.class(org/xmlvm/iphone:UIView.class): warning: Cannot find annotation method 'type()' in type 'org.xmlvm.XMLVMDelegateMethod.Param': class file for org.xmlvm.XMLVMDelegateMethod$Param not found [javac] org/xmlvm/iphone/UIView.class(org/xmlvm/iphone:UIView.class): warning: Cannot find annotation method 'isStruct()' in type 'org.xmlvm.XMLVMDelegateMethod.Param' [javac] org/xmlvm/iphone/UIResponder.class(org/xmlvm/iphone:UIResponder.class): warning: Cannot find annotation method 'references()' in type 'org.xmlvm.XMLVMSkeletonOnly' [javac] org/xmlvm/iphone/NSObject.class(org/xmlvm/iphone:NSObject.class): warning: Cannot find annotation method 'references()' in type 'org.xmlvm.XMLVMSkeletonOnly' [javac] 9 warnings -xproject-plugins: -xproject-create: [echo] Creating Xcode project with the C backend. -xproject-trim: -xproject-updater: [updater] Updating from /Users/barryf/Desktop/xmlvm/demo/iphone/ifireworks/build/.xcode/build/xcode/src to /Users/barryf/Desktop/xmlvm/demo/iphone/ifireworks/build/xcode/src [updater] Updating from /Users/barryf/Desktop/xmlvm/demo/iphone/ifireworks/build/.xcode/build/xcode/sys to /Users/barryf/Desktop/xmlvm/demo/iphone/ifireworks/build/xcode/sys [updater] Updating from /Users/barryf/Desktop/xmlvm/demo/iphone/ifireworks/build/.xcode/dist/iFireworks.xcodeproj to /Users/barryf/Desktop/xmlvm/demo/iphone/ifireworks/dist/iFireworks.xcodeproj [move] Moving 1 file to /Users/barryf/Desktop/xmlvm/demo/iphone/ifireworks/dist -target-xproject: -xmlvm-init: -xmlvm-init-target: -xmlvm-requirement: xproject: -xcode-init: -update-android-resources: -target-compile: [mkdir] Created dir: /Users/barryf/Desktop/xmlvm/demo/iphone/iremote/build/classes [mkdir] Created dir: /Users/barryf/Desktop/xmlvm/demo/iphone/iremote/build/gen [javac] Compiling 4 source files to /Users/barryf/Desktop/xmlvm/demo/iphone/iremote/build/classes [javac] org/xmlvm/iphone/NSObject.class(org/xmlvm/iphone:NSObject.class): warning: Cannot find annotation method 'references()' in type 'org.xmlvm.XMLVMSkeletonOnly': class file for org.xmlvm.XMLVMSkeletonOnly not found [javac] org/xmlvm/iphone/UIView.class(org/xmlvm/iphone:UIView.class): warning: Cannot find annotation method 'selector()' in type 'org.xmlvm.XMLVMDelegateMethod': class file for org.xmlvm.XMLVMDelegateMethod not found [javac] org/xmlvm/iphone/UIView.class(org/xmlvm/iphone:UIView.class): warning: Cannot find annotation method 'selector()' in type 'org.xmlvm.XMLVMDelegateMethod' [javac] org/xmlvm/iphone/UIView.class(org/xmlvm/iphone:UIView.class): warning: Cannot find annotation method 'params()' in type 'org.xmlvm.XMLVMDelegateMethod' [javac] org/xmlvm/iphone/UIView.class(org/xmlvm/iphone:UIView.class): warning: Cannot find annotation method 'type()' in type 'org.xmlvm.XMLVMDelegateMethod.Param': class file for org.xmlvm.XMLVMDelegateMethod$Param not found [javac] org/xmlvm/iphone/UIView.class(org/xmlvm/iphone:UIView.class): warning: Cannot find annotation method 'isStruct()' in type 'org.xmlvm.XMLVMDelegateMethod.Param' [javac] org/xmlvm/iphone/UIResponder.class(org/xmlvm/iphone:UIResponder.class): warning: Cannot find annotation method 'references()' in type 'org.xmlvm.XMLVMSkeletonOnly' [javac] org/xmlvm/iphone/CGRect.class(org/xmlvm/iphone:CGRect.class): warning: Cannot find annotation method 'references()' in type 'org.xmlvm.XMLVMSkeletonOnly' [javac] org/xmlvm/iphone/NSURL.class(org/xmlvm/iphone:NSURL.class): warning: Cannot find annotation method 'references()' in type 'org.xmlvm.XMLVMSkeletonOnly' [javac] 9 warnings -xproject-plugins: -xproject-create: [echo] Creating Xcode project with the C backend. -xproject-trim: -xproject-updater: [updater] Updating from /Users/barryf/Desktop/xmlvm/demo/iphone/iremote/build/.xcode/build/xcode/src to /Users/barryf/Desktop/xmlvm/demo/iphone/iremote/build/xcode/src [updater] Updating from /Users/barryf/Desktop/xmlvm/demo/iphone/iremote/build/.xcode/build/xcode/sys to /Users/barryf/Desktop/xmlvm/demo/iphone/iremote/build/xcode/sys [updater] Updating from /Users/barryf/Desktop/xmlvm/demo/iphone/iremote/build/.xcode/dist/iRemote.xcodeproj to /Users/barryf/Desktop/xmlvm/demo/iphone/iremote/dist/iRemote.xcodeproj [move] Moving 1 file to /Users/barryf/Desktop/xmlvm/demo/iphone/iremote/dist -target-xproject: -xmlvm-init: -xmlvm-init-target: -xmlvm-requirement: xproject: -xcode-init: -update-android-resources: -target-compile: [mkdir] Created dir: /Users/barryf/Desktop/xmlvm/demo/iphone/gl/nehelesson4/build/classes [mkdir] Created dir: /Users/barryf/Desktop/xmlvm/demo/iphone/gl/nehelesson4/build/gen [javac] Compiling 3 source files to /Users/barryf/Desktop/xmlvm/demo/iphone/gl/nehelesson4/build/classes [javac] org/xmlvm/iphone/CGRect.class(org/xmlvm/iphone:CGRect.class): warning: Cannot find annotation method 'references()' in type 'org.xmlvm.XMLVMSkeletonOnly': class file for org.xmlvm.XMLVMSkeletonOnly not found [javac] org/xmlvm/iphone/UIView.class(org/xmlvm/iphone:UIView.class): warning: Cannot find annotation method 'selector()' in type 'org.xmlvm.XMLVMDelegateMethod': class file for org.xmlvm.XMLVMDelegateMethod not found [javac] org/xmlvm/iphone/UIView.class(org/xmlvm/iphone:UIView.class): warning: Cannot find annotation method 'selector()' in type 'org.xmlvm.XMLVMDelegateMethod' [javac] org/xmlvm/iphone/UIView.class(org/xmlvm/iphone:UIView.class): warning: Cannot find annotation method 'params()' in type 'org.xmlvm.XMLVMDelegateMethod' [javac] org/xmlvm/iphone/UIView.class(org/xmlvm/iphone:UIView.class): warning: Cannot find annotation method 'type()' in type 'org.xmlvm.XMLVMDelegateMethod.Param': class file for org.xmlvm.XMLVMDelegateMethod$Param not found [javac] org/xmlvm/iphone/UIView.class(org/xmlvm/iphone:UIView.class): warning: Cannot find annotation method 'isStruct()' in type 'org.xmlvm.XMLVMDelegateMethod.Param' [javac] org/xmlvm/iphone/UIResponder.class(org/xmlvm/iphone:UIResponder.class): warning: Cannot find annotation method 'references()' in type 'org.xmlvm.XMLVMSkeletonOnly' [javac] org/xmlvm/iphone/NSObject.class(org/xmlvm/iphone:NSObject.class): warning: Cannot find annotation method 'references()' in type 'org.xmlvm.XMLVMSkeletonOnly' [javac] org/xmlvm/iphone/CALayer.class(org/xmlvm/iphone:CALayer.class): warning: Cannot find annotation method 'references()' in type 'org.xmlvm.XMLVMSkeletonOnly' [javac] 9 warnings -xproject-plugins: -xproject-create: [echo] Creating Xcode project with the C backend. -xproject-trim: -xproject-updater: [updater] Updating from /Users/barryf/Desktop/xmlvm/demo/iphone/gl/nehelesson4/build/.xcode/build/xcode/src to /Users/barryf/Desktop/xmlvm/demo/iphone/gl/nehelesson4/build/xcode/src [updater] Updating from /Users/barryf/Desktop/xmlvm/demo/iphone/gl/nehelesson4/build/.xcode/build/xcode/sys to /Users/barryf/Desktop/xmlvm/demo/iphone/gl/nehelesson4/build/xcode/sys [updater] Updating from /Users/barryf/Desktop/xmlvm/demo/iphone/gl/nehelesson4/build/.xcode/dist/NeHeLesson4.xcodeproj to /Users/barryf/Desktop/xmlvm/demo/iphone/gl/nehelesson4/dist/NeHeLesson4.xcodeproj [move] Moving 1 file to /Users/barryf/Desktop/xmlvm/demo/iphone/gl/nehelesson4/dist -target-xproject: -xmlvm-init: -xmlvm-init-target: -xmlvm-requirement: xproject: -xcode-init: -update-android-resources: -target-compile: [mkdir] Created dir: /Users/barryf/Desktop/xmlvm/demo/iphone/navigation/build/classes [mkdir] Created dir: /Users/barryf/Desktop/xmlvm/demo/iphone/navigation/build/gen [javac] Compiling 9 source files to /Users/barryf/Desktop/xmlvm/demo/iphone/navigation/build/classes [javac] org/xmlvm/iphone/CGRect.class(org/xmlvm/iphone:CGRect.class): warning: Cannot find annotation method 'references()' in type 'org.xmlvm.XMLVMSkeletonOnly': class file for org.xmlvm.XMLVMSkeletonOnly not found [javac] org/xmlvm/iphone/UIView.class(org/xmlvm/iphone:UIView.class): warning: Cannot find annotation method 'selector()' in type 'org.xmlvm.XMLVMDelegateMethod': class file for org.xmlvm.XMLVMDelegateMethod not found [javac] org/xmlvm/iphone/UIView.class(org/xmlvm/iphone:UIView.class): warning: Cannot find annotation method 'selector()' in type 'org.xmlvm.XMLVMDelegateMethod' [javac] org/xmlvm/iphone/UIView.class(org/xmlvm/iphone:UIView.class): warning: Cannot find annotation method 'params()' in type 'org.xmlvm.XMLVMDelegateMethod' [javac] org/xmlvm/iphone/UIView.class(org/xmlvm/iphone:UIView.class): warning: Cannot find annotation method 'type()' in type 'org.xmlvm.XMLVMDelegateMethod.Param': class file for org.xmlvm.XMLVMDelegateMethod$Param not found [javac] org/xmlvm/iphone/UIView.class(org/xmlvm/iphone:UIView.class): warning: Cannot find annotation method 'isStruct()' in type 'org.xmlvm.XMLVMDelegateMethod.Param' [javac] org/xmlvm/iphone/UIViewController.class(org/xmlvm/iphone:UIViewController.class): warning: Cannot find annotation method 'references()' in type 'org.xmlvm.XMLVMSkeletonOnly' [javac] org/xmlvm/iphone/UIResponder.class(org/xmlvm/iphone:UIResponder.class): warning: Cannot find annotation method 'references()' in type 'org.xmlvm.XMLVMSkeletonOnly' [javac] org/xmlvm/iphone/NSObject.class(org/xmlvm/iphone:NSObject.class): warning: Cannot find annotation method 'references()' in type 'org.xmlvm.XMLVMSkeletonOnly' [javac] org/xmlvm/iphone/UIImage.class(org/xmlvm/iphone:UIImage.class): warning: Cannot find annotation method 'references()' in type 'org.xmlvm.XMLVMSkeletonOnly' [javac] 10 warnings -xproject-plugins: -xproject-create: [echo] Creating Xcode project with the C backend. -xproject-trim: -xproject-updater: [updater] Updating from /Users/barryf/Desktop/xmlvm/demo/iphone/navigation/build/.xcode/build/xcode/src to /Users/barryf/Desktop/xmlvm/demo/iphone/navigation/build/xcode/src [updater] Updating from /Users/barryf/Desktop/xmlvm/demo/iphone/navigation/build/.xcode/build/xcode/sys to /Users/barryf/Desktop/xmlvm/demo/iphone/navigation/build/xcode/sys [updater] Updating from /Users/barryf/Desktop/xmlvm/demo/iphone/navigation/build/.xcode/dist/Navigation.xcodeproj to /Users/barryf/Desktop/xmlvm/demo/iphone/navigation/dist/Navigation.xcodeproj [move] Moving 1 file to /Users/barryf/Desktop/xmlvm/demo/iphone/navigation/dist -target-xproject: create-local.properties: demos-android: demos-android: -xmlvm-init: -xmlvm-init-target: -xmlvm-requirement: xproject: -xcode-init: -update-android-resources: -target-compile: [mkdir] Created dir: /Users/barryf/Desktop/xmlvm/demo/android/afireworks/build/classes [javac] Compiling 6 source files to /Users/barryf/Desktop/xmlvm/demo/android/afireworks/build/classes -xproject-plugins: -xproject-create: [echo] Creating Xcode project with the Objective C backend. [java] [06/04/12 19:49:04.401] ERROR: InputProcessFactory: Could not find input resource: /Users/barryf/Desktop/xmlvm/demo/android/afireworks/bin-android2iphone [java] [06/04/12 19:49:04.402] ERROR: XmlvmProcessor: No inputs to process. [java] [06/04/12 19:49:04.402] ERROR: Sub-Process for processing android iphone compat lib has failed. [java] [06/04/12 19:49:04.402] ERROR: Processing Phase 2 not successful. See error messages above for details. [java] [06/04/12 19:49:04.402] ERROR: Something went wrong during processing. -xproject-trim: -xproject-updater: BUILD FAILED /Users/barryf/Desktop/xmlvm/build.xml:460: The following error occurred while executing this line: /Users/barryf/Desktop/xmlvm/demo/build.xml:51: The following error occurred while executing this line: /Users/barryf/Desktop/xmlvm/demo/android/afireworks/nbproject/xmlvm.xml:97: The following error occurred while executing this line: /Users/barryf/Desktop/xmlvm/demo/android/afireworks/nbproject/build-Xcode.xml:89: Src directory does not exist. Total time: 6 minutes 50 seconds _____________________________________________ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _____________________________________________ xmlvm-users mailing list xml...@li... https://lists.sourceforge.net/lists/listinfo/xmlvm-users |
From: Barry F. <ba...@tt...> - 2012-06-04 23:51:54
|
ant demos Buildfile: /Users/barryf/Desktop/xmlvm/build.xml Trying to override old definition of task javac init: build-xmlvm: [echo] Compiling XMLVM build-objc-compat-lib: [echo] Generating objc-compat.jar build-android-ios-compat-lib: cc-android-ios-compat-lib: cc-android-ios-compat-lib.impl: build-csharp-compat-lib: [echo] Generating csharp-compat.jar build-android-wp7-compat-lib: xmlvmjar: [unjar] Expanding: /Users/barryf/Desktop/xmlvm/lib/one-jar-boot.jar into /Users/barryf/Desktop/xmlvm/build/base [unjar] Expanding: /Users/barryf/Desktop/xmlvm/lib/lwjgl.jar into /Users/barryf/Desktop/xmlvm/build/base [unjar] Expanding: /Users/barryf/Desktop/xmlvm/dist/lib/objc-compat.jar into /Users/barryf/Desktop/xmlvm/build/base [unjar] Expanding: /Users/barryf/Desktop/xmlvm/dist/lib/csharp-compat.jar into /Users/barryf/Desktop/xmlvm/build/base [unjar] Expanding: /Users/barryf/Desktop/xmlvm/dist/lib/android-ios-compat.jar into /Users/barryf/Desktop/xmlvm/build/base [unjar] Expanding: /Users/barryf/Desktop/xmlvm/dist/lib/android-wp7-compat.jar into /Users/barryf/Desktop/xmlvm/build/base classpath: classpath: jar: demos-iphone: demos-iphone: -xmlvm-init: -xmlvm-init-target: -xmlvm-requirement: xproject: -xcode-init: -update-android-resources: -target-compile: [mkdir] Created dir: /Users/barryf/Desktop/xmlvm/demo/iphone/ifireworks/build/classes [mkdir] Created dir: /Users/barryf/Desktop/xmlvm/demo/iphone/ifireworks/build/gen [javac] Compiling 6 source files to /Users/barryf/Desktop/xmlvm/demo/iphone/ifireworks/build/classes [javac] org/xmlvm/iphone/UIImage.class(org/xmlvm/iphone:UIImage.class): warning: Cannot find annotation method 'references()' in type 'org.xmlvm.XMLVMSkeletonOnly': class file for org.xmlvm.XMLVMSkeletonOnly not found [javac] org/xmlvm/iphone/CGRect.class(org/xmlvm/iphone:CGRect.class): warning: Cannot find annotation method 'references()' in type 'org.xmlvm.XMLVMSkeletonOnly' [javac] org/xmlvm/iphone/UIView.class(org/xmlvm/iphone:UIView.class): warning: Cannot find annotation method 'selector()' in type 'org.xmlvm.XMLVMDelegateMethod': class file for org.xmlvm.XMLVMDelegateMethod not found [javac] org/xmlvm/iphone/UIView.class(org/xmlvm/iphone:UIView.class): warning: Cannot find annotation method 'selector()' in type 'org.xmlvm.XMLVMDelegateMethod' [javac] org/xmlvm/iphone/UIView.class(org/xmlvm/iphone:UIView.class): warning: Cannot find annotation method 'params()' in type 'org.xmlvm.XMLVMDelegateMethod' [javac] org/xmlvm/iphone/UIView.class(org/xmlvm/iphone:UIView.class): warning: Cannot find annotation method 'type()' in type 'org.xmlvm.XMLVMDelegateMethod.Param': class file for org.xmlvm.XMLVMDelegateMethod$Param not found [javac] org/xmlvm/iphone/UIView.class(org/xmlvm/iphone:UIView.class): warning: Cannot find annotation method 'isStruct()' in type 'org.xmlvm.XMLVMDelegateMethod.Param' [javac] org/xmlvm/iphone/UIResponder.class(org/xmlvm/iphone:UIResponder.class): warning: Cannot find annotation method 'references()' in type 'org.xmlvm.XMLVMSkeletonOnly' [javac] org/xmlvm/iphone/NSObject.class(org/xmlvm/iphone:NSObject.class): warning: Cannot find annotation method 'references()' in type 'org.xmlvm.XMLVMSkeletonOnly' [javac] 9 warnings -xproject-plugins: -xproject-create: [echo] Creating Xcode project with the C backend. -xproject-trim: -xproject-updater: [updater] Updating from /Users/barryf/Desktop/xmlvm/demo/iphone/ifireworks/build/.xcode/build/xcode/src to /Users/barryf/Desktop/xmlvm/demo/iphone/ifireworks/build/xcode/src [updater] Updating from /Users/barryf/Desktop/xmlvm/demo/iphone/ifireworks/build/.xcode/build/xcode/sys to /Users/barryf/Desktop/xmlvm/demo/iphone/ifireworks/build/xcode/sys [updater] Updating from /Users/barryf/Desktop/xmlvm/demo/iphone/ifireworks/build/.xcode/dist/iFireworks.xcodeproj to /Users/barryf/Desktop/xmlvm/demo/iphone/ifireworks/dist/iFireworks.xcodeproj [move] Moving 1 file to /Users/barryf/Desktop/xmlvm/demo/iphone/ifireworks/dist -target-xproject: -xmlvm-init: -xmlvm-init-target: -xmlvm-requirement: xproject: -xcode-init: -update-android-resources: -target-compile: [mkdir] Created dir: /Users/barryf/Desktop/xmlvm/demo/iphone/iremote/build/classes [mkdir] Created dir: /Users/barryf/Desktop/xmlvm/demo/iphone/iremote/build/gen [javac] Compiling 4 source files to /Users/barryf/Desktop/xmlvm/demo/iphone/iremote/build/classes [javac] org/xmlvm/iphone/NSObject.class(org/xmlvm/iphone:NSObject.class): warning: Cannot find annotation method 'references()' in type 'org.xmlvm.XMLVMSkeletonOnly': class file for org.xmlvm.XMLVMSkeletonOnly not found [javac] org/xmlvm/iphone/UIView.class(org/xmlvm/iphone:UIView.class): warning: Cannot find annotation method 'selector()' in type 'org.xmlvm.XMLVMDelegateMethod': class file for org.xmlvm.XMLVMDelegateMethod not found [javac] org/xmlvm/iphone/UIView.class(org/xmlvm/iphone:UIView.class): warning: Cannot find annotation method 'selector()' in type 'org.xmlvm.XMLVMDelegateMethod' [javac] org/xmlvm/iphone/UIView.class(org/xmlvm/iphone:UIView.class): warning: Cannot find annotation method 'params()' in type 'org.xmlvm.XMLVMDelegateMethod' [javac] org/xmlvm/iphone/UIView.class(org/xmlvm/iphone:UIView.class): warning: Cannot find annotation method 'type()' in type 'org.xmlvm.XMLVMDelegateMethod.Param': class file for org.xmlvm.XMLVMDelegateMethod$Param not found [javac] org/xmlvm/iphone/UIView.class(org/xmlvm/iphone:UIView.class): warning: Cannot find annotation method 'isStruct()' in type 'org.xmlvm.XMLVMDelegateMethod.Param' [javac] org/xmlvm/iphone/UIResponder.class(org/xmlvm/iphone:UIResponder.class): warning: Cannot find annotation method 'references()' in type 'org.xmlvm.XMLVMSkeletonOnly' [javac] org/xmlvm/iphone/CGRect.class(org/xmlvm/iphone:CGRect.class): warning: Cannot find annotation method 'references()' in type 'org.xmlvm.XMLVMSkeletonOnly' [javac] org/xmlvm/iphone/NSURL.class(org/xmlvm/iphone:NSURL.class): warning: Cannot find annotation method 'references()' in type 'org.xmlvm.XMLVMSkeletonOnly' [javac] 9 warnings -xproject-plugins: -xproject-create: [echo] Creating Xcode project with the C backend. -xproject-trim: -xproject-updater: [updater] Updating from /Users/barryf/Desktop/xmlvm/demo/iphone/iremote/build/.xcode/build/xcode/src to /Users/barryf/Desktop/xmlvm/demo/iphone/iremote/build/xcode/src [updater] Updating from /Users/barryf/Desktop/xmlvm/demo/iphone/iremote/build/.xcode/build/xcode/sys to /Users/barryf/Desktop/xmlvm/demo/iphone/iremote/build/xcode/sys [updater] Updating from /Users/barryf/Desktop/xmlvm/demo/iphone/iremote/build/.xcode/dist/iRemote.xcodeproj to /Users/barryf/Desktop/xmlvm/demo/iphone/iremote/dist/iRemote.xcodeproj [move] Moving 1 file to /Users/barryf/Desktop/xmlvm/demo/iphone/iremote/dist -target-xproject: -xmlvm-init: -xmlvm-init-target: -xmlvm-requirement: xproject: -xcode-init: -update-android-resources: -target-compile: [mkdir] Created dir: /Users/barryf/Desktop/xmlvm/demo/iphone/gl/nehelesson4/build/classes [mkdir] Created dir: /Users/barryf/Desktop/xmlvm/demo/iphone/gl/nehelesson4/build/gen [javac] Compiling 3 source files to /Users/barryf/Desktop/xmlvm/demo/iphone/gl/nehelesson4/build/classes [javac] org/xmlvm/iphone/CGRect.class(org/xmlvm/iphone:CGRect.class): warning: Cannot find annotation method 'references()' in type 'org.xmlvm.XMLVMSkeletonOnly': class file for org.xmlvm.XMLVMSkeletonOnly not found [javac] org/xmlvm/iphone/UIView.class(org/xmlvm/iphone:UIView.class): warning: Cannot find annotation method 'selector()' in type 'org.xmlvm.XMLVMDelegateMethod': class file for org.xmlvm.XMLVMDelegateMethod not found [javac] org/xmlvm/iphone/UIView.class(org/xmlvm/iphone:UIView.class): warning: Cannot find annotation method 'selector()' in type 'org.xmlvm.XMLVMDelegateMethod' [javac] org/xmlvm/iphone/UIView.class(org/xmlvm/iphone:UIView.class): warning: Cannot find annotation method 'params()' in type 'org.xmlvm.XMLVMDelegateMethod' [javac] org/xmlvm/iphone/UIView.class(org/xmlvm/iphone:UIView.class): warning: Cannot find annotation method 'type()' in type 'org.xmlvm.XMLVMDelegateMethod.Param': class file for org.xmlvm.XMLVMDelegateMethod$Param not found [javac] org/xmlvm/iphone/UIView.class(org/xmlvm/iphone:UIView.class): warning: Cannot find annotation method 'isStruct()' in type 'org.xmlvm.XMLVMDelegateMethod.Param' [javac] org/xmlvm/iphone/UIResponder.class(org/xmlvm/iphone:UIResponder.class): warning: Cannot find annotation method 'references()' in type 'org.xmlvm.XMLVMSkeletonOnly' [javac] org/xmlvm/iphone/NSObject.class(org/xmlvm/iphone:NSObject.class): warning: Cannot find annotation method 'references()' in type 'org.xmlvm.XMLVMSkeletonOnly' [javac] org/xmlvm/iphone/CALayer.class(org/xmlvm/iphone:CALayer.class): warning: Cannot find annotation method 'references()' in type 'org.xmlvm.XMLVMSkeletonOnly' [javac] 9 warnings -xproject-plugins: -xproject-create: [echo] Creating Xcode project with the C backend. -xproject-trim: -xproject-updater: [updater] Updating from /Users/barryf/Desktop/xmlvm/demo/iphone/gl/nehelesson4/build/.xcode/build/xcode/src to /Users/barryf/Desktop/xmlvm/demo/iphone/gl/nehelesson4/build/xcode/src [updater] Updating from /Users/barryf/Desktop/xmlvm/demo/iphone/gl/nehelesson4/build/.xcode/build/xcode/sys to /Users/barryf/Desktop/xmlvm/demo/iphone/gl/nehelesson4/build/xcode/sys [updater] Updating from /Users/barryf/Desktop/xmlvm/demo/iphone/gl/nehelesson4/build/.xcode/dist/NeHeLesson4.xcodeproj to /Users/barryf/Desktop/xmlvm/demo/iphone/gl/nehelesson4/dist/NeHeLesson4.xcodeproj [move] Moving 1 file to /Users/barryf/Desktop/xmlvm/demo/iphone/gl/nehelesson4/dist -target-xproject: -xmlvm-init: -xmlvm-init-target: -xmlvm-requirement: xproject: -xcode-init: -update-android-resources: -target-compile: [mkdir] Created dir: /Users/barryf/Desktop/xmlvm/demo/iphone/navigation/build/classes [mkdir] Created dir: /Users/barryf/Desktop/xmlvm/demo/iphone/navigation/build/gen [javac] Compiling 9 source files to /Users/barryf/Desktop/xmlvm/demo/iphone/navigation/build/classes [javac] org/xmlvm/iphone/CGRect.class(org/xmlvm/iphone:CGRect.class): warning: Cannot find annotation method 'references()' in type 'org.xmlvm.XMLVMSkeletonOnly': class file for org.xmlvm.XMLVMSkeletonOnly not found [javac] org/xmlvm/iphone/UIView.class(org/xmlvm/iphone:UIView.class): warning: Cannot find annotation method 'selector()' in type 'org.xmlvm.XMLVMDelegateMethod': class file for org.xmlvm.XMLVMDelegateMethod not found [javac] org/xmlvm/iphone/UIView.class(org/xmlvm/iphone:UIView.class): warning: Cannot find annotation method 'selector()' in type 'org.xmlvm.XMLVMDelegateMethod' [javac] org/xmlvm/iphone/UIView.class(org/xmlvm/iphone:UIView.class): warning: Cannot find annotation method 'params()' in type 'org.xmlvm.XMLVMDelegateMethod' [javac] org/xmlvm/iphone/UIView.class(org/xmlvm/iphone:UIView.class): warning: Cannot find annotation method 'type()' in type 'org.xmlvm.XMLVMDelegateMethod.Param': class file for org.xmlvm.XMLVMDelegateMethod$Param not found [javac] org/xmlvm/iphone/UIView.class(org/xmlvm/iphone:UIView.class): warning: Cannot find annotation method 'isStruct()' in type 'org.xmlvm.XMLVMDelegateMethod.Param' [javac] org/xmlvm/iphone/UIViewController.class(org/xmlvm/iphone:UIViewController.class): warning: Cannot find annotation method 'references()' in type 'org.xmlvm.XMLVMSkeletonOnly' [javac] org/xmlvm/iphone/UIResponder.class(org/xmlvm/iphone:UIResponder.class): warning: Cannot find annotation method 'references()' in type 'org.xmlvm.XMLVMSkeletonOnly' [javac] org/xmlvm/iphone/NSObject.class(org/xmlvm/iphone:NSObject.class): warning: Cannot find annotation method 'references()' in type 'org.xmlvm.XMLVMSkeletonOnly' [javac] org/xmlvm/iphone/UIImage.class(org/xmlvm/iphone:UIImage.class): warning: Cannot find annotation method 'references()' in type 'org.xmlvm.XMLVMSkeletonOnly' [javac] 10 warnings -xproject-plugins: -xproject-create: [echo] Creating Xcode project with the C backend. -xproject-trim: -xproject-updater: [updater] Updating from /Users/barryf/Desktop/xmlvm/demo/iphone/navigation/build/.xcode/build/xcode/src to /Users/barryf/Desktop/xmlvm/demo/iphone/navigation/build/xcode/src [updater] Updating from /Users/barryf/Desktop/xmlvm/demo/iphone/navigation/build/.xcode/build/xcode/sys to /Users/barryf/Desktop/xmlvm/demo/iphone/navigation/build/xcode/sys [updater] Updating from /Users/barryf/Desktop/xmlvm/demo/iphone/navigation/build/.xcode/dist/Navigation.xcodeproj to /Users/barryf/Desktop/xmlvm/demo/iphone/navigation/dist/Navigation.xcodeproj [move] Moving 1 file to /Users/barryf/Desktop/xmlvm/demo/iphone/navigation/dist -target-xproject: create-local.properties: demos-android: demos-android: -xmlvm-init: -xmlvm-init-target: -xmlvm-requirement: xproject: -xcode-init: -update-android-resources: -target-compile: [mkdir] Created dir: /Users/barryf/Desktop/xmlvm/demo/android/afireworks/build/classes [javac] Compiling 6 source files to /Users/barryf/Desktop/xmlvm/demo/android/afireworks/build/classes -xproject-plugins: -xproject-create: [echo] Creating Xcode project with the Objective C backend. [java] [06/04/12 19:49:04.401] ERROR: InputProcessFactory: Could not find input resource: /Users/barryf/Desktop/xmlvm/demo/android/afireworks/bin-android2iphone [java] [06/04/12 19:49:04.402] ERROR: XmlvmProcessor: No inputs to process. [java] [06/04/12 19:49:04.402] ERROR: Sub-Process for processing android iphone compat lib has failed. [java] [06/04/12 19:49:04.402] ERROR: Processing Phase 2 not successful. See error messages above for details. [java] [06/04/12 19:49:04.402] ERROR: Something went wrong during processing. -xproject-trim: -xproject-updater: BUILD FAILED /Users/barryf/Desktop/xmlvm/build.xml:460: The following error occurred while executing this line: /Users/barryf/Desktop/xmlvm/demo/build.xml:51: The following error occurred while executing this line: /Users/barryf/Desktop/xmlvm/demo/android/afireworks/nbproject/xmlvm.xml:97: The following error occurred while executing this line: /Users/barryf/Desktop/xmlvm/demo/android/afireworks/nbproject/build-Xcode.xml:89: Src directory does not exist. Total time: 6 minutes 50 seconds |
From: Barry F. <ba...@tt...> - 2012-06-04 00:26:01
|
Please help, ant demos is failing and thus I can't install Please help ! ! Thanks in advance -xcode-init: -update-android-resources: -target-compile: -xproject-plugins: [delete] Deleting directory /Users/barryf/Desktop/xmlvm/demo/android/afireworks/build/plugins/objc -xproject-create: [echo] Creating Xcode project with the Objective C backend. [java] [06/03/12 20:09:39.134] ERROR: InputProcessFactory: Could not find input resource: /Users/barryf/Desktop/xmlvm/demo/android/afireworks/bin-android2iphone [java] [06/03/12 20:09:39.135] ERROR: XmlvmProcessor: No inputs to process. [java] [06/03/12 20:09:39.135] ERROR: Sub-Process for processing android iphone compat lib has failed. [java] [06/03/12 20:09:39.135] ERROR: Processing Phase 2 not successful. See error messages above for details. [java] [06/03/12 20:09:39.135] ERROR: Something went wrong during processing. -xproject-trim: -xproject-updater: BUILD FAILED /Users/barryf/Desktop/xmlvm/build.xml:460: The following error occurred while executing this line: /Users/barryf/Desktop/xmlvm/demo/build.xml:51: The following error occurred while executing this line: /Users/barryf/Desktop/xmlvm/demo/android/afireworks/nbproject/xmlvm.xml:97: The following error occurred while executing this line: /Users/barryf/Desktop/xmlvm/demo/android/afireworks/nbproject/build-Xcode.xml:89: Src directory does not exist. Total time: 9 minutes 6 seconds |
From: Markus N. <mar...@gm...> - 2012-05-28 15:23:32
|
Hi Bruce, You can add this property in the method ensureProperties in java.lang.System (source folder: src/xmlvm2c/lib/proxies) for now. Ideally though you would implement a POSIX compatible way of determining this with native code and add it in java_lang_System_getPropertyList__ in native_java_lang_System.c. Markus On Sun, May 27, 2012 at 10:45 AM, Bruce Jackson <bru...@go...>wrote: > Hi All > > When I use xmlvm to build a simple Java project using the posix backend, I > find that only a very small collection of System properties are set, namely: > > console.encoding = (UTF-8) > java.version = (1.5 subset) > java.specification.version = (1.5) > os.encoding = (UTF-8) > com.ibm.oti.configuration = (clear) > file.encoding = (UTF-8) > java.specification.vendor = (Sun Microsystems Inc.) > com.ibm.oti.configuration.dir = (jclClear) > java.specification.name = (Java Platform API Specification) > > This means that the property line.separator has not been set which causes > problems with using the PrintWriter class. Does anyone know where I can set > this is the xmlvm build? > > Thanks > > Bruce > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users > |
From: Fazekas L. <fa...@gr...> - 2012-05-28 11:30:41
|
Hi! I've started a new discussion on the PlayN Google Group about porting PlayN to XMLVM. PlayN (http://code.google.com/p/playn/) is a cross-platform game development library in Java (ex.: Angry Birds Chrome is developed with it). I think XMLVM could be a good way for adding new platform targets to it. If you think, join the discussion here: https://groups.google.com/group/playn/browse_thread/thread/e4f847443b833646 Kind regards, Laszlo |
From: Arno P. <ar...@pu...> - 2012-05-27 19:31:58
|
you are right that the GC that is bundled with XMLVM was not configured via autoconf. Instead we inject several #defines into the generated Xcode project (see xmlvm/var/iphone/project.template). Xcode uses a cross-platform compiler to generate code for the iOS device. This cross-platform compiler will also set a few #defines that trigger the correct behavior with the GC. If you want to generate a library you need to figure out how to use the cross-platform compiler to generate a library and how this binary library can be included in an Xcode project. Note that different iOS devices have different CPUs. This means you need to compile the library multiple times for each architecture. Then there is another challenge: XMLVM will do global optimizations based on *all* the Java classes that belong to an application. If you want to compile code for a library those optimizations need to be turned off. There is an (incomplete) patch that addresses this: http://xmlvm-reviews.appspot.com/189001/ Arno On 5/25/12 1:44 AM, Bruce Jackson wrote: > Hi Arno > > I understand, but what I wish to do is to use the xmlvm target=posix to produce a collection of C sources that I can then compile as a library for the iPhone. I do not wish to create an iphone project in Xcode, just the raw C which I can turn into a library. To do this, I need the GC library also for iPhone. > > The configure script is fine if you wish to create a GC library that will run on the host, but it doesn't work if you want to create a GC that is targetted to a different architecture. For example, Im building on a Mac, so when I run configure it naturally picks up the config for Darwin/x86_64 which is not what I want: I want Darwin/armv6. > > Ivan's reply to your mail suggested that he didn't use configure to produce the GC for iOS (and he didn't as it doesn't work!) but the reply he gave wasn't entirely correct. The gcc line I posted in my email will build GC correctly and produce a binary library for my desired configuration (Darwin/armv6). > > Thanks > > Bruce > > On 23 May 2012, at 17:31, Arno Puder wrote: > >> >> Bruce: I'm not sure what you mean with "cross compiling the GC library". >> The GC is written in C with a lot of platform-specific code. The >> configure script is used to adapt the GC to a specific platform. The >> purpose of the mail I posted on the Boehm GC was to determine the >> correct configure options for iOS. >> >> When using --target=iphonec, XMLVM will copy a pre-configured GC that is >> bundled with XMLVM. When using --target=posix it is expected that the >> target platform has an installation of the Boehm GC. That is why I >> included the instructions in the Makefile. Please note that Boehm GC has >> moved to GitHub and you should get the latest version from there: >> http://www.hpl.hp.com/personal/Hans_Boehm/gc/ >> >> Arno >> >> >> On 5/23/12 2:05 AM, Bruce Jackson wrote: >>> Hi Paul >>> >>> Actually, that's the problem: if you want to build the posix target >>> for iPhone, then you need to cross compile the GC library. Following >>> the instructions below doesn't work, this will build a library for the >>> host system and not the target system. >>> >>> This is further compounded by the change Apple has made to its >>> compilers (llvm over gcc) and the location that is used to store them >>> with XCode 4.3+. >>> >>> Having spent some time on this, I have now got it working, which may >>> be useful for others: >>> >>> Arno asked this question on the boehmgc mail list last year, as you >>> can see here: >>> >>> http://article.gmane.org/gmane.comp.programming.garbage-collection.boehmgc/4613/match=ios >>> >>> I wasn't sure about Ivan's reply, but it turns out he was almost >>> correct. If you: >>> >>> cvs -d:pserver:ano...@bd...:/cvsroot/bdwgc co bdwgc >>> cd bdwgc >>> gcc -I include -I libatomic_ops/src -arch armv6 -O2 -c -isysroot >>> /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk >>> -s -DALL_INTERIOR_POINTERS -DGC_THREADS -DTHREAD_LOCAL_ALLOC >>> -DPARALLEL_MARK -DUSE_MMAP -DUSE_MUNMAP -DNO_DYLD_BIND_FULLY_IMAGE >>> tests/test.c extra/gc.c >>> >>> …you'll actually build the garbage collector (the output file gc.o is >>> all you need) which you can then link against the output from an XMLVM >>> posix project for iPhone. >>> >>> Best regards >>> >>> Bruce >>> >>> On Tue, May 22, 2012 at 11:38 PM, Paul Poley<bay...@gm...> wrote: >>>> In xmlvm/var/posix/Makefile, you can find the instructions at the top. Here >>>> is the comment: >>>> >>>> # This Makefile relies on an installation of the Boehm Garbage Collector >>>> # for the target platform. The Boehm GC can be downloaded, configured and >>>> # installed as follows: >>>> # >>>> # cvs -d:pserver:ano...@bd...:/cvsroot/bdwgc co bdwgc >>>> # cd bdwgc >>>> # ./configure --enable-threads=posix --enable-thread-local-alloc >>>> --enable-parallel-mark >>>> # make >>>> # make install >>>> >>>> I have done this as well to run posix targets. >>>> >>>> Thanks, >>>> Paul >>>> >>>> >>>> On Tue, May 22, 2012 at 1:21 PM, Bruce Jackson<bru...@go...> >>>> wrote: >>>>> >>>>> Hi All >>>>> >>>>> I'm trying to compile the boehmgc for use with XMLVM posix target to >>>>> produce a library I can use on iPhone. >>>>> I've seen much discussion on this subject: >>>>> >>>>> >>>>> http://article.gmane.org/gmane.comp.programming.garbage-collection.boehmgc/4560/match=iphone >>>>> >>>>> …and a question by Arno about the options used to ./configure, but this >>>>> still seems to be something that isn't obvious/possible at all. >>>>> >>>>> Does anyone know: is it possible to build the gc using the ./configure >>>>> tools, and if so, what are the options used? If not, how have people gone >>>>> about building it? >>>>> >>>>> Thanks >>>>> >>>>> Bruce >>>>> >>>>> >>>>> ------------------------------------------------------------------------------ >>>>> Live Security Virtual Conference >>>>> Exclusive live event will cover all the ways today's security and >>>>> threat landscape has changed and how IT managers can respond. Discussions >>>>> will include endpoint security, mobile security and the latest in malware >>>>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >>>>> _______________________________________________ >>>>> xmlvm-users mailing list >>>>> xml...@li... >>>>> https://lists.sourceforge.net/lists/listinfo/xmlvm-users >>>>> >>>> >> >> ------------------------------------------------------------------------------ >> Live Security Virtual Conference >> Exclusive live event will cover all the ways today's security and >> threat landscape has changed and how IT managers can respond. Discussions >> will include endpoint security, mobile security and the latest in malware >> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> _______________________________________________ >> xmlvm-users mailing list >> xml...@li... >> https://lists.sourceforge.net/lists/listinfo/xmlvm-users > |
From: Bruce J. <bru...@go...> - 2012-05-27 17:45:06
|
Hi All When I use xmlvm to build a simple Java project using the posix backend, I find that only a very small collection of System properties are set, namely: console.encoding = (UTF-8) java.version = (1.5 subset) java.specification.version = (1.5) os.encoding = (UTF-8) com.ibm.oti.configuration = (clear) file.encoding = (UTF-8) java.specification.vendor = (Sun Microsystems Inc.) com.ibm.oti.configuration.dir = (jclClear) java.specification.name = (Java Platform API Specification) This means that the property line.separator has not been set which causes problems with using the PrintWriter class. Does anyone know where I can set this is the xmlvm build? Thanks Bruce |
From: Bruce J. <bru...@go...> - 2012-05-25 08:45:06
|
Hi Arno I understand, but what I wish to do is to use the xmlvm target=posix to produce a collection of C sources that I can then compile as a library for the iPhone. I do not wish to create an iphone project in Xcode, just the raw C which I can turn into a library. To do this, I need the GC library also for iPhone. The configure script is fine if you wish to create a GC library that will run on the host, but it doesn't work if you want to create a GC that is targetted to a different architecture. For example, Im building on a Mac, so when I run configure it naturally picks up the config for Darwin/x86_64 which is not what I want: I want Darwin/armv6. Ivan's reply to your mail suggested that he didn't use configure to produce the GC for iOS (and he didn't as it doesn't work!) but the reply he gave wasn't entirely correct. The gcc line I posted in my email will build GC correctly and produce a binary library for my desired configuration (Darwin/armv6). Thanks Bruce On 23 May 2012, at 17:31, Arno Puder wrote: > > Bruce: I'm not sure what you mean with "cross compiling the GC library". > The GC is written in C with a lot of platform-specific code. The > configure script is used to adapt the GC to a specific platform. The > purpose of the mail I posted on the Boehm GC was to determine the > correct configure options for iOS. > > When using --target=iphonec, XMLVM will copy a pre-configured GC that is > bundled with XMLVM. When using --target=posix it is expected that the > target platform has an installation of the Boehm GC. That is why I > included the instructions in the Makefile. Please note that Boehm GC has > moved to GitHub and you should get the latest version from there: > http://www.hpl.hp.com/personal/Hans_Boehm/gc/ > > Arno > > > On 5/23/12 2:05 AM, Bruce Jackson wrote: >> Hi Paul >> >> Actually, that's the problem: if you want to build the posix target >> for iPhone, then you need to cross compile the GC library. Following >> the instructions below doesn't work, this will build a library for the >> host system and not the target system. >> >> This is further compounded by the change Apple has made to its >> compilers (llvm over gcc) and the location that is used to store them >> with XCode 4.3+. >> >> Having spent some time on this, I have now got it working, which may >> be useful for others: >> >> Arno asked this question on the boehmgc mail list last year, as you >> can see here: >> >> http://article.gmane.org/gmane.comp.programming.garbage-collection.boehmgc/4613/match=ios >> >> I wasn't sure about Ivan's reply, but it turns out he was almost >> correct. If you: >> >> cvs -d:pserver:ano...@bd...:/cvsroot/bdwgc co bdwgc >> cd bdwgc >> gcc -I include -I libatomic_ops/src -arch armv6 -O2 -c -isysroot >> /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk >> -s -DALL_INTERIOR_POINTERS -DGC_THREADS -DTHREAD_LOCAL_ALLOC >> -DPARALLEL_MARK -DUSE_MMAP -DUSE_MUNMAP -DNO_DYLD_BIND_FULLY_IMAGE >> tests/test.c extra/gc.c >> >> …you'll actually build the garbage collector (the output file gc.o is >> all you need) which you can then link against the output from an XMLVM >> posix project for iPhone. >> >> Best regards >> >> Bruce >> >> On Tue, May 22, 2012 at 11:38 PM, Paul Poley<bay...@gm...> wrote: >>> In xmlvm/var/posix/Makefile, you can find the instructions at the top. Here >>> is the comment: >>> >>> # This Makefile relies on an installation of the Boehm Garbage Collector >>> # for the target platform. The Boehm GC can be downloaded, configured and >>> # installed as follows: >>> # >>> # cvs -d:pserver:ano...@bd...:/cvsroot/bdwgc co bdwgc >>> # cd bdwgc >>> # ./configure --enable-threads=posix --enable-thread-local-alloc >>> --enable-parallel-mark >>> # make >>> # make install >>> >>> I have done this as well to run posix targets. >>> >>> Thanks, >>> Paul >>> >>> >>> On Tue, May 22, 2012 at 1:21 PM, Bruce Jackson<bru...@go...> >>> wrote: >>>> >>>> Hi All >>>> >>>> I'm trying to compile the boehmgc for use with XMLVM posix target to >>>> produce a library I can use on iPhone. >>>> I've seen much discussion on this subject: >>>> >>>> >>>> http://article.gmane.org/gmane.comp.programming.garbage-collection.boehmgc/4560/match=iphone >>>> >>>> …and a question by Arno about the options used to ./configure, but this >>>> still seems to be something that isn't obvious/possible at all. >>>> >>>> Does anyone know: is it possible to build the gc using the ./configure >>>> tools, and if so, what are the options used? If not, how have people gone >>>> about building it? >>>> >>>> Thanks >>>> >>>> Bruce >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> Live Security Virtual Conference >>>> Exclusive live event will cover all the ways today's security and >>>> threat landscape has changed and how IT managers can respond. Discussions >>>> will include endpoint security, mobile security and the latest in malware >>>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >>>> _______________________________________________ >>>> xmlvm-users mailing list >>>> xml...@li... >>>> https://lists.sourceforge.net/lists/listinfo/xmlvm-users >>>> >>> > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users |
From: Paul P. <bay...@gm...> - 2012-05-24 20:16:22
|
You are correct. I also have this issue, and intend to add a fix, but I am not actively working for the next week or two. This is not a one-off though. There are a few components with this issue. There is an effort in the "crossmobile" project to generate even more of the C front end so we don't have to worry about each case like this, but for now, we need to fix each one as we find it. If you can wait a few weeks, I'll likely fix this one in particular. Thanks, Paul On Thu, May 24, 2012 at 1:42 AM, Kensuke Matsuzaki <mat...@ki...>wrote: > Hi all, > > A wrapper of UINavigationController doesn't have wrapped reference to > wrapper of UIViewController, so it is GCed. > Same thing about UIViewController/UIView and > UIBarButtonItem/UIBarButtonItemDelegate. > > For example, tutorial/ios/navigation/stack seems work with > xmlvm.backend=c option. > But if I add "byte[] dummy = new byte[100000];" to ChildPage.loadView(), > it crashes after some button taps. > > Thank you. > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users > |
From: Kensuke M. <mat...@ki...> - 2012-05-24 07:00:09
|
Hi all, A wrapper of UINavigationController doesn't have wrapped reference to wrapper of UIViewController, so it is GCed. Same thing about UIViewController/UIView and UIBarButtonItem/UIBarButtonItemDelegate. For example, tutorial/ios/navigation/stack seems work with xmlvm.backend=c option. But if I add "byte[] dummy = new byte[100000];" to ChildPage.loadView(), it crashes after some button taps. Thank you. |
From: Sascha H. <sa...@xm...> - 2012-05-23 20:09:06
|
You could cross-compile the code, but the underlying API is of course different. As far as I know, nobody as worked on mapping C2DM to iOS. So what you would need to do is create an implementation of C2DM for iOS. Check the history of this list for some information on how to do this. Essentially you will create a compatibility library and you tell XMLVM to use yours instead of the automatically cross-compiled C2DMA API. We already have quite a bit of Android API in our code base, but it is a bit outdated. So C2DMA is probably not in the yet. // Sascha On Wed, May 23, 2012 at 12:50 PM, Mohamed Hafez <moh...@gm... > wrote: > Hi, I have an Android app that uses the C2DM push notifications. If I > used xmlvm to compile an iphone app, would it be able to cross-compile > that? If not what are the steps I would have to go through to make > that work? Is there a list somewhere of features that are and are not > cross-compilable? > > Thanks! > Mohamed > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users > |
From: Mohamed H. <moh...@gm...> - 2012-05-23 19:51:04
|
Hi, I have an Android app that uses the C2DM push notifications. If I used xmlvm to compile an iphone app, would it be able to cross-compile that? If not what are the steps I would have to go through to make that work? Is there a list somewhere of features that are and are not cross-compilable? Thanks! Mohamed |
From: Arno P. <ar...@pu...> - 2012-05-23 16:31:54
|
Bruce: I'm not sure what you mean with "cross compiling the GC library". The GC is written in C with a lot of platform-specific code. The configure script is used to adapt the GC to a specific platform. The purpose of the mail I posted on the Boehm GC was to determine the correct configure options for iOS. When using --target=iphonec, XMLVM will copy a pre-configured GC that is bundled with XMLVM. When using --target=posix it is expected that the target platform has an installation of the Boehm GC. That is why I included the instructions in the Makefile. Please note that Boehm GC has moved to GitHub and you should get the latest version from there: http://www.hpl.hp.com/personal/Hans_Boehm/gc/ Arno On 5/23/12 2:05 AM, Bruce Jackson wrote: > Hi Paul > > Actually, that's the problem: if you want to build the posix target > for iPhone, then you need to cross compile the GC library. Following > the instructions below doesn't work, this will build a library for the > host system and not the target system. > > This is further compounded by the change Apple has made to its > compilers (llvm over gcc) and the location that is used to store them > with XCode 4.3+. > > Having spent some time on this, I have now got it working, which may > be useful for others: > > Arno asked this question on the boehmgc mail list last year, as you > can see here: > > http://article.gmane.org/gmane.comp.programming.garbage-collection.boehmgc/4613/match=ios > > I wasn't sure about Ivan's reply, but it turns out he was almost > correct. If you: > > cvs -d:pserver:ano...@bd...:/cvsroot/bdwgc co bdwgc > cd bdwgc > gcc -I include -I libatomic_ops/src -arch armv6 -O2 -c -isysroot > /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk > -s -DALL_INTERIOR_POINTERS -DGC_THREADS -DTHREAD_LOCAL_ALLOC > -DPARALLEL_MARK -DUSE_MMAP -DUSE_MUNMAP -DNO_DYLD_BIND_FULLY_IMAGE > tests/test.c extra/gc.c > > …you'll actually build the garbage collector (the output file gc.o is > all you need) which you can then link against the output from an XMLVM > posix project for iPhone. > > Best regards > > Bruce > > On Tue, May 22, 2012 at 11:38 PM, Paul Poley<bay...@gm...> wrote: >> In xmlvm/var/posix/Makefile, you can find the instructions at the top. Here >> is the comment: >> >> # This Makefile relies on an installation of the Boehm Garbage Collector >> # for the target platform. The Boehm GC can be downloaded, configured and >> # installed as follows: >> # >> # cvs -d:pserver:ano...@bd...:/cvsroot/bdwgc co bdwgc >> # cd bdwgc >> # ./configure --enable-threads=posix --enable-thread-local-alloc >> --enable-parallel-mark >> # make >> # make install >> >> I have done this as well to run posix targets. >> >> Thanks, >> Paul >> >> >> On Tue, May 22, 2012 at 1:21 PM, Bruce Jackson<bru...@go...> >> wrote: >>> >>> Hi All >>> >>> I'm trying to compile the boehmgc for use with XMLVM posix target to >>> produce a library I can use on iPhone. >>> I've seen much discussion on this subject: >>> >>> >>> http://article.gmane.org/gmane.comp.programming.garbage-collection.boehmgc/4560/match=iphone >>> >>> …and a question by Arno about the options used to ./configure, but this >>> still seems to be something that isn't obvious/possible at all. >>> >>> Does anyone know: is it possible to build the gc using the ./configure >>> tools, and if so, what are the options used? If not, how have people gone >>> about building it? >>> >>> Thanks >>> >>> Bruce >>> >>> >>> ------------------------------------------------------------------------------ >>> Live Security Virtual Conference >>> Exclusive live event will cover all the ways today's security and >>> threat landscape has changed and how IT managers can respond. Discussions >>> will include endpoint security, mobile security and the latest in malware >>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >>> _______________________________________________ >>> xmlvm-users mailing list >>> xml...@li... >>> https://lists.sourceforge.net/lists/listinfo/xmlvm-users >>> >> |
From: Bruce J. <bru...@go...> - 2012-05-23 09:05:59
|
Hi Paul Actually, that's the problem: if you want to build the posix target for iPhone, then you need to cross compile the GC library. Following the instructions below doesn't work, this will build a library for the host system and not the target system. This is further compounded by the change Apple has made to its compilers (llvm over gcc) and the location that is used to store them with XCode 4.3+. Having spent some time on this, I have now got it working, which may be useful for others: Arno asked this question on the boehmgc mail list last year, as you can see here: http://article.gmane.org/gmane.comp.programming.garbage-collection.boehmgc/4613/match=ios I wasn't sure about Ivan's reply, but it turns out he was almost correct. If you: cvs -d:pserver:ano...@bd...:/cvsroot/bdwgc co bdwgc cd bdwgc gcc -I include -I libatomic_ops/src -arch armv6 -O2 -c -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk -s -DALL_INTERIOR_POINTERS -DGC_THREADS -DTHREAD_LOCAL_ALLOC -DPARALLEL_MARK -DUSE_MMAP -DUSE_MUNMAP -DNO_DYLD_BIND_FULLY_IMAGE tests/test.c extra/gc.c …you'll actually build the garbage collector (the output file gc.o is all you need) which you can then link against the output from an XMLVM posix project for iPhone. Best regards Bruce On Tue, May 22, 2012 at 11:38 PM, Paul Poley <bay...@gm...> wrote: > In xmlvm/var/posix/Makefile, you can find the instructions at the top. Here > is the comment: > > # This Makefile relies on an installation of the Boehm Garbage Collector > # for the target platform. The Boehm GC can be downloaded, configured and > # installed as follows: > # > # cvs -d:pserver:ano...@bd...:/cvsroot/bdwgc co bdwgc > # cd bdwgc > # ./configure --enable-threads=posix --enable-thread-local-alloc > --enable-parallel-mark > # make > # make install > > I have done this as well to run posix targets. > > Thanks, > Paul > > > On Tue, May 22, 2012 at 1:21 PM, Bruce Jackson <bru...@go...> > wrote: >> >> Hi All >> >> I'm trying to compile the boehmgc for use with XMLVM posix target to >> produce a library I can use on iPhone. >> I've seen much discussion on this subject: >> >> >> http://article.gmane.org/gmane.comp.programming.garbage-collection.boehmgc/4560/match=iphone >> >> …and a question by Arno about the options used to ./configure, but this >> still seems to be something that isn't obvious/possible at all. >> >> Does anyone know: is it possible to build the gc using the ./configure >> tools, and if so, what are the options used? If not, how have people gone >> about building it? >> >> Thanks >> >> Bruce >> >> >> ------------------------------------------------------------------------------ >> Live Security Virtual Conference >> Exclusive live event will cover all the ways today's security and >> threat landscape has changed and how IT managers can respond. Discussions >> will include endpoint security, mobile security and the latest in malware >> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> _______________________________________________ >> xmlvm-users mailing list >> xml...@li... >> https://lists.sourceforge.net/lists/listinfo/xmlvm-users >> > |
From: Paul P. <bay...@gm...> - 2012-05-22 22:38:11
|
In xmlvm/var/posix/Makefile, you can find the instructions at the top. Here is the comment: # This Makefile relies on an installation of the Boehm Garbage Collector # for the target platform. The Boehm GC can be downloaded, configured and # installed as follows: # # cvs -d:pserver:ano...@bd...:/cvsroot/bdwgc co bdwgc # cd bdwgc # ./configure --enable-threads=posix --enable-thread-local-alloc --enable-parallel-mark # make # make install I have done this as well to run posix targets. Thanks, Paul On Tue, May 22, 2012 at 1:21 PM, Bruce Jackson <bru...@go...>wrote: > Hi All > > I'm trying to compile the boehmgc for use with XMLVM posix target to > produce a library I can use on iPhone. > I've seen much discussion on this subject: > > > http://article.gmane.org/gmane.comp.programming.garbage-collection.boehmgc/4560/match=iphone > > …and a question by Arno about the options used to ./configure, but this > still seems to be something that isn't obvious/possible at all. > > Does anyone know: is it possible to build the gc using the ./configure > tools, and if so, what are the options used? If not, how have people gone > about building it? > > Thanks > > Bruce > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users > > |
From: Bruce J. <bru...@go...> - 2012-05-22 18:23:10
|
Hi All I'm trying to compile the boehmgc for use with XMLVM posix target to produce a library I can use on iPhone. I've seen much discussion on this subject: http://article.gmane.org/gmane.comp.programming.garbage-collection.boehmgc/4560/match=iphone …and a question by Arno about the options used to ./configure, but this still seems to be something that isn't obvious/possible at all. Does anyone know: is it possible to build the gc using the ./configure tools, and if so, what are the options used? If not, how have people gone about building it? Thanks Bruce |
From: Bruce J. <bru...@go...> - 2012-05-16 17:18:56
|
As a matter of interest --deps sounds like a very useful sort of thing for the whole of the xmvlvm build process. At present there doesn't seem to be a way to restrict the core java.*/javax.* packages and classes that are actually cross compiled by xmlvm (at least not for the posix backend) so you end up with an enormous executable with everything included even if your application is trivial. Am I missing something? Thanks Bruce On 3 Apr 2012, at 22:05, Sascha Haeberling wrote: > Instead of --in I wold recommend using --deps as it should only pull in the portions of the library that you need. Whereas --in would cross-compile the whole library. > > // Sascha > > On Tue, Apr 3, 2012 at 11:28 AM, Arno Puder <ar...@pu...> wrote: > > you are making use of an external JSON library that XMLVM doesn't know > about. If that library is bundled as a .jar file, you can try adding it > via --in. You should also look at the Android API that is supported by > XMLVM (check xmlvm/src/android2iphone). > > Arno > > > On 4/3/12 7:28 AM, Valeria Rogatchevskikh wrote: > > Hi > > > > Sorry to intrude but I have a similar problem as below: I am trying to > > cross compile an android project to iphone and I have tried to create > > the java project from the android thanks to your indications in the > > slide 69 but I am not sure I did it right because I get an error message: > > > > The type org.json.JSONObject cannot be resolved. It is indirectly > > referenced from required .class files > > > > Is there a way to fix this or it means that my android project cannot be > > cross-compiled? > > > > Thank you very much in advance, > > > > Regards, > > > > Valeria Rogatchevskikh > > > > El 31 de marzo de 2012 05:27, Arno Puder <ar...@pu... > > <mailto:ar...@pu...>> escribió: > > > > > > please note that XMLVM requires .class files as input; not .java files. > > The directory you reference with --in= needs to contain .class files. > > Take a look at the slides in xmlvm/doc/slides (towards the end of the > > slides) that explain how to import an Android project as a Java project > > and link it with XMLVM. If Eclipse should show any errors, you won't be > > able to use XMLVM to cross-compile your app. > > > > Arno > > > > > > On 3/30/12 6:00 AM, Rudolf Schillack wrote: > > > Hello, > > > > > > I tried to cross-compile an android project to iOS. My first try > > was to > > > use the following command for an existing android project created by > > > eclipse "xmlvm --in=Test/ --target=iphone --lib=android > > > --iphone-app=Test2" where I got a warning for every .java, .xml > > and .png > > > file like these: > > > > > > […] > > > [03/30/12 13:08:08.745] WARNING: Unable to create InputProcesses for > > > input: […]Test/src/de/Test/TestActivity.java > > > [03/30/12 13:08:08.745] WARNING: Unable to create InputProcesses for > > > input: […]Test/res/values/strings.xml > > > [03/30/12 13:08:08.745] WARNING: Unable to create InputProcesses for > > > input: […]Test/res/layout/main.xml > > > [03/30/12 13:08:08.745] WARNING: Unable to create InputProcesses for > > > input: […]Test/res/drawable-mdpi/ic_launcher.png > > > […] > > > > > > In the created Xcode project, I got a message "Update to recommended > > > settings" > > > "Target '../Test2' - Upgrade Compiler configuration to LLVM" > > > "Project 'Test2' - Upgrade to latest Project Format' > > > > > > After that, I got some errors. 4 times in the file > > "java_lang_String.h > > > "Redefinition of 'java_lang_String' as different kind of symbol" > > at the > > > line "typedef NSMutableString java_lang_String;" > > > and one time in the file "org_xmlvm_iphone_NSObject.h" > > "Redefinition of > > > 'org_xmlvm_iphone_NSObject' as different kind of symbol" at the line > > > "typedef NSObject org_xmlvm_iphone_NSObject;" > > > > > > I deleted these lines for test and got the next error in > > > "java_io_ByteArrayOutputStream.h" "Cannot declare variable inside > > > @interface or @protocol" at the line "static int const > > DEFAULT_CAPACITY;" > > > > > > > > > > > > So I thought cross compiling a project defined by eclipse does > > maybe not > > > work yet and I started the next try by migrating the eclipse project > > > using "xmlvm --skeleton=android:migrate --out=../Test" to a xmlvm > > > android project where I got the following warnings: > > > > > > [03/30/12 12:33:25.045] WARNING: Using Test as application name > > > [03/30/12 12:33:25.052] WARNING: InputProcess.getOutputFiles(): Input > > > File is null. > > > > > > The resulting project does not contain the "src", "bin" and "res" > > folder. > > > > > > Can somebody help me? > > > > > > Best regards, > > > Rudolf Schillack > > > > > > > > > > > ------------------------------------------------------------------------------ > > > This SF email is sponsosred by: > > > Try Windows Azure free for 90 days Click Here > > > http://p.sf.net/sfu/sfd2d-msazure > > > > > > > > > > > > _______________________________________________ > > > xmlvm-users mailing list > > > xml...@li... > > <mailto:xml...@li...> > > > https://lists.sourceforge.net/lists/listinfo/xmlvm-users > > > > ------------------------------------------------------------------------------ > > This SF email is sponsosred by: > > Try Windows Azure free for 90 days Click Here > > http://p.sf.net/sfu/sfd2d-msazure > > _______________________________________________ > > xmlvm-users mailing list > > xml...@li... > > <mailto:xml...@li...> > > https://lists.sourceforge.net/lists/listinfo/xmlvm-users > > > > > > ------------------------------------------------------------------------------ > Better than sec? Nothing is better than sec when it comes to > monitoring Big Data applications. Try Boundary one-second > resolution app monitoring today. Free. > http://p.sf.net/sfu/Boundary-dev2dev > _______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users > > ------------------------------------------------------------------------------ > Better than sec? Nothing is better than sec when it comes to > monitoring Big Data applications. Try Boundary one-second > resolution app monitoring today. Free. > http://p.sf.net/sfu/Boundary-dev2dev_______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users |
From: Volker B. <vol...@go...> - 2012-05-07 19:16:58
|
Hi Arno, Am 07.05.2012 02:50, schrieb Arno Puder: > > On 5/3/12 9:01 AM, Volker Berlin wrote: >> Hi, >> >> The idea of the project xmlvm is very cool. It is that what we need. But >> I can't faith that it work. >> >> How is the status of the project. I know a very abstract question. That >> a little more specific: >> >> * Can I write my business logic in Java and convert it in a .NET >> application, Android application and iphone application. For the GUI >> I want use a wrapper on every platform? > we don't support .NET. I'm not sure what you mean with "wrapper". There > is a patch that supports partial cross-compilation where you can supply > a custom UI for different platforms. You still need to write this UI > though. The patch has not been merged with the main code base yet, but > you can look at it here: > http://xmlvm-reviews.appspot.com/216001/ On your home page at http://xmlvm.org/overview/ I can read that you support .NET CIL as input and as output. There is also a target "exe" in the command line. Is this a lie? With a wrapper I means that if I use an API object in one language/platform the wrapper convert the API calls to the API of the other language. For example the java.net.Socket from Java should wrap to System.Net.Sockets.Socket. Or java.lang.List to System.Collections.List. >> * Which packages can I use? > Don't know what you mean with 'package'. packages in Java or Namespaces in c#. I means which public API will be cross compiled? If I can not use any public API then cross compiling make no sense. >> * Are there already wrapper for a GUI? > Don't know what you mean with 'wrapper'. XMLVM does some mapping for > certain Android GUI elements to iOS, but you have to be aware that > Android and iOS have different UI idioms (just consider the 'back' and > 'menu' buttons on Android. How can those be mapped to iOS in an > automated way?) One thing you don't want is an iOS app that feels like > an Android app. The solution can only be that you have to re-write the > UI parts for the respective target platform. I understand that there are large differences in the GUI. I think on an abstract GUI API. Which will realize with a real API on the different target platforms. > > Arno > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users > |