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: 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 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: 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: 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: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-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-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: 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: Bruce J. <bru...@go...> - 2012-04-08 15:07:27
|
Yes, thats correct. Much of the work you have done in the patch is already included in the trunk build if I look at the source. Being a novice to this project, I was wondering when the native libraries are actually built. The instructions on the XMLVM site say that: cd xmlvm ant ant demos However, this doesn't seem to rebuild any of the native C code. Are these built on demand when xmlvm is actually executed? If not, how do I rebuild the native C libraries? Thanks Bruce On 29 Mar 2012, at 19:44, Markus Heberling wrote: > 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: Paul P. <bay...@gm...> - 2012-04-09 14:12:40
|
Run: ant gen-c-native-skeletons That will regenerate the native files, but still maintain the contents between each //XMLVM_BEGIN & //XMLVM_END. If you change the contents, you will need to "ant" again to repackage the jar. Thanks, Paul On Sun, Apr 8, 2012 at 10:07 AM, Bruce Jackson <bru...@go...>wrote: > Yes, thats correct. > > Much of the work you have done in the patch is already included in the > trunk build if I look at the source. Being a novice to this project, I was > wondering when the native libraries are actually built. The instructions on > the XMLVM site say that: > > cd xmlvm > ant > ant demos > > However, this doesn't seem to rebuild any of the native C code. Are these > built on demand when xmlvm is actually executed? If not, how do I rebuild > the native C libraries? > > Thanks > > Bruce > > On 29 Mar 2012, at 19:44, Markus Heberling wrote: > > > 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 > > > > > > ------------------------------------------------------------------------------ > For Developers, A Lot Can Happen In A Second. > Boundary is the first to Know...and Tell You. > Monitor Your Applications in Ultra-Fine Resolution. Try it FREE! > http://p.sf.net/sfu/Boundary-d2dvs2 > _______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users > |