From: <Zor...@gm...> - 2010-03-25 17:22:24
|
Hello there! I am an Android Developer who was just about to dig into Objective-C and iPhone development because the need arose to also target iPhones as well as Android phones. Because of that I was extremely excited when I found Xmlvm just a few days ago! But, unfortunately, even though I tried to stick exactly to what the short documentation says about the demo projects, I got stuck pretty quickly. Maybe I am not alone with this and maybe there's only a tiny little thing I missed that screws everthing up right now. Here's what I wanted to do: Take one of my Android Apps and simply port it right away. Okay, nice attempt - I got stuck with about a hundred error messages in the Xcode envirnment. So, I stepped back one step: try to get SayHello working out of the box... As there's no description of what is needed to try out the demos I'll give you my environment specs quickly: Macbook Pro with Xcode 3.2.1 and Eclipse 3.5 running the latest Android SDK r05. The rest is out of the box. Xmlvm compiled fine using the ant script. Now, my first question: I understood that using Xmlvm for Android apps, it will take the Dalvik Code - but the command line interface for xmlvm only gets the SayHello's project folder (that's what I understood I'd have to do) So I call: xmlvm --in=../workspace/xmlvm/demo/android/sayhello/ --target=android-on-iphone --app-name="SayHello" With this command I get a lot of Warnings of the type: WARNING: Unable to create InputProcesses for input: [...] both for helper files like *.svn AND my *.java source files. Where should xmlvm get the Dalvik machine code from? Isn't that only within the apk file? I got no clue... Now: my first attempt was to get it working in the iPhone Simulator as that should be done by calling make and using the generated makefile. The simulator starts and there's the SayHello app - but it crashes right away. When I start it, it closes immediately. Second attempt: get into Xcode (which I really don't know yet...). I created a project, deleted main and xib File plus app delegates and the entry in the pList file. Next question arose when trying to add files to the project: I don't have a MakeVars file (but I should not include it - where is it?) An Info.pList file is missing, too... Okay, added all the files and pressed Build&Run... This gives me 39 linker errors which I add at the end of this post. Now - what could be wrong here? Maybe I am not the only one who has a problem getting the first program to run? Maybe it is possible to add a little bit more to the documentation so that these first steps don't get so hard to do? That would be great; as the whole idea behind xmlvm is just great and perfect! I would really LOVE not to end up learning the "latin language" or moving to the Vatikan... :-) Thanks a lot out there!! Cheers, Olaf Here are my linker errors: Undefined symbols: "_glTranslatef", referenced from: +[org_xmlvm_iphone_gl_GL glTranslatef___float_float_float:::] in org_xmlvm_iphone_gl_GL.o "_glDisableClientState", referenced from: +[org_xmlvm_iphone_gl_GL glDisableClientState___int:] in org_xmlvm_iphone_gl_GL.o ".objc_class_name_EAGLContext", referenced from: literal-pointer@__OBJC@__cls_refs@EAGLContext in org_xmlvm_iphone_gl_EAGLContext.o literal-pointer@__OBJC@__cls_refs@EAGLContext in org_xmlvm_iphone_gl_GLView.o "_glBindRenderbufferOES", referenced from: +[org_xmlvm_iphone_gl_GL glBindRenderbufferOES___int_int::] in org_xmlvm_iphone_gl_GL.o -[org_xmlvm_iphone_gl_GLView createFramebuffer__] in org_xmlvm_iphone_gl_GLView.o -[org_xmlvm_iphone_gl_GLView drawView__] in org_xmlvm_iphone_gl_GLView.o "_glLineWidth", referenced from: +[org_xmlvm_iphone_gl_GL glLineWidth___float:] in org_xmlvm_iphone_gl_GL.o "_glClearColor", referenced from: +[org_xmlvm_iphone_gl_GL glClearColor___float_float_float_float::::] in org_xmlvm_iphone_gl_GL.o -[org_xmlvm_iphone_gl_GLView setupView__] in org_xmlvm_iphone_gl_GLView.o "_glFrustumf", referenced from: +[org_xmlvm_iphone_gl_GL glFrustumf___float_float_float_float_float_float::::::] in org_xmlvm_iphone_gl_GL.o "_glClear", referenced from: +[org_xmlvm_iphone_gl_GL glClear___int:] in org_xmlvm_iphone_gl_GL.o -[org_xmlvm_iphone_gl_GLView drawView__] in org_xmlvm_iphone_gl_GLView.o "_glTexParameteri", referenced from: +[org_xmlvm_iphone_gl_GL glTexParameteri___int_int_int:::] in org_xmlvm_iphone_gl_GL.o "_glOrthof", referenced from: +[org_xmlvm_iphone_gl_GL glOrthof___float_float_float_float_float_float::::::] in org_xmlvm_iphone_gl_GL.o -[org_xmlvm_iphone_gl_GLView setupView__] in org_xmlvm_iphone_gl_GLView.o "_glEnable", referenced from: +[org_xmlvm_iphone_gl_GL glEnable___int:] in org_xmlvm_iphone_gl_GL.o -[org_xmlvm_iphone_gl_GLView setupView__] in org_xmlvm_iphone_gl_GLView.o -[org_xmlvm_iphone_gl_GLView setupView__] in org_xmlvm_iphone_gl_GLView.o "_glScalef", referenced from: +[org_xmlvm_iphone_gl_GL glScalef___float_float_float:::] in org_xmlvm_iphone_gl_GL.o "_glDrawArrays", referenced from: +[org_xmlvm_iphone_gl_GL glDrawArrays___int_int_int:::] in org_xmlvm_iphone_gl_GL.o "_glGenFramebuffersOES", referenced from: +[org_xmlvm_iphone_gl_GL glGenFramebuffersOES___int:] in org_xmlvm_iphone_gl_GL.o -[org_xmlvm_iphone_gl_GLView createFramebuffer__] in org_xmlvm_iphone_gl_GLView.o ".objc_class_name_AVAudioPlayer", referenced from: literal-pointer@__OBJC@__cls_refs@AVAudioPlayer in android_media_MediaPlayer.o literal-pointer@__OBJC@__cls_refs@AVAudioPlayer in org_xmlvm_iphone_AVAudioPlayer.o "_glVertexPointer", referenced from: +[org_xmlvm_iphone_gl_GL glVertexPointer___int_int_int_java_nio_FloatBuffer::::] in org_xmlvm_iphone_gl_GL.o "_glBindTexture", referenced from: +[org_xmlvm_iphone_gl_GL glBindTexture___int_int::] in org_xmlvm_iphone_gl_GL.o "_glLoadIdentity", referenced from: +[org_xmlvm_iphone_gl_GL glLoadIdentity__] in org_xmlvm_iphone_gl_GL.o -[org_xmlvm_iphone_gl_GLView setupView__] in org_xmlvm_iphone_gl_GLView.o "_kEAGLDrawablePropertyColorFormat", referenced from: _kEAGLDrawablePropertyColorFormat$non_lazy_ptr in org_xmlvm_iphone_gl_CAEAGLLayer.o _kEAGLDrawablePropertyColorFormat$non_lazy_ptr in org_xmlvm_iphone_gl_GLView.o "_kEAGLDrawablePropertyRetainedBacking", referenced from: _kEAGLDrawablePropertyRetainedBacking$non_lazy_ptr in org_xmlvm_iphone_gl_CAEAGLLayer.o _kEAGLDrawablePropertyRetainedBacking$non_lazy_ptr in org_xmlvm_iphone_gl_GLView.o "_glGenTextures", referenced from: +[org_xmlvm_iphone_gl_GL glGenTextures___int_java_nio_IntBuffer::] in org_xmlvm_iphone_gl_GL.o "_glDisable", referenced from: +[org_xmlvm_iphone_gl_GL glDisable___int:] in org_xmlvm_iphone_gl_GL.o "_glBlendFunc", referenced from: +[org_xmlvm_iphone_gl_GL glBlendFunc___int_int::] in org_xmlvm_iphone_gl_GL.o -[org_xmlvm_iphone_gl_GLView setupView__] in org_xmlvm_iphone_gl_GLView.o "_glViewport", referenced from: +[org_xmlvm_iphone_gl_GL glViewport___int_int_int_int::::] in org_xmlvm_iphone_gl_GL.o -[org_xmlvm_iphone_gl_GLView setupView__] in org_xmlvm_iphone_gl_GLView.o ".objc_class_name_CAEAGLLayer", referenced from: literal-pointer@__OBJC@__cls_refs@CAEAGLLayer in org_xmlvm_iphone_gl_GLView.o "_glColor4f", referenced from: +[org_xmlvm_iphone_gl_GL glColor4f___float_float_float_float::::] in org_xmlvm_iphone_gl_GL.o "_glGenRenderbuffersOES", referenced from: +[org_xmlvm_iphone_gl_GL glGenRenderbuffersOES___int:] in org_xmlvm_iphone_gl_GL.o -[org_xmlvm_iphone_gl_GLView createFramebuffer__] in org_xmlvm_iphone_gl_GLView.o "_glBindFramebufferOES", referenced from: +[org_xmlvm_iphone_gl_GL glBindFramebufferOES___int_int::] in org_xmlvm_iphone_gl_GL.o -[org_xmlvm_iphone_gl_GLView createFramebuffer__] in org_xmlvm_iphone_gl_GLView.o -[org_xmlvm_iphone_gl_GLView drawView__] in org_xmlvm_iphone_gl_GLView.o "_glDeleteRenderbuffersOES", referenced from: +[org_xmlvm_iphone_gl_GL glDeleteRenderbuffersOES___int_int::] in org_xmlvm_iphone_gl_GL.o -[org_xmlvm_iphone_gl_GLView destroyFramebuffer__] in org_xmlvm_iphone_gl_GLView.o -[org_xmlvm_iphone_gl_GLView destroyFramebuffer__] in org_xmlvm_iphone_gl_GLView.o "_glDeleteFramebuffersOES", referenced from: +[org_xmlvm_iphone_gl_GL glDeleteFramebuffersOES___int_int::] in org_xmlvm_iphone_gl_GL.o -[org_xmlvm_iphone_gl_GLView destroyFramebuffer__] in org_xmlvm_iphone_gl_GLView.o "_glTexCoordPointer", referenced from: +[org_xmlvm_iphone_gl_GL glTexCoordPointer___int_int_int_java_nio_FloatBuffer::::] in org_xmlvm_iphone_gl_GL.o "_glEnableClientState", referenced from: +[org_xmlvm_iphone_gl_GL glEnableClientState___int:] in org_xmlvm_iphone_gl_GL.o "_glMatrixMode", referenced from: +[org_xmlvm_iphone_gl_GL glMatrixMode___int:] in org_xmlvm_iphone_gl_GL.o -[org_xmlvm_iphone_gl_GLView setupView__] in org_xmlvm_iphone_gl_GLView.o -[org_xmlvm_iphone_gl_GLView setupView__] in org_xmlvm_iphone_gl_GLView.o "_glFramebufferRenderbufferOES", referenced from: +[org_xmlvm_iphone_gl_GL glFramebufferRenderbufferOES___int_int_int_int::::] in org_xmlvm_iphone_gl_GL.o -[org_xmlvm_iphone_gl_GLView createFramebuffer__] in org_xmlvm_iphone_gl_GLView.o "_glTexImage2D", referenced from: +[org_xmlvm_iphone_gl_GL glTexImage2D___int_int_int_int_int_int_int_int_java_nio_ByteBuffer:::::::::] in org_xmlvm_iphone_gl_GL.o "_glRotatef", referenced from: +[org_xmlvm_iphone_gl_GL glRotatef___float_float_float_float::::] in org_xmlvm_iphone_gl_GL.o "_glCheckFramebufferStatusOES", referenced from: +[org_xmlvm_iphone_gl_GL glCheckFramebufferStatusOES___int:] in org_xmlvm_iphone_gl_GL.o -[org_xmlvm_iphone_gl_GLView createFramebuffer__] in org_xmlvm_iphone_gl_GLView.o -[org_xmlvm_iphone_gl_GLView createFramebuffer__] in org_xmlvm_iphone_gl_GLView.o -[org_xmlvm_iphone_gl_GLView createFramebuffer__] in org_xmlvm_iphone_gl_GLView.o "_glColorPointer", referenced from: +[org_xmlvm_iphone_gl_GL glColorPointer___int_int_int_java_nio_FloatBuffer::::] in org_xmlvm_iphone_gl_GL.o "_kEAGLColorFormatRGBA8", referenced from: _kEAGLColorFormatRGBA8$non_lazy_ptr in org_xmlvm_iphone_gl_CAEAGLLayer.o _kEAGLColorFormatRGBA8$non_lazy_ptr in org_xmlvm_iphone_gl_GLView.o ld: symbol(s) not found collect2: ld returned 1 exit status |