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 |