From: Arno P. <ar...@pu...> - 2011-09-12 07:22:33
|
some comments from my side: - the following works for me with the current HEAD: cd xmlvm ant cd demo/android/xokoban ant run-Xcode - ignore the vtable index -1 messages for now. Should not have an impact on the cross-compiled application. - there are a bunch of tutorials you may also want to try: cd tutorial/ios/helloworld/portrait ant run-Xcode Also look at http://xmlvm.org/tutorial The general approach for adding new API (such as the one you propose): - create the Java API in xmlvm/src/xmlvm2objc/compat-lib/java. There is no need to provide an implementation. - run "ant gen-c-wrappers" to create the C wrappers for the new API. You can find the wrappers in xmlvm/src/xmlvm2c/compat-lib/iphone - Implement the wrappers. For the last item check out the slides in xmlvm/doc/slides for some comments on the C backend (in the middle of the slide deck). Also look at the extensive inline comments in org_xmlvm_iphone_UIView.m and org_xmlvm_iphone_NSObject.m to see the pattern for implementing the wrappers. Let us know if you have further questions. Arno On 9/10/11 3:44 PM, Tomás Lázaro wrote: > Hi, > > Thanks for your quick response! > > I'm still having trouble with the demos, I did a fresh checkout of the > xmlvm trunk. The 'ant' command worked fine but 'ant demos' afterwards > still produces the error with the aforementioned xmls. > > /home/tomas/NetBeansProjects/xmlvm/demo/iphone/ifireworks/nbproject/xmlvm.xml:96: > The following error occurred while executing this line: > java.io.FileNotFoundException: > /home/tomas/NetBeansProjects/xmlvm/demo/iphone/ifireworks/nbproject/*build-xcode.xml* > (No such file or directory) > > > There is a total of 8 files inside /xmlvm/demo/ that are named > *build-Xcode.xml* but should be *build-xcode.xml*. > > After fixing those I get these errors: > > -xproject-create: > [echo] Creating Xcode project with the C backend. > [java] [09/10/11 19:14:07.984] ERROR: Vtable index for > javax.xml.parsers.DocumentBuilder.setErrorHandler is -1! > [java] > [java] [09/10/11 19:14:07.985] ERROR: Vtable index for > javax.xml.parsers.DocumentBuilder.setEntityResolver is -1! > [java] > [java] [09/10/11 19:18:39.447] ERROR: Oh no, XMLVM needs > more memory. Try running with -Xmx1G or more. > > -xproject-trim: > > -xproject-updater: > > BUILD FAILED > /home/tomas/NetBeansProjects/xmlvm/build.xml:341: The following > error occurred while executing this line: > /home/tomas/NetBeansProjects/xmlvm/demo/build.xml:54: The following > error occurred while executing this line: > /home/tomas/NetBeansProjects/xmlvm/demo/android/xokoban/nbproject/xmlvm.xml:96: > The following error occurred while executing this line: > /home/tomas/NetBeansProjects/xmlvm/demo/android/xokoban/nbproject/build-xcode.xml:85: > Src directory does not exist. > > > I'm not sure if there is a problem with 'Src' folder or it is because > XMLVM ran out of memory. I have a 4GB RAM, I would not mind adding the > "-Xmx1G" but I just don't know where to put that since it's not for the > 'ant' process itself... isn't it? > > I'm using Ubuntu 64-bit 11.04, Ant 1.8.1, Java 1.6.0_26. > > Thanks again! > Tomás Lázaro > > On Sat, Sep 10, 2011 at 7:53 AM, Panayotis Katsaloulis > <pan...@pa... <mailto:pan...@pa...>> wrote: > > > On 10 Σεπ 2011, at 1:51 μ.μ., Panayotis Katsaloulis wrote: > >> What you should do first is to implement in XMLVM all the advanced >> OpenGL features of iOS you will require. > > Just a comment to make myself clear: > I mean to write the Java code which later on the libGDX will use as > an API. > > ------------------------------------------------------------------------------ > Malware Security Report: Protecting Your Business, Customers, and the > Bottom Line. Protect your business and customers by understanding the > threat from malware and how it can impact your online business. > http://www.accelacomm.com/jaw/sfnl/114/51427462/ > _______________________________________________ > Xmlvm-developers mailing list > Xml...@li... > <mailto:Xml...@li...> > https://lists.sourceforge.net/lists/listinfo/xmlvm-developers > > > > > ------------------------------------------------------------------------------ > Malware Security Report: Protecting Your Business, Customers, and the > Bottom Line. Protect your business and customers by understanding the > threat from malware and how it can impact your online business. > http://www.accelacomm.com/jaw/sfnl/114/51427462/ > > > > _______________________________________________ > Xmlvm-developers mailing list > Xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-developers |