From: Sal <sv...@gm...> - 2011-03-22 03:43:00
|
I just repeated the process on my Macbook with XCode. It all works great! iFireworks compiled and ran. I normally develop on a non-mac though, so I would be *very* interested in the posix target working under win or linux. But not a major priority - I can work in plain Java elsewhere and just port the missing parts on the Mac potentially. A couple questions as now I'm building my own custom application components. 1) Apache Harmony I believe, as well as GNU classpath already have posix-ish native implementations of most Java things. Is it a good idea to try to port/reuse these for xmlvm somehow? Since most of these are missing currently. Or is there a different strategy in mind? IE rewrite these things from scratch (yikes!). 2) For my own app I will need URL/HTTP client type functionality, or TCPIP sockets would work. What is the recommended method for me to implement these components while working under the C target? I would be happy to contribute my efforts. I would prefer more Java-ish approach than one that uses iOS APIs. 3) What is the purpose of the xmlvm2c/lib/proxies dir in the source tree? When should I have to modify these sources as an xmlvm user? 4) For the iOS APIs - there exist a lot of methods/tools to reflect Objective-C code, or even parsers could be used to generate Java stubs for the iOS APIs in bulk, that just thunk to the 'real' Objective C APIs. Is there anyone thinking to do this yet? Would there be interest in a script for this? Or is the plan to write all those emulation APIs by hand (it would be an immense undertaking this route - and things could get out of sync this way I'm thinking...) Great work on all this, thanks much for the help so far, its a great team here! - Sal On Mon, Mar 21, 2011 at 12:49 PM, Arno Puder <ar...@pu...> wrote: > The version of Boehm GC that is bundled with XMLVM is specifically for > iOS and shouldn't be used for other platforms. I had meant to change > the Makefile for Posix platforms to rely on an external installation > of Boehm GC for the respective platform. I will do that soon. > > Arno > > > On Mar 21, 2011, at 9:34 AM, Sal <sv...@gm...> wrote: > > > My fault. Eclipse errors due to my coniguration, I rebuilt, that > > error was resolved. > > > > Now: > > > > gcc -w -std=c99 -I../src -c ../src/mark.c -o build/obj/mark.o > > ../src/mark.c: In function `GC_mark_some': > > ../src/mark.c:544: error: `asm' undeclared (first use in this function) > > ../src/mark.c:544: error: (Each undeclared identifier is reported only > once > > ../src/mark.c:544: error: for each function it appears in.) > > ../src/mark.c:544: error: syntax error before "volatile" > > ../src/mark.c:553: error: syntax error before "volatile" > > make: *** [build/obj/mark.o] Error 1 > > > > I am using mingw32 - trying to compile the Posix target - should this > > be usable yet? > > > > On 3/21/11, Arno Puder <ar...@pu...> wrote: > >> Can you please try "ant clean" and re-build XMLVM? > >> > >> Arno > >> > >> On Mar 21, 2011, at 8:20 AM, Sal <sv...@gm...> wrote: > >> > >>> Arno - > >>> > >>> Currently getting an error from a fresh SVN checkout. Using 'make' > >>> after the command: > >>> > >>> java -Xmx700m -jar dist/xmlvm.jar --target=posix > >>> --in=bin/org/xmlvm/test/ReflectionTest.class --out=ReflectionTest > >>> > >>> gcc -w -std=c99 -I../src -c ../src/java_lang_Object.c -o > >>> build/obj/java_lang_Obj > >>> ect.o > >>> ../src/java_lang_Object.c:3:43: java_lang_Object_AddedMembers.h: No > such > >>> file or > >>> directory > >>> ../src/java_lang_Object.c:35: error: > >>> `__CLASS_java_lang_Object_AddedMembers' und > >>> eclared here (not in a function) > >>> ../src/java_lang_Object.c:35: error: initializer element is not > constant > >>> ../src/java_lang_Object.c:35: error: (near initialization for > >>> `__field_reflectio > >>> n_data[1].type') > >>> ../src/java_lang_Object.c:40: error: initializer element is not > constant > >>> ../src/java_lang_Object.c:40: error: (near initialization for > >>> `__field_reflectio > >>> n_data[1]') > >>> make: *** [build/obj/java_lang_Object.o] Error 1 > >>> > >>> On 3/18/11, Sal <sv...@gm...> wrote: > >>>> I'll begin the search for those posts, then - thanks much for the tip, > >>>> Arno. > >>>> > >>>> Potentially if I get it to work I'd like to help make it automated - > >>>> possibly add some Ant logic to take care of the things needed? Just > to > >>>> make > >>>> it easier to stay in sync with all the great, exciting work you guys > are > >>>> doing here. Let me know any thoughts on this, > >>>> > >>>> Thanks again for all the help, > >>>> > >>>> - Sal > >>>> > >>>> On Mar 18, 2011, at 3:09 AM, Arno Puder <ar...@pu...> wrote: > >>>> > >>>>> > >>>>> the default targets are still using the Objective-C backend (what is > >>>>> described in the documentation). The C backend is still > >>>>> work-in-progress. Do a grep on this mailing list and you will find > some > >>>>> posts that explain how to cross-compile iFireworks using the C > backend. > >>>>> > >>>>> We are making good progress on the C backend but it will take some > more > >>>>> time to make the switch. I will send an update sometime soon. > >>>>> > >>>>> Arno > >>>>> > >>>>> > >>>>> On 3/18/11 12:06 AM, Sal wrote: > >>>>>> Thanks for the link! > >>>>>> > >>>>>> However I don't see mention of the 'C' target or Harmony support - > is > >>>>>> this all handled by one of the generic targets? Or has to be > configured > >>>>>> explicitly at the command line when building? I do see mention of > the > >>>>>> objc and c++ things. > >>>>>> > >>>>>> Thanks again for the help, I will shortly attempt a fresh checkout > and > >>>>>> build of the codebase. > >>>>>> > >>>>>> On Mar 18, 2011, at 2:50 AM, opwoco GbR <in...@op... > >>>>>> <mailto:in...@op...>> wrote: > >>>>>> > >>>>>>> Hi sal, > >>>>>>> > >>>>>>> send a piece of the command line output to see what's happen.. > >>>>>>> > >>>>>>> > >>>>>>> to run one of the demo projects take a look the Documentation at > >>>>>>> <http://xmlvm.org>xmlvm.org <http://xmlvm.org>: > >>>>>>> directlink: > >>>>>>> < > https://sites.google.com/a/xmlvm.org/documentation/#TOC-How-to-run-an-XMLVM-project > > > https://sites.google.com/a/xmlvm.org/documentation/#TOC-How-to-run-an-XMLVM-project > >>>>>>> < > https://sites.google.com/a/xmlvm.org/documentation/#TOC-How-to-run-an-XMLVM-project > > > >>>>>>> > >>>>>>> 2011/3/18 Sal <<mailto:sv...@gm...>sv...@gm... > >>>>>>> <mailto:sv...@gm...>> > >>>>>>> > >>>>>>> > >>>>>>> What are the steps to get a simple 'hello world' iPhone app up and > >>>>>>> running from the latest SVN snapshot? Possibly with the Harmony > >>>>>>> support included? (printing to standard out is fine, I understand > >>>>>>> ui is underway). > >>>>>>> > >>>>>>> I read through the manual, but the c target didn't seem > >>>>>>> mentioned... Maybe I missed it, if so apologies - if there are > >>>>>>> docs I'll try those. > >>>>>>> > >>>>>>> I tried (quickly) a svn download and running the ant scripts but > >>>>>>> lots of errors with JDK classes missing, etc. I was wondering what > >>>>>>> the 'proper' way was to hack through it before I started > debugging. > >>>>>>> > >>>>>>> If it works I would be happy to put together a wiki page on it, > >>>>>>> possibly put binaries someplace for other newbies to use as well > >>>>>>> to help with getting Java apps compiled on iOS. > >>>>>>> > >>>>>>> Thanks in advance, > >>>>>>> > >>>>>>> Sal > >>>>>>> > >>>>>>> > ------------------------------------------------------------------------------ > >>>>>>> Colocation vs. Managed Hosting > >>>>>>> A question and answer guide to determining the best fit > >>>>>>> for your organization - today and in the future. > >>>>>>> > >>>>>>> <http://p.sf.net/sfu/internap-sfd2d> > http://p.sf.net/sfu/internap-sfd2d > >>>>>>> _______________________________________________ > >>>>>>> xmlvm-users mailing list > >>>>>>> > >>>>>>> <mailto:xml...@li...> > xml...@li... > >>>>>>> <mailto:xml...@li...> > >>>>>>> > >>>>>>> <https://lists.sourceforge.net/lists/listinfo/xmlvm-users> > https://lists.sourceforge.net/lists/listinfo/xmlvm-users > >>>>>>> > >>>>>>> > >>>>>> > >>>>>> > >>>>>> > ------------------------------------------------------------------------------ > >>>>>> Colocation vs. Managed Hosting > >>>>>> A question and answer guide to determining the best fit > >>>>>> for your organization - today and in the future. > >>>>>> http://p.sf.net/sfu/internap-sfd2d > >>>>>> > >>>>>> > >>>>>> > >>>>>> _______________________________________________ > >>>>>> xmlvm-users mailing list > >>>>>> xml...@li... > >>>>>> https://lists.sourceforge.net/lists/listinfo/xmlvm-users > >>>>> > >>>>> > ------------------------------------------------------------------------------ > >>>>> Colocation vs. Managed Hosting > >>>>> A question and answer guide to determining the best fit > >>>>> for your organization - today and in the future. > >>>>> http://p.sf.net/sfu/internap-sfd2d > >>>>> _______________________________________________ > >>>>> xmlvm-users mailing list > >>>>> xml...@li... > >>>>> https://lists.sourceforge.net/lists/listinfo/xmlvm-users > >>>> > >> > |