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-04-03 18:28:25
|
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 > > |
From: Paul P. <bay...@gm...> - 2012-04-03 14:24:48
|
That's probably a better question for tigris.org, but make sure you have administrator rights & since you're on a Mac, make sure you have JavaHL setup: http://subclipse.tigris.org/wiki/JavaHL Thanks, Paul On Tue, Apr 3, 2012 at 6:05 AM, Pranab Das <pra...@gm...> wrote: > Hi, > > Don't know what's happening but when trying to install the package > downloaded from http://www.open.collab.net/downloads/community/ the > package will not install after accepting the license agreement. > > Introduction > Continue > ReadMe > Continue > License > Continue > Agree > > After that there is only one item: Install for all users ... which is > highlighted but the continue button is grayed. > > Any guidance will be appreciated. > > Regards, > > Pranab Das > > > > ------------------------------------------------------------------------------ > 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: Pranab D. <pra...@gm...> - 2012-04-03 11:05:57
|
Hi, Don't know what's happening but when trying to install the package downloaded from http://www.open.collab.net/downloads/community/ the package will not install after accepting the license agreement. Introduction > Continue ReadMe > Continue License > Continue > Agree After that there is only one item: Install for all users ... which is highlighted but the continue button is grayed. Any guidance will be appreciated. Regards, Pranab Das |
From: Arno P. <ar...@pu...> - 2012-03-31 03:27:37
|
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... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users |
From: Rudolf S. <sch...@ha...> - 2012-03-30 13:36:45
|
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 |
From: Markus H. <ma...@ti...> - 2012-03-29 19:00:05
|
Seems you are trying to do UDP stuff. I have implemented some UDP stuff in this patch: http://xmlvm-reviews.appspot.com/136001/ It is not in the mainline yet, and may have some errors, but you could try to apply it to the current trunk version of xmlvm. Unfortunately I have currently no time to complete the patch. :( Regards, Markus Am 29.03.2012 um 18:43 schrieb Bruce Jackson: > Is there a list of the Android/Java classes that are supported by the various backends anywhere? > > Following your advice, I have managed to get the Boehm GC installed, and a posix project compiled to an executable. However, when I run it, I get the message: > > XMLVM Error: Unimplemented native method: (org_apache_harmony_luni_platform_OSNetworkSystem_createDatagramSocket___java_io_FileDescriptor_boolean):../src/native_org_apache_harmony_luni_platform_OSNetworkSystem.c:447 > > > > On 28 Mar 2012, at 18:05, Arno Puder wrote: > >> >> XMLVM bundles a garbage collector pre-configured for iOS. For all other >> platforms (i.e., Posix) you need to download and install the Boehm GC >> yourself. Note that the Boehm GC recently moved to github: >> http://www.hpl.hp.com/personal/Hans_Boehm/gc/ >> >> Arno >> >> >> On 3/28/12 10:00 AM, Bruce Jackson wrote: >>> Thank you, thats great. If I am actually wanted to end up with a library >>> that I can use in an existing iOS application, is this the ight way to >>> go, or should I just set the --out=iphone ? >>> >>> Thanks >>> >>> Bruce >>> >>> On 28 Mar 2012, at 16:18, Paul Poley wrote: >>> >>>> You are correct. You can find the instructions to install the boehm GC >>>> in the comments at the beginning of "xmlvm/var/posix/Makefile". >>>> >>>> Thanks, >>>> Paul >>>> >>>> On Wed, Mar 28, 2012 at 6:20 AM, Bruce Jackson >>>> <bru...@go... <mailto:bru...@go...>> wrote: >>>> >>>> Hello there >>>> >>>> I have a simple Java library that I use in an Android application >>>> and I would like to convert it using xmlvm using the posix backend >>>> on MacOS X 10.6. >>>> >>>> I have built and installed xmlvm as described in the docs, and >>>> that all looks good. My java classes are in a directoty called >>>> java, and I want the output in the directory src. >>>> >>>> When I enter: >>>> >>>> xmlvm --in=./java --out=./src --target=posix >>>> >>>> …I correctly get the directories src and dist created under src. >>>> diet contains just one file (Makefile) while src has a whole pile >>>> of .c and .h files as I would expect. >>>> >>>> If I then go into dist and type: >>>> >>>> make >>>> >>>> … I get the following message: >>>> >>>> mkdir -p build/ >>>> mkdir -p build/obj/ >>>> gcc -w -std=c99 -DALL_INTERIOR_POINTERS -DGC_THREADS >>>> -DTHREAD_LOCAL_ALLOC -DPARALLEL_MARK -DUSE_MMAP -DUSE_MUNMAP >>>> -DNO_DYLD_BIND_FULLY_IMAGE -I../src -c >>>> ../src/com_pure_media_MediaStore.c -o >>>> build/obj/com_pure_media_MediaStore.o >>>> In file included from ../src/com_pure_media_MediaStore.c:1: >>>> ../src/xmlvm.h:51:16: error: gc.h: No such file or directory >>>> make: *** [build/obj/com_pure_media_MediaStore.o] Error 1 >>>> >>>> I can see what's happening here, but I'm not sure what I need to >>>> install in order to get gc.h. Nothing in the documentation tells >>>> me I need to have anything else installed on my system in order to >>>> build for a posix backend, but obviously I'm missing something >>>> (probably the boemgc library?) or I don't have a path to >>>> appropriate headers set up. >>>> >>>> Can anyone help/advise? >>>> >>>> Thanks >>>> >>>> Bruce >>>> >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> 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... >>> 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... >> 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... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users |
From: Arno P. <ar...@pu...> - 2012-03-29 17:22:18
|
look at src/android2iphone to see which Android classes can be cross-compiled to iOS. As for standard J2SE API, XMLVM cross-compiles Apache Harmony. We have deemed some classes as not required for iOS. We call these "red classes". You can see a list of those classes in xmlvm/lib/redlist.txt. If you happen to need a class that is on the red list, simple remove it in redlist.txt. You ran into an unimplemented native method. Although we cross-compile Harmony, some classes require access to the native layer (in your case you are trying to create a socket). That code is in xmlvm/src/xmlvm2c/lib/native. You would have to provide a C implementation for the API you need. Arno On 3/29/12 9:43 AM, Bruce Jackson wrote: > Is there a list of the Android/Java classes that are supported by the various backends anywhere? > > Following your advice, I have managed to get the Boehm GC installed, and a posix project compiled to an executable. However, when I run it, I get the message: > > XMLVM Error: Unimplemented native method: (org_apache_harmony_luni_platform_OSNetworkSystem_createDatagramSocket___java_io_FileDescriptor_boolean):../src/native_org_apache_harmony_luni_platform_OSNetworkSystem.c:447 > > > > On 28 Mar 2012, at 18:05, Arno Puder wrote: > >> >> XMLVM bundles a garbage collector pre-configured for iOS. For all other >> platforms (i.e., Posix) you need to download and install the Boehm GC >> yourself. Note that the Boehm GC recently moved to github: >> http://www.hpl.hp.com/personal/Hans_Boehm/gc/ >> >> Arno >> >> >> On 3/28/12 10:00 AM, Bruce Jackson wrote: >>> Thank you, thats great. If I am actually wanted to end up with a library >>> that I can use in an existing iOS application, is this the ight way to >>> go, or should I just set the --out=iphone ? >>> >>> Thanks >>> >>> Bruce >>> >>> On 28 Mar 2012, at 16:18, Paul Poley wrote: >>> >>>> You are correct. You can find the instructions to install the boehm GC >>>> in the comments at the beginning of "xmlvm/var/posix/Makefile". >>>> >>>> Thanks, >>>> Paul >>>> >>>> On Wed, Mar 28, 2012 at 6:20 AM, Bruce Jackson >>>> <bru...@go...<mailto:bru...@go...>> wrote: >>>> >>>> Hello there >>>> >>>> I have a simple Java library that I use in an Android application >>>> and I would like to convert it using xmlvm using the posix backend >>>> on MacOS X 10.6. >>>> >>>> I have built and installed xmlvm as described in the docs, and >>>> that all looks good. My java classes are in a directoty called >>>> java, and I want the output in the directory src. >>>> >>>> When I enter: >>>> >>>> xmlvm --in=./java --out=./src --target=posix >>>> >>>> …I correctly get the directories src and dist created under src. >>>> diet contains just one file (Makefile) while src has a whole pile >>>> of .c and .h files as I would expect. >>>> >>>> If I then go into dist and type: >>>> >>>> make >>>> >>>> … I get the following message: >>>> >>>> mkdir -p build/ >>>> mkdir -p build/obj/ >>>> gcc -w -std=c99 -DALL_INTERIOR_POINTERS -DGC_THREADS >>>> -DTHREAD_LOCAL_ALLOC -DPARALLEL_MARK -DUSE_MMAP -DUSE_MUNMAP >>>> -DNO_DYLD_BIND_FULLY_IMAGE -I../src -c >>>> ../src/com_pure_media_MediaStore.c -o >>>> build/obj/com_pure_media_MediaStore.o >>>> In file included from ../src/com_pure_media_MediaStore.c:1: >>>> ../src/xmlvm.h:51:16: error: gc.h: No such file or directory >>>> make: *** [build/obj/com_pure_media_MediaStore.o] Error 1 >>>> >>>> I can see what's happening here, but I'm not sure what I need to >>>> install in order to get gc.h. Nothing in the documentation tells >>>> me I need to have anything else installed on my system in order to >>>> build for a posix backend, but obviously I'm missing something >>>> (probably the boemgc library?) or I don't have a path to >>>> appropriate headers set up. >>>> >>>> Can anyone help/advise? >>>> >>>> Thanks >>>> >>>> Bruce >>>> >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> 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... >>> 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... >> https://lists.sourceforge.net/lists/listinfo/xmlvm-users > |
From: Bruce J. <bru...@go...> - 2012-03-29 16:43:23
|
Is there a list of the Android/Java classes that are supported by the various backends anywhere? Following your advice, I have managed to get the Boehm GC installed, and a posix project compiled to an executable. However, when I run it, I get the message: XMLVM Error: Unimplemented native method: (org_apache_harmony_luni_platform_OSNetworkSystem_createDatagramSocket___java_io_FileDescriptor_boolean):../src/native_org_apache_harmony_luni_platform_OSNetworkSystem.c:447 On 28 Mar 2012, at 18:05, Arno Puder wrote: > > XMLVM bundles a garbage collector pre-configured for iOS. For all other > platforms (i.e., Posix) you need to download and install the Boehm GC > yourself. Note that the Boehm GC recently moved to github: > http://www.hpl.hp.com/personal/Hans_Boehm/gc/ > > Arno > > > On 3/28/12 10:00 AM, Bruce Jackson wrote: >> Thank you, thats great. If I am actually wanted to end up with a library >> that I can use in an existing iOS application, is this the ight way to >> go, or should I just set the --out=iphone ? >> >> Thanks >> >> Bruce >> >> On 28 Mar 2012, at 16:18, Paul Poley wrote: >> >>> You are correct. You can find the instructions to install the boehm GC >>> in the comments at the beginning of "xmlvm/var/posix/Makefile". >>> >>> Thanks, >>> Paul >>> >>> On Wed, Mar 28, 2012 at 6:20 AM, Bruce Jackson >>> <bru...@go... <mailto:bru...@go...>> wrote: >>> >>> Hello there >>> >>> I have a simple Java library that I use in an Android application >>> and I would like to convert it using xmlvm using the posix backend >>> on MacOS X 10.6. >>> >>> I have built and installed xmlvm as described in the docs, and >>> that all looks good. My java classes are in a directoty called >>> java, and I want the output in the directory src. >>> >>> When I enter: >>> >>> xmlvm --in=./java --out=./src --target=posix >>> >>> …I correctly get the directories src and dist created under src. >>> diet contains just one file (Makefile) while src has a whole pile >>> of .c and .h files as I would expect. >>> >>> If I then go into dist and type: >>> >>> make >>> >>> … I get the following message: >>> >>> mkdir -p build/ >>> mkdir -p build/obj/ >>> gcc -w -std=c99 -DALL_INTERIOR_POINTERS -DGC_THREADS >>> -DTHREAD_LOCAL_ALLOC -DPARALLEL_MARK -DUSE_MMAP -DUSE_MUNMAP >>> -DNO_DYLD_BIND_FULLY_IMAGE -I../src -c >>> ../src/com_pure_media_MediaStore.c -o >>> build/obj/com_pure_media_MediaStore.o >>> In file included from ../src/com_pure_media_MediaStore.c:1: >>> ../src/xmlvm.h:51:16: error: gc.h: No such file or directory >>> make: *** [build/obj/com_pure_media_MediaStore.o] Error 1 >>> >>> I can see what's happening here, but I'm not sure what I need to >>> install in order to get gc.h. Nothing in the documentation tells >>> me I need to have anything else installed on my system in order to >>> build for a posix backend, but obviously I'm missing something >>> (probably the boemgc library?) or I don't have a path to >>> appropriate headers set up. >>> >>> Can anyone help/advise? >>> >>> Thanks >>> >>> Bruce >>> >>> >>> >>> ------------------------------------------------------------------------------ >>> 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... >> 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... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users |
From: Arno P. <ar...@pu...> - 2012-03-28 17:32:58
|
try --target=iphonec (which will use the C backend instead of the Objective-C backend). The C backend cross-compiles Apache Harmony so your chances of making this work are higher. The older Objective-C backend manually implemented a few J2SE classes (see xmlvm/src/xmlvm2objc/compat-lib/objc). Arno On 3/28/12 10:27 AM, Bruce Jackson wrote: > Hi Arno > > Thanks for your help. In a seperate thread you said that: > > Note that XMLVM only supports a subset of Android API that can be > cross-compiled. Take a look at xmlvm/src/android2iphone. If you are > using API that is not in that folder, your app won't cross-compile. > > When I open the generated project using the out=iphone switch in XCode, I get a collection of compilation problems relating to header files missing. All of these are within the standard java.* namespace, for example: > > #import "java_net_InetAddress.h" > > Is there something else I need do when I build the project, or something else to setup in Xcode? > > Thanks > > Bruce > > On 28 Mar 2012, at 18:05, Arno Puder wrote: > >> >> XMLVM bundles a garbage collector pre-configured for iOS. For all other >> platforms (i.e., Posix) you need to download and install the Boehm GC >> yourself. Note that the Boehm GC recently moved to github: >> http://www.hpl.hp.com/personal/Hans_Boehm/gc/ >> >> Arno >> >> >> On 3/28/12 10:00 AM, Bruce Jackson wrote: >>> Thank you, thats great. If I am actually wanted to end up with a library >>> that I can use in an existing iOS application, is this the ight way to >>> go, or should I just set the --out=iphone ? >>> >>> Thanks >>> >>> Bruce >>> >>> On 28 Mar 2012, at 16:18, Paul Poley wrote: >>> >>>> You are correct. You can find the instructions to install the boehm GC >>>> in the comments at the beginning of "xmlvm/var/posix/Makefile". >>>> >>>> Thanks, >>>> Paul >>>> >>>> On Wed, Mar 28, 2012 at 6:20 AM, Bruce Jackson >>>> <bru...@go...<mailto:bru...@go...>> wrote: >>>> >>>> Hello there >>>> >>>> I have a simple Java library that I use in an Android application >>>> and I would like to convert it using xmlvm using the posix backend >>>> on MacOS X 10.6. >>>> >>>> I have built and installed xmlvm as described in the docs, and >>>> that all looks good. My java classes are in a directoty called >>>> java, and I want the output in the directory src. >>>> >>>> When I enter: >>>> >>>> xmlvm --in=./java --out=./src --target=posix >>>> >>>> …I correctly get the directories src and dist created under src. >>>> diet contains just one file (Makefile) while src has a whole pile >>>> of .c and .h files as I would expect. >>>> >>>> If I then go into dist and type: >>>> >>>> make >>>> >>>> … I get the following message: >>>> >>>> mkdir -p build/ >>>> mkdir -p build/obj/ >>>> gcc -w -std=c99 -DALL_INTERIOR_POINTERS -DGC_THREADS >>>> -DTHREAD_LOCAL_ALLOC -DPARALLEL_MARK -DUSE_MMAP -DUSE_MUNMAP >>>> -DNO_DYLD_BIND_FULLY_IMAGE -I../src -c >>>> ../src/com_pure_media_MediaStore.c -o >>>> build/obj/com_pure_media_MediaStore.o >>>> In file included from ../src/com_pure_media_MediaStore.c:1: >>>> ../src/xmlvm.h:51:16: error: gc.h: No such file or directory >>>> make: *** [build/obj/com_pure_media_MediaStore.o] Error 1 >>>> >>>> I can see what's happening here, but I'm not sure what I need to >>>> install in order to get gc.h. Nothing in the documentation tells >>>> me I need to have anything else installed on my system in order to >>>> build for a posix backend, but obviously I'm missing something >>>> (probably the boemgc library?) or I don't have a path to >>>> appropriate headers set up. >>>> >>>> Can anyone help/advise? >>>> >>>> Thanks >>>> >>>> Bruce >>>> >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> 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... >>> 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... >> https://lists.sourceforge.net/lists/listinfo/xmlvm-users > |
From: Bruce J. <bru...@go...> - 2012-03-28 17:27:57
|
Hi Arno Thanks for your help. In a seperate thread you said that: Note that XMLVM only supports a subset of Android API that can be cross-compiled. Take a look at xmlvm/src/android2iphone. If you are using API that is not in that folder, your app won't cross-compile. When I open the generated project using the out=iphone switch in XCode, I get a collection of compilation problems relating to header files missing. All of these are within the standard java.* namespace, for example: #import "java_net_InetAddress.h" Is there something else I need do when I build the project, or something else to setup in Xcode? Thanks Bruce On 28 Mar 2012, at 18:05, Arno Puder wrote: > > XMLVM bundles a garbage collector pre-configured for iOS. For all other > platforms (i.e., Posix) you need to download and install the Boehm GC > yourself. Note that the Boehm GC recently moved to github: > http://www.hpl.hp.com/personal/Hans_Boehm/gc/ > > Arno > > > On 3/28/12 10:00 AM, Bruce Jackson wrote: >> Thank you, thats great. If I am actually wanted to end up with a library >> that I can use in an existing iOS application, is this the ight way to >> go, or should I just set the --out=iphone ? >> >> Thanks >> >> Bruce >> >> On 28 Mar 2012, at 16:18, Paul Poley wrote: >> >>> You are correct. You can find the instructions to install the boehm GC >>> in the comments at the beginning of "xmlvm/var/posix/Makefile". >>> >>> Thanks, >>> Paul >>> >>> On Wed, Mar 28, 2012 at 6:20 AM, Bruce Jackson >>> <bru...@go... <mailto:bru...@go...>> wrote: >>> >>> Hello there >>> >>> I have a simple Java library that I use in an Android application >>> and I would like to convert it using xmlvm using the posix backend >>> on MacOS X 10.6. >>> >>> I have built and installed xmlvm as described in the docs, and >>> that all looks good. My java classes are in a directoty called >>> java, and I want the output in the directory src. >>> >>> When I enter: >>> >>> xmlvm --in=./java --out=./src --target=posix >>> >>> …I correctly get the directories src and dist created under src. >>> diet contains just one file (Makefile) while src has a whole pile >>> of .c and .h files as I would expect. >>> >>> If I then go into dist and type: >>> >>> make >>> >>> … I get the following message: >>> >>> mkdir -p build/ >>> mkdir -p build/obj/ >>> gcc -w -std=c99 -DALL_INTERIOR_POINTERS -DGC_THREADS >>> -DTHREAD_LOCAL_ALLOC -DPARALLEL_MARK -DUSE_MMAP -DUSE_MUNMAP >>> -DNO_DYLD_BIND_FULLY_IMAGE -I../src -c >>> ../src/com_pure_media_MediaStore.c -o >>> build/obj/com_pure_media_MediaStore.o >>> In file included from ../src/com_pure_media_MediaStore.c:1: >>> ../src/xmlvm.h:51:16: error: gc.h: No such file or directory >>> make: *** [build/obj/com_pure_media_MediaStore.o] Error 1 >>> >>> I can see what's happening here, but I'm not sure what I need to >>> install in order to get gc.h. Nothing in the documentation tells >>> me I need to have anything else installed on my system in order to >>> build for a posix backend, but obviously I'm missing something >>> (probably the boemgc library?) or I don't have a path to >>> appropriate headers set up. >>> >>> Can anyone help/advise? >>> >>> Thanks >>> >>> Bruce >>> >>> >>> >>> ------------------------------------------------------------------------------ >>> 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... >> 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... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users |
From: Arno P. <ar...@pu...> - 2012-03-28 17:22:50
|
I think that code is correct. If you look at the documentation of InputStream.read(byte[]) you will see that if will read at most the length of the array. That is that the i == READ_BUF_SIZE is for: it indicates that there is potentially more data to be read. But to mention something else: the code you are referring to is the Java implementation of class NSData. This code belongs to XMLVM's Java emulator for iOS (meaning you can run a Java-based iOS application on a JVM). That was more an experiment and we stopped adding functionality a long time ago because we would have to re-implement iOS in Java (which is clearly out of scope). Note that that Java implementation you are seeing is *not* used during cross-compilation. Arno On 3/25/12 10:36 PM, Tim Christensen wrote: > Hi, > > I am trying to consume a JSON response, however, NSData byte array size > is only 26. I saw there was an earlier discussion about this, but no > resolution. > > When reviewing the code I see this logic: > > do { > byte[] buf = new byte[READ_BUF_SIZE]; > i = in.read(buf); > > if (i > 0) { > l.add(buf); > bytesRead += i; > } > > > } while (i == READ_BUF_SIZE); > > How is it possible that (i == READ_BUF_SIZE)? In other words read the > input stream while i = 32767 - this will end after the first try. I can > see that my InputStream does contain all of the data but the readData > method only returns a 26 character portion. > > I am fixing this for my own immediate needs but in the meantime I wanted > to understand if I was missing something since I would assume this to be > a fundamental need for a lot of apps??? > > Here is my fix for the time being: > > private void readData(InputStream in) { > data= newbyte[READ_BUF_SIZE]; > > > try { > int offset = 0; > int numRead = 0; > > > while (offset < data.length && (numRead=in.read(data, offset, > data.length-offset)) >= 0) > { > offset += numRead; > } > > in.close(); > } catch (IOException ex) { > // Do nothing > } > } > > > > > ------------------------------------------------------------------------------ > 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... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users |
From: Arno P. <ar...@pu...> - 2012-03-28 17:13:21
|
XMLVM bundles a garbage collector pre-configured for iOS. For all other platforms (i.e., Posix) you need to download and install the Boehm GC yourself. Note that the Boehm GC recently moved to github: http://www.hpl.hp.com/personal/Hans_Boehm/gc/ Arno On 3/28/12 10:00 AM, Bruce Jackson wrote: > Thank you, thats great. If I am actually wanted to end up with a library > that I can use in an existing iOS application, is this the ight way to > go, or should I just set the --out=iphone ? > > Thanks > > Bruce > > On 28 Mar 2012, at 16:18, Paul Poley wrote: > >> You are correct. You can find the instructions to install the boehm GC >> in the comments at the beginning of "xmlvm/var/posix/Makefile". >> >> Thanks, >> Paul >> >> On Wed, Mar 28, 2012 at 6:20 AM, Bruce Jackson >> <bru...@go... <mailto:bru...@go...>> wrote: >> >> Hello there >> >> I have a simple Java library that I use in an Android application >> and I would like to convert it using xmlvm using the posix backend >> on MacOS X 10.6. >> >> I have built and installed xmlvm as described in the docs, and >> that all looks good. My java classes are in a directoty called >> java, and I want the output in the directory src. >> >> When I enter: >> >> xmlvm --in=./java --out=./src --target=posix >> >> …I correctly get the directories src and dist created under src. >> diet contains just one file (Makefile) while src has a whole pile >> of .c and .h files as I would expect. >> >> If I then go into dist and type: >> >> make >> >> … I get the following message: >> >> mkdir -p build/ >> mkdir -p build/obj/ >> gcc -w -std=c99 -DALL_INTERIOR_POINTERS -DGC_THREADS >> -DTHREAD_LOCAL_ALLOC -DPARALLEL_MARK -DUSE_MMAP -DUSE_MUNMAP >> -DNO_DYLD_BIND_FULLY_IMAGE -I../src -c >> ../src/com_pure_media_MediaStore.c -o >> build/obj/com_pure_media_MediaStore.o >> In file included from ../src/com_pure_media_MediaStore.c:1: >> ../src/xmlvm.h:51:16: error: gc.h: No such file or directory >> make: *** [build/obj/com_pure_media_MediaStore.o] Error 1 >> >> I can see what's happening here, but I'm not sure what I need to >> install in order to get gc.h. Nothing in the documentation tells >> me I need to have anything else installed on my system in order to >> build for a posix backend, but obviously I'm missing something >> (probably the boemgc library?) or I don't have a path to >> appropriate headers set up. >> >> Can anyone help/advise? >> >> Thanks >> >> Bruce >> >> >> >> ------------------------------------------------------------------------------ >> 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... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users |
From: Arno P. <ar...@pu...> - 2012-03-28 17:09:01
|
unfortunately the documentation is out of date. The target android-on-iphone is deprecated. You should use --target=iphonec (to use the C backend) or --target=iphone (for the Objective-C backend) in conjunction with --lib=android. Note that XMLVM only supports a subset of Android API that can be cross-compiled. Take a look at xmlvm/src/android2iphone. If you are using API that is not in that folder, your app won't cross-compile. Arno On 3/27/12 2:43 AM, Tymen Steur wrote: > I encountered the exact same problem as the previous post (as written > below). > > " > For some reason 'android-on-iphone' is not an acceptable xmlvm target > for me. > Why is this? > > Did I build xmlvm without the right path to Android? Has anyone else > seen this? > > I am on Mac OS 10.7 > > - James > " > > In the documentation it states that the ' android-on-iphone' target > should be used to cross-compile an > Android application to the iPhone where the Android compatibility > library will be copied to the output > directory. > > " > |xmlvm --in=/foo --target=android-on-iphone --iphone-app=TheApplication| > Same as the previous example, but will also copy the Android > compatibility library to the output directory. This effectively allows > Java-based Android applications to be cross-compiled to the iPhone. > " > > Anybody who can help with this issue? > > Thanks in advance. > > Tymen > > > ------------------------------------------------------------------------------ > 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... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users |
From: Arno P. <ar...@pu...> - 2012-03-28 17:04:49
|
sorry for the slow response. XMLVM supports some OpenGLES API for iOS. Look at class NeHeLesson4 in xmlvm/demo/iphone. Note that XMLVM's Android Compat Lib (that is used when cross-compiling from Android to iOS) has no OpenGLES support. Arno On 3/19/12 1:55 AM, Joe Laws wrote: > Hi, > I was wondering the status of OpenGL support in XMLVM? I have a 3D game > I am developing for android that is designed to be platform > independent. Currently it should run on a desktop, applet, through > javascript (gwt). I am thinking about creating an iphone version > utilizing XMLVM, but before I dive in I was wondering what everyones > thoughts are on OpenGL ES in XMLVM. > Regards, > Joe > > > ------------------------------------------------------------------------------ > 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... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users |
From: Bruce J. <bru...@go...> - 2012-03-28 17:00:34
|
Thank you, thats great. If I am actually wanted to end up with a library that I can use in an existing iOS application, is this the ight way to go, or should I just set the --out=iphone ? Thanks Bruce On 28 Mar 2012, at 16:18, Paul Poley wrote: > You are correct. You can find the instructions to install the boehm GC in the comments at the beginning of "xmlvm/var/posix/Makefile". > > Thanks, > Paul > > On Wed, Mar 28, 2012 at 6:20 AM, Bruce Jackson <bru...@go...> wrote: > Hello there > > I have a simple Java library that I use in an Android application and I would like to convert it using xmlvm using the posix backend on MacOS X 10.6. > > I have built and installed xmlvm as described in the docs, and that all looks good. My java classes are in a directoty called java, and I want the output in the directory src. > > When I enter: > > xmlvm --in=./java --out=./src --target=posix > > …I correctly get the directories src and dist created under src. diet contains just one file (Makefile) while src has a whole pile of .c and .h files as I would expect. > > If I then go into dist and type: > > make > > … I get the following message: > > mkdir -p build/ > mkdir -p build/obj/ > gcc -w -std=c99 -DALL_INTERIOR_POINTERS -DGC_THREADS -DTHREAD_LOCAL_ALLOC -DPARALLEL_MARK -DUSE_MMAP -DUSE_MUNMAP -DNO_DYLD_BIND_FULLY_IMAGE -I../src -c ../src/com_pure_media_MediaStore.c -o build/obj/com_pure_media_MediaStore.o > In file included from ../src/com_pure_media_MediaStore.c:1: > ../src/xmlvm.h:51:16: error: gc.h: No such file or directory > make: *** [build/obj/com_pure_media_MediaStore.o] Error 1 > > I can see what's happening here, but I'm not sure what I need to install in order to get gc.h. Nothing in the documentation tells me I need to have anything else installed on my system in order to build for a posix backend, but obviously I'm missing something (probably the boemgc library?) or I don't have a path to appropriate headers set up. > > Can anyone help/advise? > > Thanks > > Bruce > > > > ------------------------------------------------------------------------------ > 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... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users > |
From: Paul P. <bay...@gm...> - 2012-03-28 15:19:04
|
You are correct. You can find the instructions to install the boehm GC in the comments at the beginning of "xmlvm/var/posix/Makefile". Thanks, Paul On Wed, Mar 28, 2012 at 6:20 AM, Bruce Jackson <bru...@go...>wrote: > Hello there > > I have a simple Java library that I use in an Android application and I > would like to convert it using xmlvm using the posix backend on MacOS X > 10.6. > > I have built and installed xmlvm as described in the docs, and that all > looks good. My java classes are in a directoty called java, and I want the > output in the directory src. > > When I enter: > > xmlvm --in=./java --out=./src --target=posix > > …I correctly get the directories src and dist created under src. diet > contains just one file (Makefile) while src has a whole pile of .c and .h > files as I would expect. > > If I then go into dist and type: > > make > > … I get the following message: > > mkdir -p build/ > mkdir -p build/obj/ > gcc -w -std=c99 -DALL_INTERIOR_POINTERS -DGC_THREADS -DTHREAD_LOCAL_ALLOC > -DPARALLEL_MARK -DUSE_MMAP -DUSE_MUNMAP -DNO_DYLD_BIND_FULLY_IMAGE -I../src > -c ../src/com_pure_media_MediaStore.c -o > build/obj/com_pure_media_MediaStore.o > In file included from ../src/com_pure_media_MediaStore.c:1: > ../src/xmlvm.h:51:16: error: gc.h: No such file or directory > make: *** [build/obj/com_pure_media_MediaStore.o] Error 1 > > I can see what's happening here, but I'm not sure what I need to install > in order to get gc.h. Nothing in the documentation tells me I need to have > anything else installed on my system in order to build for a posix backend, > but obviously I'm missing something (probably the boemgc library?) or I > don't have a path to appropriate headers set up. > > Can anyone help/advise? > > Thanks > > Bruce > > > > > ------------------------------------------------------------------------------ > 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... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users > |
From: Bruce J. <bru...@go...> - 2012-03-28 11:20:44
|
Hello there I have a simple Java library that I use in an Android application and I would like to convert it using xmlvm using the posix backend on MacOS X 10.6. I have built and installed xmlvm as described in the docs, and that all looks good. My java classes are in a directoty called java, and I want the output in the directory src. When I enter: xmlvm --in=./java --out=./src --target=posix …I correctly get the directories src and dist created under src. diet contains just one file (Makefile) while src has a whole pile of .c and .h files as I would expect. If I then go into dist and type: make … I get the following message: mkdir -p build/ mkdir -p build/obj/ gcc -w -std=c99 -DALL_INTERIOR_POINTERS -DGC_THREADS -DTHREAD_LOCAL_ALLOC -DPARALLEL_MARK -DUSE_MMAP -DUSE_MUNMAP -DNO_DYLD_BIND_FULLY_IMAGE -I../src -c ../src/com_pure_media_MediaStore.c -o build/obj/com_pure_media_MediaStore.o In file included from ../src/com_pure_media_MediaStore.c:1: ../src/xmlvm.h:51:16: error: gc.h: No such file or directory make: *** [build/obj/com_pure_media_MediaStore.o] Error 1 I can see what's happening here, but I'm not sure what I need to install in order to get gc.h. Nothing in the documentation tells me I need to have anything else installed on my system in order to build for a posix backend, but obviously I'm missing something (probably the boemgc library?) or I don't have a path to appropriate headers set up. Can anyone help/advise? Thanks Bruce |
From: Tymen S. <tym...@it...> - 2012-03-27 12:53:23
|
>> I encountered the exact same problem as the previous post (as written below). >> >> " >> For some reason 'android-on-iphone' is not an acceptable xmlvm target for me. >> >> Why is this? >> >> Did I build xmlvm without the right path to Android? Has anyone else seen this? >> >> I am on Mac OS 10.7 >> >> - James >> " >> >> In the documentation it states that the ' android-on-iphone' target should be used to cross-compile an >> Android application to the iPhone where the Android compatibility library will be copied to the output >> directory. >> >> " >> xmlvm --in=/foo --target=android-on-iphone --iphone-app=TheApplication >> Same as the previous example, but will also copy the Android compatibility library to the output directory. This effectively allows Java-based Android applications to be cross-compiled to the iPhone. >> " >> >> Anybody who can help with this issue? >> >> Thanks in advance. >> >> Tymen |
From: Tymen S. <tym...@it...> - 2012-03-27 10:05:54
|
I encountered the exact same problem as the previous post (as written below). " For some reason 'android-on-iphone' is not an acceptable xmlvm target for me. Why is this? Did I build xmlvm without the right path to Android? Has anyone else seen this? I am on Mac OS 10.7 - James " In the documentation it states that the ' android-on-iphone' target should be used to cross-compile an Android application to the iPhone where the Android compatibility library will be copied to the output directory. " xmlvm --in=/foo --target=android-on-iphone --iphone-app=TheApplication Same as the previous example, but will also copy the Android compatibility library to the output directory. This effectively allows Java-based Android applications to be cross-compiled to the iPhone. " Anybody who can help with this issue? Thanks in advance. Tymen |
From: james s. <jam...@gm...> - 2012-03-27 01:00:22
|
For some reason 'android-on-iphone' is not an acceptable xmlvm target for me. Why is this? Did I build xmlvm without the right path to Android? Has anyone else seen this? I am on Mac OS 10.7 - James |
From: Tim C. <ti...@vi...> - 2012-03-26 06:08:09
|
Hi, I am trying to consume a JSON response, however, NSData byte array size is only 26. I saw there was an earlier discussion about this, but no resolution. When reviewing the code I see this logic: do { byte[] buf = new byte[READ_BUF_SIZE]; i = in.read(buf); if (i > 0) { l.add(buf); bytesRead += i; } } while (i == READ_BUF_SIZE); How is it possible that (i == READ_BUF_SIZE)? In other words read the input stream while i = 32767 - this will end after the first try. I can see that my InputStream does contain all of the data but the readData method only returns a 26 character portion. I am fixing this for my own immediate needs but in the meantime I wanted to understand if I was missing something since I would assume this to be a fundamental need for a lot of apps??? Here is my fix for the time being: private void readData(InputStream in) { data = new byte[READ_BUF_SIZE]; try { int offset = 0; int numRead = 0; while (offset < data.length && (numRead=in.read(data, offset, data.length-offset)) >= 0) { offset += numRead; } in.close(); } catch (IOException ex) { // Do nothing } } |
From: Jasmin j. <jas...@gm...> - 2012-03-20 07:40:01
|
Dear all, iam trying to implement the migration of existing Android project i used the Command: xmlvm --skeleton=android:migrate --out=<my android app OUTDIR> but alot of error messages appear , saying that " Directory could not be created" and " could not create directory for file ". what that's mean and what should i do? thankx. -- Jasmin John William Student at Faculty of Information Technology Future Universty(Sudan) |
From: Joe L. <joe...@gm...> - 2012-03-19 08:55:56
|
Hi, I was wondering the status of OpenGL support in XMLVM? I have a 3D game I am developing for android that is designed to be platform independent. Currently it should run on a desktop, applet, through javascript (gwt). I am thinking about creating an iphone version utilizing XMLVM, but before I dive in I was wondering what everyones thoughts are on OpenGL ES in XMLVM. Regards, Joe |
From: hiba o. <hib...@gm...> - 2012-03-18 11:38:57
|
Hello, is it possible to cross compile android app into iPhone app? am using Java netbeans IDE . and if it's possible where do i find a documentation to follow on the steps. -- ------------------------------------------------------------------------------------- *Eng.* *H*iba *O*sama *M*ohamed *Z*aki *Intelligent Solutions for Consultancy & Software.* *E-mail :* www.int-sols.com *P.O.Box:* 3434 - Khartoum *Programmer and Software Developer ,* *Mob:* +249-123500650 , +249-912836087 *E-mail*: hib...@gm... , hib...@ya... |
From: Panayotis K. <pan...@pa...> - 2012-03-18 11:25:18
|
On 17 Μαρ 2012, at 10:16 μ.μ., Sam Reid wrote: > Swing Support in Java -> iOS > > I've seen in earlier threads that J2SE support for Java -> iOS is nearly complete (for C backend), but lacking support for Swing (and AWT). What would it take to add support for Swing for Java -> iOS? In order of importance, I'd say the features in order of most to least important for my project would be: > > *most important > Java2D (including Graphics2D and java.awt.Shape classes) > Containers (like JComponent and JPanel) > Layouts > UI components like JButton/JCheckBox > Composite UI components like JSpinner > Specific classes like JTable > *least important > > I just wanted to see if anyone else has taken steps in this direction, or has thought about what it would take to get there. Is there some small set of native methods that we would need to implement, or would it be necessary to provide a complete implementation of native AWT peers (as I understand it is done for desktop Swing applications). > > Thanks! > Sam My understanding from Swing, is that it only needs a small subset of AWT to be ported and then everything is drawn by the library itself. This "small" subset though is not so small, because all native 2D-3D methods should be implemented, as well most basic peers (like windows and awt canvas) |