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 > > |