From: Jeff N. <not...@gm...> - 2009-10-07 16:30:16
|
On Wed, Oct 7, 2009 at 8:11 AM, Kevin Glass <ke...@co...> wrote: > Remove the system.setproperty in your main before compiling for iphone >> > Ah, i should have been able to figure that one out for myself... gotta overcome my fear of obj-c, eh? ;) Okay, so I've got passed that error. I actually did it two ways, first by removing the relevant line from the Java source before compiling, and then (partially to get into the obj-c code a bit) by adding a simple setProperty method to the xmlvm iPhone compatibility library -- bam, now the Java code doesn't need to be modified to run with setProperty calls present. Unfortunately, I have run into another problem that following through the obj-c source doesn't seem to be helping me with. In fact, the same problem appears to happens on all "iPhone-only" apps (iFireworks, iRemote, NeHe4) with the exception of iHelloWorld (which runs fine). None of the Android cross-compiled versions of the apps have this problem. I've included the crash reports below. Does anyone have any hints? iGLNeHe4: Thread 0 Crashed: 0 libobjc.A.dylib 0x9481d688 objc_msgSend + 24 1 iGLNehe4 0x0000cd15 -[org_xmlvm_iphone_demo_gl_nehelesson4_NeHeLesson4 applicationDidFinishLaunching___org_xmlvm_iphone_UIApplication:] + 574 (org_xmlvm_iphone_demo_gl_nehelesson4_NeHeLesson4.m:104) 2 iGLNehe4 0x00008511 -[org_xmlvm_iphone_UIApplication applicationDidFinishLaunching:] + 43 (org_xmlvm_iphone_UIApplication.m:42) 3 UIKit 0x0168061f -[UIApplication _performInitializationWithURL:sourceBundleID:] + 500 4 UIKit 0x01689a0a -[UIApplication _runWithURL:sourceBundleID:] + 594 5 UIKit 0x01686b88 -[UIApplication handleEvent:withNewEvent:] + 1532 6 UIKit 0x016826d3 -[UIApplication sendEvent:] + 71 7 UIKit 0x016890b5 _UIApplicationHandleEvent + 5048 8 GraphicsServices 0x000ebef1 PurpleEventCallback + 1533 9 CoreFoundation 0x0089db80 CFRunLoopRunSpecific + 3888 10 CoreFoundation 0x0089cc48 CFRunLoopRunInMode + 88 11 UIKit 0x01680e69 -[UIApplication _run] + 611 12 UIKit 0x0168a003 UIApplicationMain + 1157 13 iGLNehe4 0x000086bf +[org_xmlvm_iphone_UIApplication main___java_lang_String_ARRAYTYPE_java_lang_Class::] + 198 (org_xmlvm_iphone_UIApplication.m:82) 14 iGLNehe4 0x0000d0cc +[org_xmlvm_iphone_demo_gl_nehelesson4_NeHeLesson4 main___java_lang_String_ARRAYTYPE:] + 331 (org_xmlvm_iphone_demo_gl_nehelesson4_NeHeLesson4.m:161) 15 iGLNehe4 0x0000d11d main + 51 (org_xmlvm_iphone_demo_gl_nehelesson4_NeHeLesson4.m:175) 16 iGLNehe4 0x000025ba start + 54 iFireworks: Thread 0 Crashed: 0 libobjc.A.dylib 0x9481d688 objc_msgSend + 24 1 iFireworks 0x00008dae -[org_xmlvm_demo_ifireworks_Main applicationDidFinishLaunching___org_xmlvm_iphone_UIApplication:] + 574 (org_xmlvm_demo_ifireworks_Main.m:118) 2 iFireworks 0x0000def9 -[org_xmlvm_iphone_UIApplication applicationDidFinishLaunching:] + 43 (org_xmlvm_iphone_UIApplication.m:42) 3 UIKit 0x0168061f -[UIApplication _performInitializationWithURL:sourceBundleID:] + 500 4 UIKit 0x01689a0a -[UIApplication _runWithURL:sourceBundleID:] + 594 5 UIKit 0x01686b88 -[UIApplication handleEvent:withNewEvent:] + 1532 6 UIKit 0x016826d3 -[UIApplication sendEvent:] + 71 7 UIKit 0x016890b5 _UIApplicationHandleEvent + 5048 8 GraphicsServices 0x000ebef1 PurpleEventCallback + 1533 9 CoreFoundation 0x0089db80 CFRunLoopRunSpecific + 3888 10 CoreFoundation 0x0089cc48 CFRunLoopRunInMode + 88 11 UIKit 0x01680e69 -[UIApplication _run] + 611 12 UIKit 0x0168a003 UIApplicationMain + 1157 13 iFireworks 0x0000e0a7 +[org_xmlvm_iphone_UIApplication main___java_lang_String_ARRAYTYPE_java_lang_Class::] + 198 (org_xmlvm_iphone_UIApplication.m:82) 14 iFireworks 0x000094a9 +[org_xmlvm_demo_ifireworks_Main main___java_lang_String_ARRAYTYPE:] + 196 (org_xmlvm_demo_ifireworks_Main.m:227) 15 iFireworks 0x000094fa main + 51 (org_xmlvm_demo_ifireworks_Main.m:241) 16 iFireworks 0x00001df6 start + 54 iRemote: Thread 0 Crashed: 0 libobjc.A.dylib 0x9481d688 objc_msgSend + 24 1 iRemote 0x00005f5b -[org_xmlvm_demo_iremote_Main applicationDidFinishLaunching___org_xmlvm_iphone_UIApplication:] + 1360 (org_xmlvm_demo_iremote_Main.m:185) 2 iRemote 0x0000c8b3 -[org_xmlvm_iphone_UIApplication applicationDidFinishLaunching:] + 43 (org_xmlvm_iphone_UIApplication.m:42) 3 UIKit 0x0168061f -[UIApplication _performInitializationWithURL:sourceBundleID:] + 500 4 UIKit 0x01689a0a -[UIApplication _runWithURL:sourceBundleID:] + 594 5 UIKit 0x01686b88 -[UIApplication handleEvent:withNewEvent:] + 1532 6 UIKit 0x016826d3 -[UIApplication sendEvent:] + 71 7 UIKit 0x016890b5 _UIApplicationHandleEvent + 5048 8 GraphicsServices 0x000ebef1 PurpleEventCallback + 1533 9 CoreFoundation 0x0089db80 CFRunLoopRunSpecific + 3888 10 CoreFoundation 0x0089cc48 CFRunLoopRunInMode + 88 11 UIKit 0x01680e69 -[UIApplication _run] + 611 12 UIKit 0x0168a003 UIApplicationMain + 1157 13 iRemote 0x0000ca61 +[org_xmlvm_iphone_UIApplication main___java_lang_String_ARRAYTYPE_java_lang_Class::] + 198 (org_xmlvm_iphone_UIApplication.m:82) 14 iRemote 0x000076a4 +[org_xmlvm_demo_iremote_Main main___java_lang_String_ARRAYTYPE:] + 196 (org_xmlvm_demo_iremote_Main.m:515) 15 iRemote 0x00007835 main + 51 (org_xmlvm_demo_iremote_Main.m:557) 16 iRemote 0x0000238e start + 54 On Oct 7, 2009 6:12 AM, "Jeff Norman" <not...@gm...> wrote: >> >> hello all, >> >> I've just come across the xmlvm project, and I can say that I'm very >> excited about the functionality it provides. I'm specifically interested in >> cross-compiling graphics/OpenGL related functionality from Android to >> iPhone. >> >> I've poked around a bit, and gotten all the samples apps running from my >> Eclipse environment, including the NeHe4 demo on the xmlvm iPhone emulator. >> I am, however, having trouble getting the same app to run under the Apple >> iPhone emulator (by simple running "make" from the command line). Everything >> compiles okay and the Apple iPhone simulator starts up with the app, but >> whenever I run the app it immediately crashes. Xokoban runs fine in the >> Apple iPhone emulator under identical conditions. Does anybody have any >> hints for getting the GL demo to work under the Apple iPhone emu? >> >> The core dump from the iPhone emulator is as follows (I've only included >> what appeared relevant, let me know if I missed something important): >> >> Application Specific Information: >> *** Terminating app due to uncaught exception >> 'NSInvalidArgumentException', reason: '*** +[java_lang_System >> setProperty___java_lang_String_java_lang_String::]: unrecognized selector >> sent to class 0x1aac0' >> >> Thread 0 Crashed: >> 0 CoreFoundation 0x00905004 >> ___TERMINATING_DUE_TO_UNCAUGHT_EXCEPTION___ + 4 >> 1 libobjc.A.dylib 0x94811e3b objc_exception_throw + 40 >> 2 CoreFoundation 0x0092f8fb +[NSObject >> doesNotRecognizeSelector:] + 187 >> 3 CoreFoundation 0x008c6676 ___forwarding___ + 902 >> 4 CoreFoundation 0x008a26c2 _CF_forwarding_prep_0 + >> 50 >> 5 iGLNehe4 0x0000d02f >> +[org_xmlvm_iphone_demo_gl_nehelesson4_NeHeLesson4 >> main___java_lang_String_ARRAYTYPE:] + 171 >> (org_xmlvm_iphone_demo_gl_nehelesson4_NeHeLesson4.m:152) >> 6 iGLNehe4 0x0000d11c main + 51 >> (org_xmlvm_iphone_demo_gl_nehelesson4_NeHeLesson4.m:175) >> 7 iGLNehe4 0x000025ca start + 54 >> >> Thanks, >> >> Jeff Norman >> >> >> >> >> >> ------------------------------------------------------------------------------ >> Come build with us! The BlackBerry(R) Developer Conference in SF, CA >> is the only developer event you need to attend this year. Jumpstart your >> developing skills, take BlackBerry mobile applications to market and stay >> ahead of the curve. Join us from November 9 - 12, 2009. Register now! >> http://p.sf.net/sfu/devconference >> _______________________________________________ >> xmlvm-users mailing list >> xml...@li... >> https://lists.sourceforge.net/lists/listinfo/xmlvm-users >> >> > > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users > > |