run HelloWorld on Android

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
hongjunyu128
Posts: 18
Joined: Tue Sep 04, 2012 8:27 am

run HelloWorld on Android

Post by hongjunyu128 »

i down the Irrlicht Engine version 1.8.0-alpha form SVN/branches/ogl-es,compile the source to a .so file
Then i use the .so file,compile HelloWorld.
but i can not get the view

here is the log:

Code: Select all

09-13 17:37:14.850: I/System.out(20716): waiting for debugger to settle...
09-13 17:37:15.045: I/System.out(20716): waiting for debugger to settle...
09-13 17:37:15.249: I/System.out(20716): waiting for debugger to settle...
09-13 17:37:15.452: I/System.out(20716): waiting for debugger to settle...
09-13 17:37:15.647: I/System.out(20716): waiting for debugger to settle...
09-13 17:37:15.850: I/System.out(20716): waiting for debugger to settle...
09-13 17:37:16.053: I/System.out(20716): waiting for debugger to settle...
09-13 17:37:16.257: I/System.out(20716): waiting for debugger to settle...
09-13 17:37:16.452: I/System.out(20716): debugger has settled (1453)
09-13 17:37:16.546: D/dalvikvm(20716): Trying to load lib /data/data/com.tenone.irrlicht/lib/libirrlicht.so 0x40515d50
09-13 17:37:16.585: D/dalvikvm(20716): Added shared lib /data/data/com.tenone.irrlicht/lib/libirrlicht.so 0x40515d50
09-13 17:37:16.585: D/dalvikvm(20716): No JNI_OnLoad found in /data/data/com.tenone.irrlicht/lib/libirrlicht.so 0x40515d50, skipping init
09-13 17:37:16.585: D/dalvikvm(20716): Trying to load lib /data/data/com.tenone.irrlicht/lib/libirrlichtSample.so 0x40515d50
09-13 17:37:16.585: D/dalvikvm(20716): Added shared lib /data/data/com.tenone.irrlicht/lib/libirrlichtSample.so 0x40515d50
09-13 17:37:16.585: D/dalvikvm(20716): No JNI_OnLoad found in /data/data/com.tenone.irrlicht/lib/libirrlichtSample.so 0x40515d50, skipping init
09-13 17:37:16.710: I/Irrlicht(20716): not handled /mnt/sdcard
09-13 17:37:16.710: I/dalvikvm(20716): Could not find method com.tenone.irrlicht.IrrlichtGLView.setPreserveEGLContextOnPause, referenced from method com.tenone.irrlicht.IrrlichtGLView.<init>
09-13 17:37:16.710: W/dalvikvm(20716): VFY: unable to resolve virtual method 38: Lcom/tenone/irrlicht/IrrlichtGLView;.setPreserveEGLContextOnPause (Z)V
09-13 17:37:16.710: D/dalvikvm(20716): VFY: replacing opcode 0x6e at 0x001c
09-13 17:37:16.867: D/dalvikvm(20716): GC_EXTERNAL_ALLOC freed 59K, 50% free 2704K/5379K, external 0K/0K, paused 57ms
09-13 17:37:16.889: E/Irrlicht(20716): onCreate!!!!!!!!!!!!!
09-13 17:37:16.889: E/Irrlicht(20716): onResume!!!!!!!!!!!!!
09-13 17:37:16.991: D/libEGL(20716): loaded /system/lib/egl/libEGL_POWERVR_SGX530_125.so
09-13 17:37:16.991: D/libEGL(20716): loaded /system/lib/egl/libGLESv1_CM_POWERVR_SGX530_125.so
09-13 17:37:16.991: D/libEGL(20716): loaded /system/lib/egl/libGLESv2_POWERVR_SGX530_125.so
09-13 17:37:17.124: E/Irrlicht(20716): Irrlicht Engine version 1.8.0-alpha
 
then the thread is end.

i attention to createDevice() can log:

Code: Select all

09-13 11:05:48.311: I/log(14985): Irrlicht Engine version 1.7.0-beta
09-13 11:05:48.311: I/Irrlicht(14985): CIrrDeviceAndroid::CIrrDeviceAndroid
09-13 11:05:48.311: I/Irrlicht(14985): CIrrDeviceAndroid::createDriver
09-13 11:05:48.311: I/log(14985): OpenGL-ES2 initialized
09-13 11:05:48.311: I/Irrlicht(14985): OGLES2 initialized
09-13 11:05:48.311: I/log(14985): Using renderer: OpenGL ES 2.0 2184622
it seems that createDevice has problems~i use device = createDevice(video::EDT_OGLES1, dimension2d<u32>(gWindowWidth, gWindowHeight), 16, false, false, false, 0); to create~
can anybody help me?
Post Reply