From: Tomás L. <to...@be...> - 2011-09-10 01:34:43
|
Hi, I arrived at XMLVM because I would like to develop a Game Engine capable of producing Java games for desktop as well as Android and iOS and if possible more devices. I watched the youtube videos and now have a global understanding of how it works. I checked out the source code but wasn't able to compile the demos. First the ant process failed because a few files have capitalization problems that don't work on Linux, specifically *Xcode*.xml files in 'nbproject' folders. After I fixed those issues another issue came up, according to Ant a folder named 'Src' was not found for the 'xokoban' project. I was not able to fix that issue as renaming wouldn't change anything and couldn't find a reference on any of the build.xml files to 'Src' that I could fix to 'src'. I found a few examples like basic OpenGL that are already working so it should be viable to create a complete OpenGL 2.0 mapping to be used in games. Using LibGDX it is already possible to develop targeting Android and Desktop seamlessly for the library user. It is done with an abstraction over the platform as well as OpenGL encapsulated as "backends", there is even a backend that maps OpenGL to DirectX. I think I need to work on two fronts: 'LibGDX iPhone backend' and 'OpenGL ES 2.0 for XMLVM'. Since I'm a totally green on the whole XMLVM I would really appreciate advice on how to proceed! Thanks! Tomás Lázaro |
From: Panayotis K. <pan...@pa...> - 2011-09-10 10:51:33
|
On 10 Σεπ 2011, at 4:27 π.μ., Tomás Lázaro wrote: > Hi, > > I arrived at XMLVM because I would like to develop a Game Engine capable of producing Java games for desktop as well as Android and iOS and if possible more devices. I watched the youtube videos and now have a global understanding of how it works. > > I checked out the source code but wasn't able to compile the demos. First the ant process failed because a few files have capitalization problems that don't work on Linux, specifically *Xcode*.xml files in 'nbproject' folders. After I fixed those issues another issue came up, according to Ant a folder named 'Src' was not found for the 'xokoban' project. I was not able to fix that issue as renaming wouldn't change anything and couldn't find a reference on any of the build.xml files to 'Src' that I could fix to 'src'. Hello. First of all, welcome here! Your idea sounds promising and I'd like to wish you good luck with your task :) The case issues with build-* files should have beed fixed now. If you still had problems, please report them because we might have left something. Now about the Src reference, this is strange because there were never a "Src" (instead of "src) reference in the build scripts. Can you tell us the exact location? > I found a few examples like basic OpenGL that are already working so it should be viable to create a complete OpenGL 2.0 mapping to be used in games. Using LibGDX it is already possible to develop targeting Android and Desktop seamlessly for the library user. It is done with an abstraction over the platform as well as OpenGL encapsulated as "backends", there is even a backend that maps OpenGL to DirectX. > > I think I need to work on two fronts: 'LibGDX iPhone backend' and 'OpenGL ES 2.0 for XMLVM'. Since I'm a totally green on the whole XMLVM I would really appreciate advice on how to proceed! What you should do first is to implement in XMLVM all the advanced OpenGL features of iOS you will require. Only iOS documented properties and methods should be defined there. No helper functions. Then go to the native sources and "implement" (wrap practically) these methods to the actual native methods. I believe we can help you with this part. Now XMLVM is in the process of migrating from Objective C to pure C. You might consider implementing your required OpenGL bindings using the C backend instead of Objective C. When pure iOS OpenGL support is ready, then you can create the bindings between libGDX and XMLVM. I don't know how libGDX is organized, but I suspect there is a way to append these bindings to libGDX without breaking the other backends. If you need native support for helper functions, then things get a bit tricky (and is actually a thing under development). Please finish all others and we'll discuss this topic. |
From: Panayotis K. <pan...@pa...> - 2011-09-10 10:53:45
|
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. |
From: Tomás L. <to...@be...> - 2011-09-10 22:44:29
|
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...> 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... > https://lists.sourceforge.net/lists/listinfo/xmlvm-developers > > |
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 |
From: Panayotis K. <pan...@pa...> - 2011-09-12 16:52:19
|
On 11 Σεπ 2011, at 1:44 π.μ., 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. I think it will be a good idea to have a better look at http://xmlvm.org/documentation/ Thus will solve you most of your problems, without patching :) The problem with the case sensitive targets is that you did "ant run" without a default target. Anyways I am going to fix this problem soon. |