From: William W. <flu...@gm...> - 2011-09-30 09:24:40
|
Hello all, I'm new to xmlvm and am running into a problem with my "hello world". My goal is to cross compile Android applications to iPhone. Although I don't think it matters, I'm running xmlvm on Linux and then copying the generated projects to MacOS. I created my Hello World which is the same as the standard Google hello world for Android - it simply defines the onCreate method with setContentView(R.layout.main). There is a main.xml and a strings.xml and also the AndroidManifest.xml that is always there. The app runs fine on Google's Android simulator. I'm able to build my app in XCode and run it in XCode's iPhone simulator, but it crashes on startup. The error displayed in the debugger output is: <E> <xmlvm>: Unable to locate AndroidManifest.xml file After some brief looking I see that the manifest, main and strings xml files are not output into the generated xcode project. I've tried using the --resource commandline option as well as the xmlvm.resource property to try to specify that I want these files, but it doesn't seem to make any difference. I've encountered the same problem with the files in the android demo directory, or at least with afireworks, which is what I tried. Do I need to manually copy these resource files? If so, where shall I put them? |
From: Arno P. <ar...@pu...> - 2011-09-30 18:46:22
|
that should work. There is probably a problem with --resource. I would suggest you let XMLVM generate an empty skeleton project: xmlvm --skeleton=android --out=OUTDIR --app-name=APPNAME and then edit it the way you need. Arno On 9/30/11 2:24 AM, William Wilson wrote: > Hello all, > I'm new to xmlvm and am running into a problem with my "hello world". > My goal is to cross compile Android applications to iPhone. Although I > don't think it matters, I'm running xmlvm on Linux and then copying the > generated projects to MacOS. > > I created my Hello World which is the same as the standard Google hello > world for Android - it simply defines the onCreate method with > setContentView(R.layout.main). There is a main.xml and a strings.xml > and also the AndroidManifest.xml that is always there. The app runs > fine on Google's Android simulator. > > I'm able to build my app in XCode and run it in XCode's iPhone > simulator, but it crashes on startup. The error displayed in the > debugger output is: > <E> <xmlvm>: Unable to locate AndroidManifest.xml file > > After some brief looking I see that the manifest, main and strings xml > files are not output into the generated xcode project. I've tried using > the --resource commandline option as well as the xmlvm.resource property > to try to specify that I want these files, but it doesn't seem to make > any difference. > > I've encountered the same problem with the files in the android demo > directory, or at least with afireworks, which is what I tried. > > Do I need to manually copy these resource files? If so, where shall I > put them? > > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2dcopy2 > > > > _______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users |
From: Panayotis K. <pan...@pa...> - 2011-09-30 20:30:39
|
30 Σεπ 2011, 12:24 μ.μ., ο/η William Wilson <flu...@gm...> έγραψε: > Hello all, > I'm new to xmlvm and am running into a problem with my "hello world". My goal is to cross compile Android applications to iPhone. Although I don't think it matters, I'm running xmlvm on Linux and then copying the generated projects to MacOS. > In general, this is not a good idea. Although the produced Xcode project tries to use relative pathnames where possible, it might be a situation that this wasn't possible, and absolute pathnames were created (which of course where broken when you moved the project to another system). In general the idea is the Xcode project to be consumable, like the other intermediate files. It is not a full & free Xcode project like others. If you want to compile an Xcode project, I'd strongly suggest to create this project in a Mac. |
From: William W. <flu...@gm...> - 2011-10-01 06:59:00
|
Unfortunately this doesn't seem to be working either. Creating a project using the xmlvm android skeleton works but has the same problem - neither the AndroidManifest.xml file nor any other resource exist anywhere in the --out directory and are not referenced in the xcodeproj file or Makefile. As for the relative vs absolute path issue, I really don't think that is the issue, else I would expect an error in the build phase in Xcode. I looked in the generated xcodeproj and found no references to any kind of xml file, whether relative or absolute paths. In any case doing my Android development on the Mac is a non starter even if I did think it would work. Is there any way I can just add these resource files manually to the iPhone project? The cross compilation part, which is what I am actually interested in, is working fine. I just don't know where to put them. As an alternative, would it be possible for me to just cross-compile the logic of my application and copy it into an ordinary iphone app, which I could then invoke from my own Objective-C code? This way I would build the UI again, but not the meat of the app, which would probably be fine - and then I don't need to worry about the cocoa compatibility library. My app is mostly networking and cryptography anyway, I can afford (and halfway expect) to redo the UI. On Fri, Sep 30, 2011 at 12:16 PM, Arno Puder <ar...@pu...> wrote: > > that should work. There is probably a problem with --resource. I would > suggest you let XMLVM generate an empty skeleton project: > > xmlvm --skeleton=android --out=OUTDIR --app-name=APPNAME > > and then edit it the way you need. > > Arno > > > On 9/30/11 2:24 AM, William Wilson wrote: > > Hello all, > > I'm new to xmlvm and am running into a problem with my "hello world". > > My goal is to cross compile Android applications to iPhone. Although I > > don't think it matters, I'm running xmlvm on Linux and then copying the > > generated projects to MacOS. > > > > I created my Hello World which is the same as the standard Google hello > > world for Android - it simply defines the onCreate method with > > setContentView(R.layout.main). There is a main.xml and a strings.xml > > and also the AndroidManifest.xml that is always there. The app runs > > fine on Google's Android simulator. > > > > I'm able to build my app in XCode and run it in XCode's iPhone > > simulator, but it crashes on startup. The error displayed in the > > debugger output is: > > <E> <xmlvm>: Unable to locate AndroidManifest.xml file > > > > After some brief looking I see that the manifest, main and strings xml > > files are not output into the generated xcode project. I've tried using > > the --resource commandline option as well as the xmlvm.resource property > > to try to specify that I want these files, but it doesn't seem to make > > any difference. > > > > I've encountered the same problem with the files in the android demo > > directory, or at least with afireworks, which is what I tried. > > > > Do I need to manually copy these resource files? If so, where shall I > > put them? > > > > > > > ------------------------------------------------------------------------------ > > All of the data generated in your IT infrastructure is seriously > valuable. > > Why? It contains a definitive record of application performance, security > > threats, fraudulent activity, and more. Splunk takes this data and makes > > sense of it. IT sense. And common sense. > > http://p.sf.net/sfu/splunk-d2dcopy2 > > > > > > > > _______________________________________________ > > xmlvm-users mailing list > > xml...@li... > > https://lists.sourceforge.net/lists/listinfo/xmlvm-users > > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2dcopy2 > _______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users > |
From: William W. <flu...@gm...> - 2011-10-01 07:27:21
|
I went ahead and copied AndroidManifest.xml and the main.xml and strings.xml into the project resources manually and now I no longer have the previous issue. Instead I have the following errors: <I><Resources>: Unable to resolve resources for com.myproject.AndroidTestApp1: id <I><Resources>: Unable to resolve resources for com.myproject.AndroidTestApp1: array <I><Resources>: Unable to resolve resources for com.myproject.AndroidTestApp1: dimen <I><Resources>: Unable to resolve resources for com.myproject.AndroidTestApp1: raw These four errors are then repeated one time. Unfortunately, I'm not sure what these errors mean, so I don't know where to go from here. On Sat, Oct 1, 2011 at 12:58 AM, William Wilson <flu...@gm...>wrote: > Unfortunately this doesn't seem to be working either. Creating a project > using the xmlvm android skeleton works but has the same problem - neither > the AndroidManifest.xml file nor any other resource exist anywhere in the > --out directory and are not referenced in the xcodeproj file or Makefile. > > As for the relative vs absolute path issue, I really don't think that is > the issue, else I would expect an error in the build phase in Xcode. I > looked in the generated xcodeproj and found no references to any kind of xml > file, whether relative or absolute paths. In any case doing my Android > development on the Mac is a non starter even if I did think it would work. > > Is there any way I can just add these resource files manually to the iPhone > project? The cross compilation part, which is what I am actually interested > in, is working fine. I just don't know where to put them. > > As an alternative, would it be possible for me to just cross-compile the > logic of my application and copy it into an ordinary iphone app, which I > could then invoke from my own Objective-C code? This way I would build the > UI again, but not the meat of the app, which would probably be fine - and > then I don't need to worry about the cocoa compatibility library. My app is > mostly networking and cryptography anyway, I can afford (and halfway expect) > to redo the UI. > > > On Fri, Sep 30, 2011 at 12:16 PM, Arno Puder <ar...@pu...> wrote: > >> >> that should work. There is probably a problem with --resource. I would >> suggest you let XMLVM generate an empty skeleton project: >> >> xmlvm --skeleton=android --out=OUTDIR --app-name=APPNAME >> >> and then edit it the way you need. >> >> Arno >> >> >> On 9/30/11 2:24 AM, William Wilson wrote: >> > Hello all, >> > I'm new to xmlvm and am running into a problem with my "hello world". >> > My goal is to cross compile Android applications to iPhone. Although I >> > don't think it matters, I'm running xmlvm on Linux and then copying the >> > generated projects to MacOS. >> > >> > I created my Hello World which is the same as the standard Google hello >> > world for Android - it simply defines the onCreate method with >> > setContentView(R.layout.main). There is a main.xml and a strings.xml >> > and also the AndroidManifest.xml that is always there. The app runs >> > fine on Google's Android simulator. >> > >> > I'm able to build my app in XCode and run it in XCode's iPhone >> > simulator, but it crashes on startup. The error displayed in the >> > debugger output is: >> > <E> <xmlvm>: Unable to locate AndroidManifest.xml file >> > >> > After some brief looking I see that the manifest, main and strings xml >> > files are not output into the generated xcode project. I've tried using >> > the --resource commandline option as well as the xmlvm.resource property >> > to try to specify that I want these files, but it doesn't seem to make >> > any difference. >> > >> > I've encountered the same problem with the files in the android demo >> > directory, or at least with afireworks, which is what I tried. >> > >> > Do I need to manually copy these resource files? If so, where shall I >> > put them? >> > >> > >> > >> ------------------------------------------------------------------------------ >> > All of the data generated in your IT infrastructure is seriously >> valuable. >> > Why? It contains a definitive record of application performance, >> security >> > threats, fraudulent activity, and more. Splunk takes this data and makes >> > sense of it. IT sense. And common sense. >> > http://p.sf.net/sfu/splunk-d2dcopy2 >> > >> > >> > >> > _______________________________________________ >> > xmlvm-users mailing list >> > xml...@li... >> > https://lists.sourceforge.net/lists/listinfo/xmlvm-users >> >> >> ------------------------------------------------------------------------------ >> All of the data generated in your IT infrastructure is seriously valuable. >> Why? It contains a definitive record of application performance, security >> threats, fraudulent activity, and more. Splunk takes this data and makes >> sense of it. IT sense. And common sense. >> http://p.sf.net/sfu/splunk-d2dcopy2 >> _______________________________________________ >> xmlvm-users mailing list >> xml...@li... >> https://lists.sourceforge.net/lists/listinfo/xmlvm-users >> > > |
From: Panayotis K. <pan...@pa...> - 2011-10-01 07:58:27
|
On 1 Οκτ 2011, at 9:58 π.μ., William Wilson wrote: > As for the relative vs absolute path issue, I really don't think that is the issue, else I would expect an error in the build phase in Xcode. I looked in the generated xcodeproj and found no references to any kind of xml file, whether relative or absolute paths. In any case doing my Android development on the Mac is a non starter even if I did think it would work. This is the expected behavior. No resource files are visible in the Xcode project, and if something is missing, no error can be seen. I understand you need to fine tune this build stage. In the Xcode project, there is a list of build stages; the last one is an execution of a bash script. What is does is to copy the resource files to the produced iOS application bundle, at the end of the compilation. Have a look at this file and make sure that the resources are found inside the produced *.app folder. |
From: William W. <flu...@gm...> - 2011-10-02 08:10:01
|
Thank you very much! I copied the resource files also to the Mac and edited the path in the XCode project and now it is working. It is a little awkward, but it will do for now. On Sat, Oct 1, 2011 at 1:56 AM, Panayotis Katsaloulis < pan...@pa...> wrote: > > On 1 Οκτ 2011, at 9:58 π.μ., William Wilson wrote: > > As for the relative vs absolute path issue, I really don't think that is > the issue, else I would expect an error in the build phase in Xcode. I > looked in the generated xcodeproj and found no references to any kind of xml > file, whether relative or absolute paths. In any case doing my Android > development on the Mac is a non starter even if I did think it would work. > > > This is the expected behavior. No resource files are visible in the Xcode > project, and if something is missing, no error can be seen. > > I understand you need to fine tune this build stage. > In the Xcode project, there is a list of build stages; the last one is an > execution of a bash script. What is does is to copy the resource files to > the produced iOS application bundle, at the end of the compilation. > Have a look at this file and make sure that the resources are found inside > the produced *.app folder. > > > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2dcopy2 > _______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users > > |