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: 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: 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: Sascha H. <sa...@xm...> - 2012-04-03 21:06:18
|
Instead of --in I wold recommend using --deps as it should only pull in the portions of the library that you need. Whereas --in would cross-compile the whole library. // Sascha On Tue, Apr 3, 2012 at 11:28 AM, Arno Puder <ar...@pu...> wrote: > > 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 > > > > > > > ------------------------------------------------------------------------------ > 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: Jeff P. <jcp...@ro...> - 2012-04-04 16:46:19
|
In the spirit of simplification, is there ever any reason to specify -in? There could be stuff that never would really get used with a jar marked as -in as well? Not a big deal. Another way to say this is why could not --in at least have the slimming characteristics of --deps as well? Jeff On 4/3/12 5:05 PM, "Sascha Haeberling" <sa...@xm...> wrote: > Instead of --in I wold recommend using --deps as it should only pull in the > portions of the library that you need. Whereas --in would cross-compile the > whole library. > > // Sascha |
From: Bruce J. <bru...@go...> - 2012-05-16 17:18:56
|
As a matter of interest --deps sounds like a very useful sort of thing for the whole of the xmvlvm build process. At present there doesn't seem to be a way to restrict the core java.*/javax.* packages and classes that are actually cross compiled by xmlvm (at least not for the posix backend) so you end up with an enormous executable with everything included even if your application is trivial. Am I missing something? Thanks Bruce On 3 Apr 2012, at 22:05, Sascha Haeberling wrote: > Instead of --in I wold recommend using --deps as it should only pull in the portions of the library that you need. Whereas --in would cross-compile the whole library. > > // Sascha > > On Tue, Apr 3, 2012 at 11:28 AM, Arno Puder <ar...@pu...> wrote: > > 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 > > > > > > ------------------------------------------------------------------------------ > 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 > > ------------------------------------------------------------------------------ > 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 |