You can subscribe to this list here.
2009 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(29) |
Aug
(75) |
Sep
(32) |
Oct
(147) |
Nov
(31) |
Dec
(49) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2010 |
Jan
(46) |
Feb
(35) |
Mar
(148) |
Apr
(33) |
May
(53) |
Jun
(46) |
Jul
(60) |
Aug
(44) |
Sep
(135) |
Oct
(23) |
Nov
(68) |
Dec
(42) |
2011 |
Jan
(94) |
Feb
(55) |
Mar
(114) |
Apr
(78) |
May
(64) |
Jun
(10) |
Jul
(31) |
Aug
(2) |
Sep
(25) |
Oct
(13) |
Nov
(8) |
Dec
(24) |
2012 |
Jan
(5) |
Feb
(33) |
Mar
(31) |
Apr
(19) |
May
(24) |
Jun
(23) |
Jul
(14) |
Aug
(15) |
Sep
(12) |
Oct
(3) |
Nov
(4) |
Dec
(19) |
2013 |
Jan
(8) |
Feb
(20) |
Mar
(4) |
Apr
(2) |
May
(1) |
Jun
(2) |
Jul
|
Aug
(1) |
Sep
(2) |
Oct
(1) |
Nov
(4) |
Dec
|
2014 |
Jan
|
Feb
|
Mar
(6) |
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2015 |
Jan
(7) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(6) |
2016 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(3) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2019 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(2) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Panayotis K. <pan...@pa...> - 2011-05-19 23:35:45
|
I have two questions: 1) what is the reason of this variable static NSObject* dispatchObject = nil; in the NSObject class of the C backend? 2) I have a JAVA_OBJECT , say "o1" This object, (in java) it has a specific method, let's say public void myMethod(Object val) {..} How do I call this method from inside C, given I have the pointer o1 of this object? |
From: Alex L. <ale...@gm...> - 2011-05-19 18:38:36
|
Ah yes, take out the sleep and finished flag. Sorry that was mistakenly left in from other tests I had been trying. Without the sleep and finished flag the system output is still (when using the google url)... Received data [<!doctype html><html><head] Finish loading So looking at the implementation of NSURLConnection calling "connectionWithRequest" starts a new thread so the method calls should be asynchronous back to the delegate? So I would expect the "applicationDidFinishLaunching" method to finish quickly but whilst the NSURLConnection thread is running to get the output generated by the delegate. Looking at the code again I see there should be just the one "Received data" message followed by the "Finish Loading" message but there should be a lot more data in NSData's byte array. Thanks, Alex Just in case here's the modified code... @Override public void applicationDidFinishLaunching(UIApplication app) { try { final NSURL url = NSURL.URLWithString("http://www.google.com"); final NSMutableURLRequest req = new NSMutableURLRequest(url); NSURLConnectionDelegate delegate = new NSURLConnectionDelegate() { @Override public void connectionDidFailWithError( NSURLConnection connection, NSError error) { super.connectionDidFailWithError(connection, error); System.out.println("Error [" + error + "]"); } @Override public void connectionDidFinishLoading( NSURLConnection connection) { super.connectionDidFinishLoading(connection); System.out.println("Finish loading"); } @Override public void connectionDidReceiveData( NSURLConnection connection, NSData data) { super.connectionDidReceiveData(connection, data); System.out.println("Received data [" + new String(data.getBytes()) + "]"); } }; NSURLConnection.connectionWithRequest(req, delegate); } catch (Exception e) { System.err.println("Exception doing HTTP" + e); } } On 19 May 2011 18:05, Arno Puder <ar...@pu...> wrote: > > I'm not sure if you should do that sleep() in your code. The > NSURLConnection delegate will most likely be executed in the context of > the same thread that created it, but if you put that thread to sleep, > problems will occur. Basically you implemented a busy wait which is > never a good idea. This in not an XMLVM problem, IMHO. > > Arno > > > On 5/19/11 6:53 AM, Alex Lewis wrote: > > Hi, > > I wrote a very simple Java->iPhone application to open a connection > > and read the data in the response, but I found I only ever got back 26 > > bytes of data. Here's the simplest code I could put together which > > exhibits the problem... > > > > private boolean finished = false; > > @Override > > public void applicationDidFinishLaunching(UIApplication app) { > > try { > > final NSURL url = NSURL.URLWithString("http://www.google.com"); > > final NSMutableURLRequest req = new NSMutableURLRequest(url); > > NSURLConnectionDelegate delegate = new NSURLConnectionDelegate() { > > @Override > > public void connectionDidFailWithError( > > NSURLConnection connection, NSError error) { > > super.connectionDidFailWithError(connection, error); > > System.out.println("Error [" + error + "]"); > > } > > @Override > > public void connectionDidFinishLoading( > > NSURLConnection connection) { > > super.connectionDidFinishLoading(connection); > > finished = true; > > System.out.println("Finish loading"); > > } > > @Override > > public void connectionDidReceiveData( > > NSURLConnection connection, NSData data) { > > super.connectionDidReceiveData(connection, data); > > System.out.println("Received data [" + new String(data.getBytes()) + > "]"); > > } > > }; > > NSURLConnection.connectionWithRequest(req, delegate); > > // Wait until all the data has been received or we hit a > > 20s limit. > > int i = 0; > > while (!finished && i < 20) { > > Thread.sleep(1000); > > i++; > > } > > } > > catch (Exception e) { > > System.err.println("Exception doing HTTP" + e); > > } > > } > > > > I would have expected multiple "Received Data[.......]" messages but I > > only ever get one of 26 characters. I took a look at the NSData java > > class, specifically the readData method and I can see why it is failing. > > The do/while loop in there only continues to read data if its buffer has > > been filled and assumes that if the read() method returns a read count > > of less than the buffer size that all the data has been read. Using the > > code above the response contains an initial 26 bytes and consequently > > stops as the buffer in NSData has not been completely filled. I wrote an > > equivalent pure java application and it exhibits the same behaviour > > using the readData code. Rewriting the readData method so it keeps > > reading until -1 is returned and buffering the code appropriately > > retrieves all the data which is approximately 9k bytes. > > > > Is this a bug or have I done something wrong? Would the code work > > properly if the application were running on an iPhone rather than in the > > Emulator? > > > > Thanks, > > Alex > > > > > > > > > ------------------------------------------------------------------------------ > > What Every C/C++ and Fortran developer Should Know! > > Read this article and learn how Intel has extended the reach of its > > next-generation tools to help Windows* and Linux* C/C++ and Fortran > > developers boost performance applications - including clusters. > > http://p.sf.net/sfu/intel-dev2devmay > > > > > > > > _______________________________________________ > > xmlvm-users mailing list > > xml...@li... > > https://lists.sourceforge.net/lists/listinfo/xmlvm-users > > > ------------------------------------------------------------------------------ > What Every C/C++ and Fortran developer Should Know! > Read this article and learn how Intel has extended the reach of its > next-generation tools to help Windows* and Linux* C/C++ and Fortran > developers boost performance applications - including clusters. > http://p.sf.net/sfu/intel-dev2devmay > _______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users > |
From: Paul P. <bay...@gm...> - 2011-05-19 18:14:42
|
I agree with Arno about your use of sleep(). But if you insist, note that sleep() isn't yet implemented in the C backend. It will currently just return immediately, so while you're expecting a 20 second delay, you're getting something closer to 0 seconds. Aside from that, I intend to implement sleep(), wait(), notify(), interrupt(), etc. in the next few weeks in a similar fashion to what I had done for the Obj-C backend. Paul On Thu, May 19, 2011 at 12:05 PM, Arno Puder <ar...@pu...> wrote: > > I'm not sure if you should do that sleep() in your code. The > NSURLConnection delegate will most likely be executed in the context of > the same thread that created it, but if you put that thread to sleep, > problems will occur. Basically you implemented a busy wait which is > never a good idea. This in not an XMLVM problem, IMHO. > > Arno > > > On 5/19/11 6:53 AM, Alex Lewis wrote: > > Hi, > > I wrote a very simple Java->iPhone application to open a connection > > and read the data in the response, but I found I only ever got back 26 > > bytes of data. Here's the simplest code I could put together which > > exhibits the problem... > > > > private boolean finished = false; > > @Override > > public void applicationDidFinishLaunching(UIApplication app) { > > try { > > final NSURL url = NSURL.URLWithString("http://www.google.com"); > > final NSMutableURLRequest req = new NSMutableURLRequest(url); > > NSURLConnectionDelegate delegate = new NSURLConnectionDelegate() { > > @Override > > public void connectionDidFailWithError( > > NSURLConnection connection, NSError error) { > > super.connectionDidFailWithError(connection, error); > > System.out.println("Error [" + error + "]"); > > } > > @Override > > public void connectionDidFinishLoading( > > NSURLConnection connection) { > > super.connectionDidFinishLoading(connection); > > finished = true; > > System.out.println("Finish loading"); > > } > > @Override > > public void connectionDidReceiveData( > > NSURLConnection connection, NSData data) { > > super.connectionDidReceiveData(connection, data); > > System.out.println("Received data [" + new String(data.getBytes()) + > "]"); > > } > > }; > > NSURLConnection.connectionWithRequest(req, delegate); > > // Wait until all the data has been received or we hit a > > 20s limit. > > int i = 0; > > while (!finished && i < 20) { > > Thread.sleep(1000); > > i++; > > } > > } > > catch (Exception e) { > > System.err.println("Exception doing HTTP" + e); > > } > > } > > > > I would have expected multiple "Received Data[.......]" messages but I > > only ever get one of 26 characters. I took a look at the NSData java > > class, specifically the readData method and I can see why it is failing. > > The do/while loop in there only continues to read data if its buffer has > > been filled and assumes that if the read() method returns a read count > > of less than the buffer size that all the data has been read. Using the > > code above the response contains an initial 26 bytes and consequently > > stops as the buffer in NSData has not been completely filled. I wrote an > > equivalent pure java application and it exhibits the same behaviour > > using the readData code. Rewriting the readData method so it keeps > > reading until -1 is returned and buffering the code appropriately > > retrieves all the data which is approximately 9k bytes. > > > > Is this a bug or have I done something wrong? Would the code work > > properly if the application were running on an iPhone rather than in the > > Emulator? > > > > Thanks, > > Alex > > > > > > > > > ------------------------------------------------------------------------------ > > What Every C/C++ and Fortran developer Should Know! > > Read this article and learn how Intel has extended the reach of its > > next-generation tools to help Windows* and Linux* C/C++ and Fortran > > developers boost performance applications - including clusters. > > http://p.sf.net/sfu/intel-dev2devmay > > > > > > > > _______________________________________________ > > xmlvm-users mailing list > > xml...@li... > > https://lists.sourceforge.net/lists/listinfo/xmlvm-users > > > ------------------------------------------------------------------------------ > What Every C/C++ and Fortran developer Should Know! > Read this article and learn how Intel has extended the reach of its > next-generation tools to help Windows* and Linux* C/C++ and Fortran > developers boost performance applications - including clusters. > http://p.sf.net/sfu/intel-dev2devmay > _______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users > |
From: Arno P. <ar...@pu...> - 2011-05-19 17:13:24
|
On 5/19/11 12:28 AM, Markus Balsam wrote: > Hello Arno, > > first of all thanks for your quick response! > > to 1. I am aware that I can see the API in the locations you mentioned. > I asked that question with some written/detailed documentation in mind. > But I guess the official Android/iOS documentations will be ok. I would consider this a key aspect of XMLVM: you can use the official Android and iOS documentation. > to 2. I know that your API doesn't feature all the Cocoa classes and I > am sure that your API is correct. What I really wanted to know was if > the classes themselves are complete, meaning that for example your > WebView implementation features ALL the methods the UIWebView class has. Not every compatibility class has all the methods. You will need to check that with the official documentation. > to 4. In my case it is very important that I can send http requests and > handle either json or xml responses. Is that possible with your current API? HTTP requests are supported. We are currently working on XML parsing support for the C backend. For json I imagine it is just a matter of including an appropriate implementation via --in=json-impl.jar Arno |
From: Arno P. <ar...@pu...> - 2011-05-19 17:06:07
|
I'm not sure if you should do that sleep() in your code. The NSURLConnection delegate will most likely be executed in the context of the same thread that created it, but if you put that thread to sleep, problems will occur. Basically you implemented a busy wait which is never a good idea. This in not an XMLVM problem, IMHO. Arno On 5/19/11 6:53 AM, Alex Lewis wrote: > Hi, > I wrote a very simple Java->iPhone application to open a connection > and read the data in the response, but I found I only ever got back 26 > bytes of data. Here's the simplest code I could put together which > exhibits the problem... > > private boolean finished = false; > @Override > public void applicationDidFinishLaunching(UIApplication app) { > try { > final NSURL url = NSURL.URLWithString("http://www.google.com"); > final NSMutableURLRequest req = new NSMutableURLRequest(url); > NSURLConnectionDelegate delegate = new NSURLConnectionDelegate() { > @Override > public void connectionDidFailWithError( > NSURLConnection connection, NSError error) { > super.connectionDidFailWithError(connection, error); > System.out.println("Error [" + error + "]"); > } > @Override > public void connectionDidFinishLoading( > NSURLConnection connection) { > super.connectionDidFinishLoading(connection); > finished = true; > System.out.println("Finish loading"); > } > @Override > public void connectionDidReceiveData( > NSURLConnection connection, NSData data) { > super.connectionDidReceiveData(connection, data); > System.out.println("Received data [" + new String(data.getBytes()) + "]"); > } > }; > NSURLConnection.connectionWithRequest(req, delegate); > // Wait until all the data has been received or we hit a > 20s limit. > int i = 0; > while (!finished && i < 20) { > Thread.sleep(1000); > i++; > } > } > catch (Exception e) { > System.err.println("Exception doing HTTP" + e); > } > } > > I would have expected multiple "Received Data[.......]" messages but I > only ever get one of 26 characters. I took a look at the NSData java > class, specifically the readData method and I can see why it is failing. > The do/while loop in there only continues to read data if its buffer has > been filled and assumes that if the read() method returns a read count > of less than the buffer size that all the data has been read. Using the > code above the response contains an initial 26 bytes and consequently > stops as the buffer in NSData has not been completely filled. I wrote an > equivalent pure java application and it exhibits the same behaviour > using the readData code. Rewriting the readData method so it keeps > reading until -1 is returned and buffering the code appropriately > retrieves all the data which is approximately 9k bytes. > > Is this a bug or have I done something wrong? Would the code work > properly if the application were running on an iPhone rather than in the > Emulator? > > Thanks, > Alex > > > > ------------------------------------------------------------------------------ > What Every C/C++ and Fortran developer Should Know! > Read this article and learn how Intel has extended the reach of its > next-generation tools to help Windows* and Linux* C/C++ and Fortran > developers boost performance applications - including clusters. > http://p.sf.net/sfu/intel-dev2devmay > > > > _______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users |
From: Arno P. <ar...@pu...> - 2011-05-19 17:02:29
|
just to add a few things from my side: On 5/18/11 7:22 AM, Kevin Glass wrote: > So, I've been working away on my little games using the Objective-C > backend. I'm quite comfortable fiddling around with it and the > objc-comatlib. However, I'd like to keep up to date, so I'd like to move > to the posix backend. I have a few questions: > > - Do I still write against the Objective C compatibility libraries, I > can't find any Java classes in the xml2c compatibility library? As Markus pointed out, we still use the same Cocoa Java classes in xmlvm/src/xmlvm2objc/compat-lib/java. They should (and eventually will) be moved to a different directory since their implementation is not dependent on the kind of backend. > - Will I get a performance increase in moving? I seem to remember you > were going from a stack based to a register based implementation for posix. In general, I believe so. We do some funky optimizations such as selector coloring and vtable reductions. > - How do I switch over, is it just a matter of changing the target or is > the output completely different? For iOS projects: --target=iphonec For Android projects: --target=iphonecandroid > - Does it still output an xcode project - which I mangle :) Yes, same as before. > - Are there missing bits from the posix backend that I'll need? (OpenGL, > Sound Calls, Network, Resource access, Input). There are still quite a few wrapper missing. However, those can usually be easily adopted from the Objective-C backend. In other cases, the C backend outpasses the Objective-C backend (e.g., full support of the standard J2SE API by the C backend) Arno |
From: Alex L. <ale...@gm...> - 2011-05-19 13:53:41
|
Hi, I wrote a very simple Java->iPhone application to open a connection and read the data in the response, but I found I only ever got back 26 bytes of data. Here's the simplest code I could put together which exhibits the problem... private boolean finished = false; @Override public void applicationDidFinishLaunching(UIApplication app) { try { final NSURL url = NSURL.URLWithString("http://www.google.com"); final NSMutableURLRequest req = new NSMutableURLRequest(url); NSURLConnectionDelegate delegate = new NSURLConnectionDelegate() { @Override public void connectionDidFailWithError( NSURLConnection connection, NSError error) { super.connectionDidFailWithError(connection, error); System.out.println("Error [" + error + "]"); } @Override public void connectionDidFinishLoading( NSURLConnection connection) { super.connectionDidFinishLoading(connection); finished = true; System.out.println("Finish loading"); } @Override public void connectionDidReceiveData( NSURLConnection connection, NSData data) { super.connectionDidReceiveData(connection, data); System.out.println("Received data [" + new String(data.getBytes()) + "]"); } }; NSURLConnection.connectionWithRequest(req, delegate); // Wait until all the data has been received or we hit a 20s limit. int i = 0; while (!finished && i < 20) { Thread.sleep(1000); i++; } } catch (Exception e) { System.err.println("Exception doing HTTP" + e); } } I would have expected multiple "Received Data[.......]" messages but I only ever get one of 26 characters. I took a look at the NSData java class, specifically the readData method and I can see why it is failing. The do/while loop in there only continues to read data if its buffer has been filled and assumes that if the read() method returns a read count of less than the buffer size that all the data has been read. Using the code above the response contains an initial 26 bytes and consequently stops as the buffer in NSData has not been completely filled. I wrote an equivalent pure java application and it exhibits the same behaviour using the readData code. Rewriting the readData method so it keeps reading until -1 is returned and buffering the code appropriately retrieves all the data which is approximately 9k bytes. Is this a bug or have I done something wrong? Would the code work properly if the application were running on an iPhone rather than in the Emulator? Thanks, Alex |
From: Markus B. <mar...@go...> - 2011-05-19 07:28:56
|
Hello Arno, first of all thanks for your quick response! to 1. I am aware that I can see the API in the locations you mentioned. I asked that question with some written/detailed documentation in mind. But I guess the official Android/iOS documentations will be ok. to 2. I know that your API doesn't feature all the Cocoa classes and I am sure that your API is correct. What I really wanted to know was if the classes themselves are complete, meaning that for example your WebView implementation features ALL the methods the UIWebView class has. to 3. Nice to 4. In my case it is very important that I can send http requests and handle either json or xml responses. Is that possible with your current API? to 5. My question could've been more specific ;) But I didn't have anything too specific in mind. It was more about common feautures like networking, local data storage (e.g. SQLite) that can't be done with xmlvm. Markus 2011/5/17 Arno Puder <ar...@pu...> > > > On 5/17/11 12:35 AM, Markus Balsam wrote: > > 1. Is there any type of documentation available for the android/cocoa > > compatibilty libs (javadoc or something) > > You can see the Cocoa Touch API that XMLVM supports in > xmlvm/src/xmlvm2objc/compat-lib/java. Similarly, the Android API > supported by XMLVM can be found in xmlvm/src/android2iphone. > > > 2. Is the featured subset of classes in the cocoa lib complete, i.e. do > > those classes offer the same functionality as their objective-c > > counterparts (that would make it possible to consult the apple docs for > > reference)? > > You mix completeness with correctness. XMLVM implements the Cocoa Touch > API correctly (which is to say, you can consult the Apple documentation) > but we are not complete. However, the most important API is present. > > > 3. Are there any limitations with respect to event handling (especially > > touch/swipe etc.)? > > No. > > > 4. Is it possible to use the 3rd party libraries shipping with Android > > (apache http, json etc.)? If not, is there any other way of dealing with > > networking or parsing json/xml etc.? > > In theory, yes. We are migrating to the new C backend. It is much more > complete than the old Objective-C backend. E.g., we can cross-compile > Apache Harmony for complete J2SE compliance with the C backend (which > cannot be done with the Objective-C backend). > > > 5. Are there any other limitations? > > Probably many, but you have to be specific. XMLVM is Open Source and > lives by contributions made by volunteers. We always welcome patches to > push the envelope with XMLVM. > > Arno > > > ------------------------------------------------------------------------------ > What Every C/C++ and Fortran developer Should Know! > Read this article and learn how Intel has extended the reach of its > next-generation tools to help Windows* and Linux* C/C++ and Fortran > developers boost performance applications - including clusters. > http://p.sf.net/sfu/intel-dev2devmay > _______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users > |
From: Markus H. <ma...@ti...> - 2011-05-18 15:02:24
|
Hi, Am 18.05.2011 um 16:22 schrieb Kevin Glass: > So, I've been working away on my little games using the Objective-C backend. I'm quite comfortable fiddling around with it and the objc-comatlib. However, I'd like to keep up to date, so I'd like to move to the posix backend. I have a few questions: > > - Do I still write against the Objective C compatibility libraries, I can't find any Java classes in the xml2c compatibility library? Yes you are using the same Java compatibility classes. > - Will I get a performance increase in moving? I seem to remember you were going from a stack based to a register based implementation for posix. CanÄt answer that, but you get garbage collection and don't need to release objects yourself anymore. > - How do I switch over, is it just a matter of changing the target or is the output completely different? replace the target iphone with target iphonec. > - Does it still output an xcode project - which I mangle :) yes. > - Are there missing bits from the posix backend that I'll need? (OpenGL, Sound Calls, Network, Resource access, Input). There is probably much missing, but it gets better every day. :) > > Thanks for any input, > > Kev > ------------------------------------------------------------------------------ > What Every C/C++ and Fortran developer Should Know! > Read this article and learn how Intel has extended the reach of its > next-generation tools to help Windows* and Linux* C/C++ and Fortran > developers boost performance applications - including clusters. > http://p.sf.net/sfu/intel-dev2devmay_______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users |
From: Kevin G. <ke...@co...> - 2011-05-18 14:23:01
|
So, I've been working away on my little games using the Objective-C backend. I'm quite comfortable fiddling around with it and the objc-comatlib. However, I'd like to keep up to date, so I'd like to move to the posix backend. I have a few questions: - Do I still write against the Objective C compatibility libraries, I can't find any Java classes in the xml2c compatibility library? - Will I get a performance increase in moving? I seem to remember you were going from a stack based to a register based implementation for posix. - How do I switch over, is it just a matter of changing the target or is the output completely different? - Does it still output an xcode project - which I mangle :) - Are there missing bits from the posix backend that I'll need? (OpenGL, Sound Calls, Network, Resource access, Input). Thanks for any input, Kev |
From: Alex L. <ale...@gm...> - 2011-05-18 12:53:32
|
Once again thank you Arno, I will try using the C backend and writing the application in pure J2SE. Thanks, Alex On 17 May 2011 22:07, Arno Puder <ar...@pu...> wrote: > > we have just gotten the Socket API working with the C backend. You should > be able to use the full HTTP API that J2SE has to offer (with the C > backend). > > Arno > > > > On 5/17/11 1:25 AM, Alex Lewis wrote: > >> Thank you Arno for your help and prompt response it is very much >> appreciated. >> >> Are there any options available to me apart from changing my code to use >> only the XMLVM API? I noticed that HttpGet in XMLVM looks mostly >> unimplemented and looking at the SVN history it seems to suggest it is >> just skeleton code. Is this the case or is it the >> conversion/transformation process which injects the implementation? >> >> I'm just trying to work out whether XMLVM is going to be an option for >> me and whether I could implement the code I require in XMLVM as well as >> gauging how long that would take me. >> >> Once again thank you for your help. >> >> Thanks, >> Alex >> >> On 16 May 2011 18:03, Arno Puder <ar...@pu... >> <mailto:ar...@pu...>> wrote: >> >> >> the two classes you have mentioned are not yet supported in XMLVM's >> Android Compat Lib. If you check the folder xmlvm/src/android2iphone, >> you can see which API is currently supported. >> >> Arno >> >> >> On 5/16/11 9:25 AM, Alex Lewis wrote: >> > Hi, >> > I'm very new to XMLVM so please forgive me if I'm asking a stupid >> > question. I'm attempting to convert an android application I have >> which >> > makes use of android.os.AsyncTask and >> > org.apache.http.client.methods.HttpDelete which are both missing >> from >> > XMLVM as far as I can see. Is it correct that they have not been >> > implemented in XMLVM or have I missed something? If there isn't an >> > implementation please can someone advise me as to how I would get my >> > application working. Do I need to create implementations for the >> missing >> > classes for XMLVM, import the android source for those classes into >> > XMLVM or something else? >> > >> > Thank you in advance for your help. >> > >> > Many Thanks, >> > Alex >> > >> > >> > >> > >> >> ------------------------------------------------------------------------------ >> > Achieve unprecedented app performance and reliability >> > What every C/C++ and Fortran developer should know. >> > Learn how Intel has extended the reach of its next-generation tools >> > to help boost performance applications - inlcuding clusters. >> > http://p.sf.net/sfu/intel-dev2devmay >> > >> > >> > >> > _______________________________________________ >> > xmlvm-users mailing list >> > xml...@li... >> <mailto:xml...@li...> >> >> > https://lists.sourceforge.net/lists/listinfo/xmlvm-users >> >> >> ------------------------------------------------------------------------------ >> Achieve unprecedented app performance and reliability >> What every C/C++ and Fortran developer should know. >> Learn how Intel has extended the reach of its next-generation tools >> to help boost performance applications - inlcuding clusters. >> http://p.sf.net/sfu/intel-dev2devmay >> _______________________________________________ >> xmlvm-users mailing list >> xml...@li... >> <mailto:xml...@li...> >> >> https://lists.sourceforge.net/lists/listinfo/xmlvm-users >> >> >> |
From: Arno P. <ar...@pu...> - 2011-05-17 21:07:25
|
we have just gotten the Socket API working with the C backend. You should be able to use the full HTTP API that J2SE has to offer (with the C backend). Arno On 5/17/11 1:25 AM, Alex Lewis wrote: > Thank you Arno for your help and prompt response it is very much > appreciated. > > Are there any options available to me apart from changing my code to use > only the XMLVM API? I noticed that HttpGet in XMLVM looks mostly > unimplemented and looking at the SVN history it seems to suggest it is > just skeleton code. Is this the case or is it the > conversion/transformation process which injects the implementation? > > I'm just trying to work out whether XMLVM is going to be an option for > me and whether I could implement the code I require in XMLVM as well as > gauging how long that would take me. > > Once again thank you for your help. > > Thanks, > Alex > > On 16 May 2011 18:03, Arno Puder <ar...@pu... > <mailto:ar...@pu...>> wrote: > > > the two classes you have mentioned are not yet supported in XMLVM's > Android Compat Lib. If you check the folder xmlvm/src/android2iphone, > you can see which API is currently supported. > > Arno > > > On 5/16/11 9:25 AM, Alex Lewis wrote: > > Hi, > > I'm very new to XMLVM so please forgive me if I'm asking a stupid > > question. I'm attempting to convert an android application I have > which > > makes use of android.os.AsyncTask and > > org.apache.http.client.methods.HttpDelete which are both missing from > > XMLVM as far as I can see. Is it correct that they have not been > > implemented in XMLVM or have I missed something? If there isn't an > > implementation please can someone advise me as to how I would get my > > application working. Do I need to create implementations for the > missing > > classes for XMLVM, import the android source for those classes into > > XMLVM or something else? > > > > Thank you in advance for your help. > > > > Many Thanks, > > Alex > > > > > > > > > ------------------------------------------------------------------------------ > > Achieve unprecedented app performance and reliability > > What every C/C++ and Fortran developer should know. > > Learn how Intel has extended the reach of its next-generation tools > > to help boost performance applications - inlcuding clusters. > > http://p.sf.net/sfu/intel-dev2devmay > > > > > > > > _______________________________________________ > > xmlvm-users mailing list > > xml...@li... > <mailto:xml...@li...> > > https://lists.sourceforge.net/lists/listinfo/xmlvm-users > > ------------------------------------------------------------------------------ > Achieve unprecedented app performance and reliability > What every C/C++ and Fortran developer should know. > Learn how Intel has extended the reach of its next-generation tools > to help boost performance applications - inlcuding clusters. > http://p.sf.net/sfu/intel-dev2devmay > _______________________________________________ > xmlvm-users mailing list > xml...@li... > <mailto:xml...@li...> > https://lists.sourceforge.net/lists/listinfo/xmlvm-users > > |
From: Arno P. <ar...@pu...> - 2011-05-17 21:05:26
|
On 5/17/11 12:35 AM, Markus Balsam wrote: > 1. Is there any type of documentation available for the android/cocoa > compatibilty libs (javadoc or something) You can see the Cocoa Touch API that XMLVM supports in xmlvm/src/xmlvm2objc/compat-lib/java. Similarly, the Android API supported by XMLVM can be found in xmlvm/src/android2iphone. > 2. Is the featured subset of classes in the cocoa lib complete, i.e. do > those classes offer the same functionality as their objective-c > counterparts (that would make it possible to consult the apple docs for > reference)? You mix completeness with correctness. XMLVM implements the Cocoa Touch API correctly (which is to say, you can consult the Apple documentation) but we are not complete. However, the most important API is present. > 3. Are there any limitations with respect to event handling (especially > touch/swipe etc.)? No. > 4. Is it possible to use the 3rd party libraries shipping with Android > (apache http, json etc.)? If not, is there any other way of dealing with > networking or parsing json/xml etc.? In theory, yes. We are migrating to the new C backend. It is much more complete than the old Objective-C backend. E.g., we can cross-compile Apache Harmony for complete J2SE compliance with the C backend (which cannot be done with the Objective-C backend). > 5. Are there any other limitations? Probably many, but you have to be specific. XMLVM is Open Source and lives by contributions made by volunteers. We always welcome patches to push the envelope with XMLVM. Arno |
From: Alex L. <ale...@gm...> - 2011-05-17 08:26:09
|
Thank you Arno for your help and prompt response it is very much appreciated. Are there any options available to me apart from changing my code to use only the XMLVM API? I noticed that HttpGet in XMLVM looks mostly unimplemented and looking at the SVN history it seems to suggest it is just skeleton code. Is this the case or is it the conversion/transformation process which injects the implementation? I'm just trying to work out whether XMLVM is going to be an option for me and whether I could implement the code I require in XMLVM as well as gauging how long that would take me. Once again thank you for your help. Thanks, Alex On 16 May 2011 18:03, Arno Puder <ar...@pu...> wrote: > > the two classes you have mentioned are not yet supported in XMLVM's > Android Compat Lib. If you check the folder xmlvm/src/android2iphone, > you can see which API is currently supported. > > Arno > > > On 5/16/11 9:25 AM, Alex Lewis wrote: > > Hi, > > I'm very new to XMLVM so please forgive me if I'm asking a stupid > > question. I'm attempting to convert an android application I have which > > makes use of android.os.AsyncTask and > > org.apache.http.client.methods.HttpDelete which are both missing from > > XMLVM as far as I can see. Is it correct that they have not been > > implemented in XMLVM or have I missed something? If there isn't an > > implementation please can someone advise me as to how I would get my > > application working. Do I need to create implementations for the missing > > classes for XMLVM, import the android source for those classes into > > XMLVM or something else? > > > > Thank you in advance for your help. > > > > Many Thanks, > > Alex > > > > > > > > > ------------------------------------------------------------------------------ > > Achieve unprecedented app performance and reliability > > What every C/C++ and Fortran developer should know. > > Learn how Intel has extended the reach of its next-generation tools > > to help boost performance applications - inlcuding clusters. > > http://p.sf.net/sfu/intel-dev2devmay > > > > > > > > _______________________________________________ > > xmlvm-users mailing list > > xml...@li... > > https://lists.sourceforge.net/lists/listinfo/xmlvm-users > > > ------------------------------------------------------------------------------ > Achieve unprecedented app performance and reliability > What every C/C++ and Fortran developer should know. > Learn how Intel has extended the reach of its next-generation tools > to help boost performance applications - inlcuding clusters. > http://p.sf.net/sfu/intel-dev2devmay > _______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users > |
From: Markus B. <mar...@go...> - 2011-05-17 07:35:14
|
Hello, I am evaluating different methods of mobile cross-platform development as part of my master thesis. At a first glance, with its cocoa compatibility lib, xmlvm seems to be the best alternative but since the API documentation is somewhat limited I am not sure whether it is as powerful as it appears. Therefore I have a couple of questions: 1. Is there any type of documentation available for the android/cocoa compatibilty libs (javadoc or something) 2. Is the featured subset of classes in the cocoa lib complete, i.e. do those classes offer the same functionality as their objective-c counterparts (that would make it possible to consult the apple docs for reference)? 3. Are there any limitations with respect to event handling (especially touch/swipe etc.)? 4. Is it possible to use the 3rd party libraries shipping with Android (apache http, json etc.)? If not, is there any other way of dealing with networking or parsing json/xml etc.? 5. Are there any other limitations? I hope that somebody here can answer my questions. Keep up the good work! Best regards Markus |
From: Bhavani S <bha...@en...> - 2011-05-17 05:53:25
|
hi all, I am new to XMLVM. Can anyone please tell me the next procedure. I ran the following commands 1. svn co https://xmlvm.svn.sourceforge.net/svnroot/xmlvm/trunk/xmlvm 2. cd xmlvm 3. ant Now i m not getting which command to use. My actual intension is to convert Android application to iPhone application using XMLVM. And i am following the details at xmlvm.org. How to modify properties/local.properties file? Thank you in advance for your help. Many Thanks, bhavani. |
From: Arno P. <ar...@pu...> - 2011-05-16 17:04:07
|
the two classes you have mentioned are not yet supported in XMLVM's Android Compat Lib. If you check the folder xmlvm/src/android2iphone, you can see which API is currently supported. Arno On 5/16/11 9:25 AM, Alex Lewis wrote: > Hi, > I'm very new to XMLVM so please forgive me if I'm asking a stupid > question. I'm attempting to convert an android application I have which > makes use of android.os.AsyncTask and > org.apache.http.client.methods.HttpDelete which are both missing from > XMLVM as far as I can see. Is it correct that they have not been > implemented in XMLVM or have I missed something? If there isn't an > implementation please can someone advise me as to how I would get my > application working. Do I need to create implementations for the missing > classes for XMLVM, import the android source for those classes into > XMLVM or something else? > > Thank you in advance for your help. > > Many Thanks, > Alex > > > > ------------------------------------------------------------------------------ > Achieve unprecedented app performance and reliability > What every C/C++ and Fortran developer should know. > Learn how Intel has extended the reach of its next-generation tools > to help boost performance applications - inlcuding clusters. > http://p.sf.net/sfu/intel-dev2devmay > > > > _______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users |
From: Alex L. <ale...@gm...> - 2011-05-16 16:25:33
|
Hi, I'm very new to XMLVM so please forgive me if I'm asking a stupid question. I'm attempting to convert an android application I have which makes use of android.os.AsyncTask and org.apache.http.client.methods.HttpDelete which are both missing from XMLVM as far as I can see. Is it correct that they have not been implemented in XMLVM or have I missed something? If there isn't an implementation please can someone advise me as to how I would get my application working. Do I need to create implementations for the missing classes for XMLVM, import the android source for those classes into XMLVM or something else? Thank you in advance for your help. Many Thanks, Alex |
From: Domenico De F. <dom...@gm...> - 2011-05-14 13:47:39
|
Hi all, I'm trying to compile my application agains the C backend using the iphonec target. I'm doing it from the command line as Arno suggested, using the build folder produced by the compilation of the project using eclipse. When I open the resulted xcode project and try to run it, I get the following errors: CompileC build/CMTiOS.build/Debug-iphonesimulator/CMTiOS.build/Objects-normal/i386/org_xmlvm_iphone_MKMapRect.o ../build/xcode/src/app/org_xmlvm_iphone_MKMapRect.m normal i386 objective-c com.apple.compilers.gcc.4_2 cd /Users/gwythen/AMAK/CMTiOS/dist setenv LANG en_US.US-ASCII setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 -x objective-c -arch i386 -fmessage-length=0 -pipe -std=c99 -Wno-trigraphs -fpascal-strings -fasm-blocks -O0 -Wreturn-type -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.2.sdk -fexceptions -fvisibility=hidden -mmacosx-version-min=10.6 -gdwarf-2 -fobjc-abi-version=2 -fobjc-legacy-dispatch -D__IPHONE_OS_VERSION_MIN_REQUIRED=30100 -iquote /Users/gwythen/AMAK/CMTiOS/dist/build/CMTiOS.build/Debug-iphonesimulator/CMTiOS.build/CMTiOS-generated-files.hmap -I/Users/gwythen/AMAK/CMTiOS/dist/build/CMTiOS.build/Debug-iphonesimulator/CMTiOS.build/CMTiOS-own-target-headers.hmap -I/Users/gwythen/AMAK/CMTiOS/dist/build/CMTiOS.build/Debug-iphonesimulator/CMTiOS.build/CMTiOS-all-target-headers.hmap -iquote /Users/gwythen/AMAK/CMTiOS/dist/build/CMTiOS.build/Debug-iphonesimulator/CMTiOS.build/CMTiOS-project-headers.hmap -F/Users/gwythen/AMAK/CMTiOS/dist/build/Debug-iphonesimulator -I/Users/gwythen/AMAK/CMTiOS/dist/build/Debug-iphonesimulator/include -I../build/xcode/src/lib/boehmgc/libatomic_ops/src -I../build/xcode/src/lib/boehmgc/libatomic_ops/src/atomic_ops -I../build/xcode/src/lib/boehmgc/libatomic_ops/src/atomic_ops/sysdeps -I../build/xcode/src/lib/boehmgc/libatomic_ops/src/atomic_ops/sysdeps/armcc -I../build/xcode/src/lib/boehmgc/libatomic_ops/src/atomic_ops/sysdeps/gcc -I../build/xcode/src/lib/boehmgc/libatomic_ops/src/atomic_ops/sysdeps/hpc -I../build/xcode/src/lib/boehmgc/libatomic_ops/src/atomic_ops/sysdeps/ibmc -I../build/xcode/src/lib/boehmgc/libatomic_ops/src/atomic_ops/sysdeps/icc -I../build/xcode/src/lib/boehmgc/libatomic_ops/src/atomic_ops/sysdeps/msftc -I../build/xcode/src/lib/boehmgc/libatomic_ops/src/atomic_ops/sysdeps/sunc -I../build/xcode/src/lib/boehmgc/include -I../build/xcode/src/lib/boehmgc/include/private -I/Users/gwythen/AMAK/CMTiOS/dist/build/CMTiOS.build/Debug-iphonesimulator/CMTiOS.build/DerivedSources/i386 -I/Users/gwythen/AMAK/CMTiOS/dist/build/CMTiOS.build/Debug-iphonesimulator/CMTiOS.build/DerivedSources -c /Users/gwythen/AMAK/CMTiOS/dist/../build/xcode/src/app/org_xmlvm_iphone_MKMapRect.m -o /Users/gwythen/AMAK/CMTiOS/dist/build/CMTiOS.build/Debug-iphonesimulator/CMTiOS.build/Objects-normal/i386/org_xmlvm_iphone_MKMapRect.o /Users/gwythen/AMAK/CMTiOS/dist/../build/xcode/src/app/org_xmlvm_iphone_MKMapRect.m:2:41: error: org_xmlvm_iphone_MKMapPoint.h: No such file or directory /Users/gwythen/AMAK/CMTiOS/dist/../build/xcode/src/app/org_xmlvm_iphone_MKMapRect.m:3:40: error: org_xmlvm_iphone_MKMapSize.h: No such file or directory /Users/gwythen/AMAK/CMTiOS/dist/../build/xcode/src/app/org_xmlvm_iphone_MKMapRect.m:31: error: '__CLASS_org_xmlvm_iphone_MKMapPoint' undeclared here (not in a function) /Users/gwythen/AMAK/CMTiOS/dist/../build/xcode/src/app/org_xmlvm_iphone_MKMapRect.m:38: error: '__CLASS_org_xmlvm_iphone_MKMapSize' undeclared here (not in a function) It must be something trivial, yet I don't know what it is. In fact, I don't have the MKMapPoint and MKMapSize classes in the list of the xcode project files, although I have them in the xmlvm compatibility libraries. It's my first approach with the C backend, so I'm probably doing something wrong. Thanks, Domenico De Fano -- Domenico De Fano |
From: Panayotis K. <pan...@pa...> - 2011-05-13 22:42:27
|
Since it seems there is a need for a simpler way to launch XMLVM, the latest SVN version has support of properly installing/uninstalling XMLVM. The installation procedure is simple: 1) Edit file "properties/local.properties" (or create it if it does not exist). Define there the destination prefix of XMLVM with the variable "xmlvm.install". If you do not define a specific location, the default installation path would be "/usr/local". For example, to install it under your home directory, add the following entry: xmlvm.install=${user.home}/xmlvm 2) Type "ant install" XMLVM will be installed under DESTINATION/lib/xmlvm/xmlvm.jar and DESTINATION/bin/xmlvm Make sure that you have write permissions on the destination paths, e.g. run the target as root. The executable is found under DESTINATION/bin/xmlvm The uninstall procedure is similar. Just type ant uninstall Make sure again that you have write permissions. |
From: <D.D...@ak...> - 2011-05-12 08:57:56
|
<font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2"><div>Hi all,<br><br>Just to let you know how I solved my issue, in case you need it too:<br><br>1) To address the path of the resources folder, I use<br> <br> <font><font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2">NSBunde.mainBundle.bundlePath</font></font><br> <br> this returns the path of my .app package, containing all the necessary files for the application. It works <br> like a charm on both the simulator and the device, I tried it on different machines too.<br><br>2) The append of the "/res/" (or whatever the resources folder is called) to the previous depends, if I well understood,<br> on the way I configure the xmlvm.resource option. That is, if I set it to be "res/", then the .app file<br> will contain a folder named res totally equivalent to the original one. If I set it to be "res", then the subfolders and files<br> contained in it will be directly copied in the .app package. Thus, I don't need to add the "/res/" part to the path<br> when addressing files.<br><br>3) It is possible to set the xmlvm.resource property both whil creating the project, through the --resource argument,<br> or by setting the xmlvm.resource entry in the xmlvm.properties file of an existing project.<br><br>4) I don't need to specify the bundlePath if I want to load images through the UIImage class. In that case, I only need<br> the path starting from the bundlePath (e.g: "res/myImages/file.jpg" or "myImages/file.jpg depending on the cases discussed above).<br><br>Hope this helps!<br><br>Domenico<br><br><br><br></div><font color="#990099">-----Transféré par Dominico DE FANO/FR/AKKA le 12/05/2011 10:12 -----<br><br></font><blockquote style="padding-right:0px;padding-left:5px;margin-left:5px;border-left:#000000 2px solid;margin-right:0px">A : Panayotis Katsaloulis <a class="moz-txt-link-rfc2396E" href="mailto:pan...@pa..."><pan...@pa...></a><br>De : Dominico DE FANO/FR/AKKA<br>Date : 10/05/2011 12:33<br>Objet : Re: [xmlvm-users] [xmlvm-dev] Files path<br><br><font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2"><div>Hi,<br><br>That is exactly what I wanted to try, to see what happens by removing the "/".<br>But nothing happened, and the app worked as usual.<br><br><br></div><font color="#990099">-----Panayotis Katsaloulis <a class="moz-txt-link-rfc2396E" href="mailto:pan...@pa..."><pan...@pa...></a> a écrit : -----<br><br></font><blockquote style="padding-right:0px;padding-left:5px;margin-left:5px;border-left:#000000 2px solid;margin-right:0px">A : XMLVM User <a class="moz-txt-link-rfc2396E" href="mailto:xml...@li..."><xml...@li...></a><br>De : Panayotis Katsaloulis <a class="moz-txt-link-rfc2396E" href="mailto:pan...@pa..."><pan...@pa...></a><br>Date : 10/05/2011 12:20<br>Objet : Re: [xmlvm-users] [xmlvm-dev] Files path<br><br><br><div><div>On 10 Μαϊ 2011, at 12:50 μ.μ., <a href="mailto:D.D...@ak...">D.D...@ak...</a> wrote:</div><br><blockquote type="cite"><font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2"><div>If I check the project, I have a resources folder that only contains the demo.png file, while<br>the xmlvm.properties file has the entry<br><br>xmlvm.resource=resources/ <br><br>Obviously it didn't take into account my resources. How should it behave instead? <br>Should it copy my files into the resources/ folder? Can I do it manually?<br>That's what I did previously and it works, as far as I use images. If I try to read a file<br>instead, I get the error I wrote you about. I don't know if the things are connected.<br>It may be useful to know that mu res/ folder contains subdirectories which contain the needed files<br><br>I also tried to modify the resource path to <br><br>xmlvm.resource=res<br><br></div></font></blockquote><div><br></div><div><br></div><div>Notice, one entry has a "/" and the other has not.</div><div>If you see the help file of xmlvm (or the online documentation), you'll see that the "/" is important at the end.</div><div><br></div></div><font face="Courier New,Courier,monospace" size="3">------------------------------------------------------------------------------<br>Achieve unprecedented app performance and reliability<br>What every C/C++ and Fortran developer should know.<br>Learn how Intel has extended the reach of its next-generation tools<br>to help boost performance applications - inlcuding clusters.<br><a href="http://p.sf.net/sfu/intel-dev2devmay">http://p.sf.net/sfu/intel-dev2devmay</a></font><font face="Courier New,Courier,monospace" size="3">_______________________________________________<br>xmlvm-users mailing list<br><a class="moz-txt-link-abbreviated" href="mailto:xml...@li...">xml...@li...</a><br><a href="https://lists.sourceforge.net/lists/listinfo/xmlvm-users">https://lists.sourceforge.net/lists/listinfo/xmlvm-users</a><br></font> </blockquote><br></font> </blockquote><br></font> |
From: cpsingh <cp...@ak...> - 2011-05-12 05:25:14
|
Hi Arno Thank you very much for the prompt reply. I have a pure java API and I am converting this API in Iphone. Can u please let me know the conversion should be done in Mac or Windows? It is not compiling the java code converted in Iphone produced in the Windows platform. Is there any kind of difference between the Iphone code produced in windows platform or Mac Platform Thanks CP ----- Original Message ----- From: "Arno Puder" <ar...@pu...> To: <xml...@li...> Sent: Thursday, May 12, 2011 10:31 Subject: Re: [xmlvm-users] [xmlvm-dev] Files path > > you should create the Xcode project on a Mac platform. If you run XMLVM > on a Windows box, it will also use Windows-style conventions (such as > '\' instead of '/'). As the for code instructions, well how about > telling us which byte code instructions are missing? :) > > Arno > > > On 5/10/11 12:50 PM, cpsingh wrote: >> Hi >> Anyone can help me in compiling the Java code to Iphone. I am able to >> compile the jave code in iphone app. I am using the Windows platform and >> it is generating the Iphone app without any error. But when i am >> deploying the application Mac Book using the guide provided in the >> xmlvm.org then xcode is giving so many errors. I am able to remove the >> errors also by removing some of the files which are creating problem. >> Now when i am trying to run the code in IPhone simulator then it is >> giving missing byte code. Can u please help me out from this problem >> Regards >> CP Singh >> >> ----- Original Message ----- >> *From:* D.D...@ak... <mailto:D.D...@ak...> >> *To:* Panayotis Katsaloulis <mailto:pan...@pa...> ; >> xml...@li... >> <mailto:xml...@li...> >> *Sent:* Tuesday, May 10, 2011 15:20 >> *Subject:* Re: [xmlvm-users] [xmlvm-dev] Files path >> >> Hi, >> >> I checked it by trying to create a new project and providing as >> resource folder the absolute path >> of a folder located somewhere else in the system. However I get the >> following warning >> >> WARNING: InputProcess.GetOutputFiles(): Input File does not exist or >> is not a file >> >> If I check the project, I have a resources folder that only contains >> the demo.png file, while >> the xmlvm.properties file has the entry >> >> xmlvm.resource=resources/ >> >> Obviously it didn't take into account my resources. How should it >> behave instead? >> Should it copy my files into the resources/ folder? Can I do it >> manually? >> That's what I did previously and it works, as far as I use images. >> If I try to read a file >> instead, I get the error I wrote you about. I don't know if the >> things are connected. >> It may be useful to know that mu res/ folder contains subdirectories >> which contain the needed files >> >> I also tried to modify the resource path to >> >> xmlvm.resource=res >> >> But the result is the same: images are loaded anyway, while files >> aren't (with any combination of file path except for the absolute >> one) >> >> Any hint? >> >> Thanks, >> >> Domenico >> >> -----Domenico De Fano <dom...@gm...> a écrit : ----- >> >> A : Panayotis Katsaloulis <pan...@pa...>, >> d.d...@ak... >> De : Domenico De Fano <dom...@gm...> >> Date : 10/05/2011 09:02 >> Objet : Re: [xmlvm-dev] Files path >> >> Hi, >> >> I think I got the point: when I created the project, I didn't >> indicate in the full path in the --resource option, so that this >> is actually located outside the project directory. I'll try and >> let you know >> However, I wonder if I should see something in the xcode project >> too, a reference to the resources folders or something >> similar. >> >> Thanks for your help! >> >> Domenico De Fano >> >> On 4 May 2011 20:48, Panayotis Katsaloulis >> <pan...@pa... <mailto:pan...@pa...>> wrote: >> >> >> On May 4, 2011, at 9:28 PM, Domenico De Fano wrote: >> >> > Hi, >> > >> > That's exactly what I'm doing, but unfortunately it >> doesn't work. Do you think I need to set any particular >> > configuration in the XMLVM project or to put my files in >> another folder? >> > Also, I don't understand why I don't need to add the >> "res/" to the path when loading images using the >> > UIIMage. I know it depends on the fact that when I >> created the project I set that folder as the one >> > containing the resources, but I don't clearly see the >> connection. >> > >> > Thanks, >> > >> > Domenico >> >> Just a quick comment: >> I have used folders with resources in the main bundle and >> elsewhere and works perfectly. >> I suspect that you don't do something correctly. >> >> As a first step, have a look at the produces *.app directory >> and make sure that the file hierarchy is correct. >> ------------------------------------------------------------------------------ >> WhatsUp Gold - Download Free Network Management Software >> The most intuitive, comprehensive, and cost-effective network >> management toolset available today. Delivers lowest initial >> acquisition cost and overall TCO of any competing solution. >> http://p.sf.net/sfu/whatsupgold-sd >> _______________________________________________ >> Xmlvm-developers mailing list >> Xml...@li... >> <mailto:Xml...@li...> >> https://lists.sourceforge.net/lists/listinfo/xmlvm-developers >> >> >> >> >> -- >> Domenico De Fano >> >> >> ------------------------------------------------------------------------ >> >> ------------------------------------------------------------------------------ >> Achieve unprecedented app performance and reliability >> What every C/C++ and Fortran developer should know. >> Learn how Intel has extended the reach of its next-generation tools >> to help boost performance applications - inlcuding clusters. >> http://p.sf.net/sfu/intel-dev2devmay >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> xmlvm-users mailing list >> xml...@li... >> https://lists.sourceforge.net/lists/listinfo/xmlvm-users >> >> >> >> ------------------------------------------------------------------------------ >> Achieve unprecedented app performance and reliability >> What every C/C++ and Fortran developer should know. >> Learn how Intel has extended the reach of its next-generation tools >> to help boost performance applications - inlcuding clusters. >> http://p.sf.net/sfu/intel-dev2devmay >> >> >> >> _______________________________________________ >> xmlvm-users mailing list >> xml...@li... >> https://lists.sourceforge.net/lists/listinfo/xmlvm-users > > ------------------------------------------------------------------------------ > Achieve unprecedented app performance and reliability > What every C/C++ and Fortran developer should know. > Learn how Intel has extended the reach of its next-generation tools > to help boost performance applications - inlcuding clusters. > http://p.sf.net/sfu/intel-dev2devmay > _______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users > |
From: Arno P. <ar...@pu...> - 2011-05-12 05:01:15
|
you should create the Xcode project on a Mac platform. If you run XMLVM on a Windows box, it will also use Windows-style conventions (such as '\' instead of '/'). As the for code instructions, well how about telling us which byte code instructions are missing? :) Arno On 5/10/11 12:50 PM, cpsingh wrote: > Hi > Anyone can help me in compiling the Java code to Iphone. I am able to > compile the jave code in iphone app. I am using the Windows platform and > it is generating the Iphone app without any error. But when i am > deploying the application Mac Book using the guide provided in the > xmlvm.org then xcode is giving so many errors. I am able to remove the > errors also by removing some of the files which are creating problem. > Now when i am trying to run the code in IPhone simulator then it is > giving missing byte code. Can u please help me out from this problem > Regards > CP Singh > > ----- Original Message ----- > *From:* D.D...@ak... <mailto:D.D...@ak...> > *To:* Panayotis Katsaloulis <mailto:pan...@pa...> ; > xml...@li... > <mailto:xml...@li...> > *Sent:* Tuesday, May 10, 2011 15:20 > *Subject:* Re: [xmlvm-users] [xmlvm-dev] Files path > > Hi, > > I checked it by trying to create a new project and providing as > resource folder the absolute path > of a folder located somewhere else in the system. However I get the > following warning > > WARNING: InputProcess.GetOutputFiles(): Input File does not exist or > is not a file > > If I check the project, I have a resources folder that only contains > the demo.png file, while > the xmlvm.properties file has the entry > > xmlvm.resource=resources/ > > Obviously it didn't take into account my resources. How should it > behave instead? > Should it copy my files into the resources/ folder? Can I do it > manually? > That's what I did previously and it works, as far as I use images. > If I try to read a file > instead, I get the error I wrote you about. I don't know if the > things are connected. > It may be useful to know that mu res/ folder contains subdirectories > which contain the needed files > > I also tried to modify the resource path to > > xmlvm.resource=res > > But the result is the same: images are loaded anyway, while files > aren't (with any combination of file path except for the absolute one) > > Any hint? > > Thanks, > > Domenico > > -----Domenico De Fano <dom...@gm...> a écrit : ----- > > A : Panayotis Katsaloulis <pan...@pa...>, > d.d...@ak... > De : Domenico De Fano <dom...@gm...> > Date : 10/05/2011 09:02 > Objet : Re: [xmlvm-dev] Files path > > Hi, > > I think I got the point: when I created the project, I didn't > indicate in the full path in the --resource option, so that this > is actually located outside the project directory. I'll try and > let you know > However, I wonder if I should see something in the xcode project > too, a reference to the resources folders or something > similar. > > Thanks for your help! > > Domenico De Fano > > On 4 May 2011 20:48, Panayotis Katsaloulis > <pan...@pa... <mailto:pan...@pa...>> wrote: > > > On May 4, 2011, at 9:28 PM, Domenico De Fano wrote: > > > Hi, > > > > That's exactly what I'm doing, but unfortunately it > doesn't work. Do you think I need to set any particular > > configuration in the XMLVM project or to put my files in > another folder? > > Also, I don't understand why I don't need to add the > "res/" to the path when loading images using the > > UIIMage. I know it depends on the fact that when I > created the project I set that folder as the one > > containing the resources, but I don't clearly see the > connection. > > > > Thanks, > > > > Domenico > > Just a quick comment: > I have used folders with resources in the main bundle and > elsewhere and works perfectly. > I suspect that you don't do something correctly. > > As a first step, have a look at the produces *.app directory > and make sure that the file hierarchy is correct. > ------------------------------------------------------------------------------ > WhatsUp Gold - Download Free Network Management Software > The most intuitive, comprehensive, and cost-effective network > management toolset available today. Delivers lowest initial > acquisition cost and overall TCO of any competing solution. > http://p.sf.net/sfu/whatsupgold-sd > _______________________________________________ > Xmlvm-developers mailing list > Xml...@li... > <mailto:Xml...@li...> > https://lists.sourceforge.net/lists/listinfo/xmlvm-developers > > > > > -- > Domenico De Fano > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > Achieve unprecedented app performance and reliability > What every C/C++ and Fortran developer should know. > Learn how Intel has extended the reach of its next-generation tools > to help boost performance applications - inlcuding clusters. > http://p.sf.net/sfu/intel-dev2devmay > > ------------------------------------------------------------------------ > > _______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users > > > > ------------------------------------------------------------------------------ > Achieve unprecedented app performance and reliability > What every C/C++ and Fortran developer should know. > Learn how Intel has extended the reach of its next-generation tools > to help boost performance applications - inlcuding clusters. > http://p.sf.net/sfu/intel-dev2devmay > > > > _______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users |
From: cpsingh <cp...@ak...> - 2011-05-10 19:51:14
|
Hi Anyone can help me in compiling the Java code to Iphone. I am able to compile the jave code in iphone app. I am using the Windows platform and it is generating the Iphone app without any error. But when i am deploying the application Mac Book using the guide provided in the xmlvm.org then xcode is giving so many errors. I am able to remove the errors also by removing some of the files which are creating problem. Now when i am trying to run the code in IPhone simulator then it is giving missing byte code. Can u please help me out from this problem Regards CP Singh ----- Original Message ----- From: D.D...@ak... To: Panayotis Katsaloulis ; xml...@li... Sent: Tuesday, May 10, 2011 15:20 Subject: Re: [xmlvm-users] [xmlvm-dev] Files path Hi, I checked it by trying to create a new project and providing as resource folder the absolute path of a folder located somewhere else in the system. However I get the following warning WARNING: InputProcess.GetOutputFiles(): Input File does not exist or is not a file If I check the project, I have a resources folder that only contains the demo.png file, while the xmlvm.properties file has the entry xmlvm.resource=resources/ Obviously it didn't take into account my resources. How should it behave instead? Should it copy my files into the resources/ folder? Can I do it manually? That's what I did previously and it works, as far as I use images. If I try to read a file instead, I get the error I wrote you about. I don't know if the things are connected. It may be useful to know that mu res/ folder contains subdirectories which contain the needed files I also tried to modify the resource path to xmlvm.resource=res But the result is the same: images are loaded anyway, while files aren't (with any combination of file path except for the absolute one) Any hint? Thanks, Domenico -----Domenico De Fano <dom...@gm...> a écrit : ----- A : Panayotis Katsaloulis <pan...@pa...>, d.d...@ak... De : Domenico De Fano <dom...@gm...> Date : 10/05/2011 09:02 Objet : Re: [xmlvm-dev] Files path Hi, I think I got the point: when I created the project, I didn't indicate in the full path in the --resource option, so that this is actually located outside the project directory. I'll try and let you know However, I wonder if I should see something in the xcode project too, a reference to the resources folders or something similar. Thanks for your help! Domenico De Fano On 4 May 2011 20:48, Panayotis Katsaloulis <pan...@pa...> wrote: On May 4, 2011, at 9:28 PM, Domenico De Fano wrote: > Hi, > > That's exactly what I'm doing, but unfortunately it doesn't work. Do you think I need to set any particular > configuration in the XMLVM project or to put my files in another folder? > Also, I don't understand why I don't need to add the "res/" to the path when loading images using the > UIIMage. I know it depends on the fact that when I created the project I set that folder as the one > containing the resources, but I don't clearly see the connection. > > Thanks, > > Domenico Just a quick comment: I have used folders with resources in the main bundle and elsewhere and works perfectly. I suspect that you don't do something correctly. As a first step, have a look at the produces *.app directory and make sure that the file hierarchy is correct. ------------------------------------------------------------------------------ WhatsUp Gold - Download Free Network Management Software The most intuitive, comprehensive, and cost-effective network management toolset available today. Delivers lowest initial acquisition cost and overall TCO of any competing solution. http://p.sf.net/sfu/whatsupgold-sd _______________________________________________ Xmlvm-developers mailing list Xml...@li... https://lists.sourceforge.net/lists/listinfo/xmlvm-developers -- Domenico De Fano ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ Achieve unprecedented app performance and reliability What every C/C++ and Fortran developer should know. Learn how Intel has extended the reach of its next-generation tools to help boost performance applications - inlcuding clusters. http://p.sf.net/sfu/intel-dev2devmay ------------------------------------------------------------------------------ _______________________________________________ xmlvm-users mailing list xml...@li... https://lists.sourceforge.net/lists/listinfo/xmlvm-users |
From: Panayotis K. <pan...@pa...> - 2011-05-10 17:03:44
|
There is also one more thing. I believe, if an optional method returns nothing, or the default value is already known, there is no reason to use the "respondsToSelector" method. In the case of the known & documented default value, create a regular method which simply returns this value (like for example "editingStyleForRowAtIndexPath") In the case which does not return anything, just create an empty method. (like for example "heightForRowAtIndexPath"). The problem is exactly with methods like "heightForRowAtIndexPath", where the default value is not known at all, and SHOULD return something. *Then* it is required to do the respondsToSelector trick On May 7, 2011, at 9:54 AM, Arno Puder wrote: > > you got the gist of it. Two things: > > 1. In your boolean expression, you don't have to go through the TIB > to retrieve the function pointer. You can inline the function > directly as a constant. > 2. It may be possible that the XMLVM_VTABLE_xxx symbol isn't defined. > This can happen if the method is not overridden. XMLVM performs > compile-time optimizations and will not even generate a vtable > entry for that method. In this case, the result should always > be FALSE. > > Here a re-worked version: > > if (aSelector == @selector(tableView:heightForRowAtIndexPath:)) { > #ifdef > XMLVM_VTABLE_IDX_org_xmlvm_iphone_UITableViewDelegate_heightForRowAtIndexPath___ > VTABLE_PTR f = ((org_xmlvm_iphone_UITableViewDelegate*) > delegate_)->tib-> > vtable[XMLVM_VTABLE_IDX_org_xmlvm_iphone_UITableViewDelegate_heightForRowAtIndexPath___org_xmlvm_iphone_UITableView_org_xmlvm_iphone_NSIndexPath]; > return f != (VTABLE_PTR) > org_xmlvm_iphone_UITableViewDelegate_heightForRowAtIndexPath___org_xmlvm_iphone_UITableView_org_xmlvm_iphone_NSIndexPath; > #else > return 0; > #endif > > If the mailer messes up the indentation and you can't read it, I'll send > it as an attachment. > > Arno > > > > On 5/6/11 2:50 AM, Markus Heberling wrote: >> Hi, >> >> I have manually implemented optional method handling for 2 Methods from UITableViewDelegate. >> >> http://xmlvm-reviews.appspot.com/121001/ >> >> If you think that it is ok that way I would implement the other methods, too. >> >> Markus |