dogtwelve / eepp

Automatically exported from code.google.com/p/eepp
0 stars 0 forks source link

exception on android at execution on android 4.03 #2

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
hello

it s going to be a great projet the demo is quite cool aswell.

i have the next exception on android , at execution time
02-28 02:31:49.109: E/AndroidRuntime(3297): java.lang.UnsatisfiedLinkError: 
onNativeResize
02-28 02:31:49.109: E/AndroidRuntime(3297):     at 
org.libsdl.app.SDLActivity.onNativeResize(Native Method)
02-28 02:31:49.109: E/AndroidRuntime(3297):     at 
org.libsdl.app.SDLSurface.surfaceChanged(SDLActivity.java:349)
02-28 02:31:49.109: E/AndroidRuntime(3297):     at 
android.view.SurfaceView.updateWindow(SurfaceView.java:544)
02-28 02:31:49.109: E/AndroidRuntime(3297):     at 
android.view.SurfaceView.access$000(SurfaceView.java:81)
02-28 02:31:49.109: E/AndroidRuntime(3297):     at 
android.view.SurfaceView$3.onPreDraw(SurfaceView.java:169)
02-28 02:31:49.109: E/AndroidRuntime(3297):     at 
android.view.ViewTreeObserver.dispatchOnPreDraw(ViewTreeObserver.java:590)
02-28 02:31:49.109: E/AndroidRuntime(3297):     at 
android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1617)
02-28 02:31:49.109: E/AndroidRuntime(3297):     at 
android.view.ViewRootImpl.handleMessage(ViewRootImpl.java:2442)
02-28 02:31:49.109: E/AndroidRuntime(3297):     at 
android.os.Handler.dispatchMessage(Handler.java:99)
02-28 02:31:49.109: E/AndroidRuntime(3297):     at 
android.os.Looper.loop(Looper.java:137)
02-28 02:31:49.109: E/AndroidRuntime(3297):     at 
android.app.ActivityThread.main(ActivityThread.java:4424)
02-28 02:31:49.109: E/AndroidRuntime(3297):     at 
java.lang.reflect.Method.invokeNative(Native Method)
02-28 02:31:49.109: E/AndroidRuntime(3297):     at 
java.lang.reflect.Method.invoke(Method.java:511)
02-28 02:31:49.109: E/AndroidRuntime(3297):     at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
02-28 02:31:49.109: E/AndroidRuntime(3297):     at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
02-28 02:31:49.109: E/AndroidRuntime(3297):     at 
dalvik.system.NativeStart.main(Native Method)

regards
dgu

Original issue reported on code.google.com by Davidgui...@gmail.com on 28 Feb 2012 at 1:31

GoogleCodeExporter commented 9 years ago
Hi David!
It looks that libmain.so is not correctly linked to the SDLActivity.
Can you paste here the complete console output generated when you run 
compile.sh?
I've never tested eepp on Android 4 ( i'm working against 2.3 ), so i don't 
know if it's working yet, the android port is not even close to be finished, so 
you'll have to wait a little to see something stable ( and the SDL port is also 
unstable as you can see, so i depend on that too ).

Original comment by spart...@gmail.com on 28 Feb 2012 at 1:53

GoogleCodeExporter commented 9 years ago

 in my ndk i didnt check compile option , i just use your compile.sh and a tried wth my default ndk r7 , it compile well and i see the lib .

Error while mapping shared library sections:
/system/bin/linker: No such file or directory.
Error while mapping shared library sections:
libstdc++.so: No such file or directory.
Error while mapping shared library sections:
libm.so: No such file or directory.
Error while mapping shared library sections:
liblog.so: No such file or directory.
Error while mapping shared library sections:
libcutils.so: No such file or directory.
Error while mapping shared library sections:
libz.so: No such file or directory.
Error while mapping shared library sections:
libutils.so: No such file or directory.
Error while mapping shared library sections:
libbinder.so: No such file or directory.
Error while mapping shared library sections:
libexpat.so: No such file or directory.
Error while mapping shared library sections:
libcrypto.so: No such file or directory.
Error while mapping shared library sections:
libgabi++.so: No such file or directory.
Error while mapping shared library sections:
libicuuc.so: No such file or directory.
Error while mapping shared library sections:
libicui18n.so: No such file or directory.
Error while mapping shared library sections:
libssl.so: No such file or directory.
Error while mapping shared library sections:
libstlport.so: No such file or directory.
Error while mapping shared library sections:
libnativehelper.so: No such file or directory.
Error while mapping shared library sections:
libnetutils.so: No such file or directory.
Error while mapping shared library sections:
libGLESv2_dbg.so: No such file or directory.
Error while mapping shared library sections:
libEGL.so: No such file or directory.
Error while mapping shared library sections:
libwpa_client.so: No such file or directory.
Error while mapping shared library sections:
libhardware_legacy.so: No such file or directory.
Error while mapping shared library sections:
libpixelflinger.so: No such file or directory.
Error while mapping shared library sections:
libhardware.so: No such file or directory.
Error while mapping shared library sections:
libemoji.so: No such file or directory.
Error while mapping shared library sections:
libjpeg.so: No such file or directory.
Error while mapping shared library sections:
libskia.so: No such file or directory.
Error while mapping shared library sections:
libui.so: No such file or directory.
Error while mapping shared library sections:
libGLESv2.so: No such file or directory.
Error while mapping shared library sections:
libgui.so: No such file or directory.
Error while mapping shared library sections:
libcamera_client.so: No such file or directory.
Error while mapping shared library sections:
libsqlite.so: No such file or directory.
Error while mapping shared library sections:
libdvm.so: No such file or directory.
Error while mapping shared library sections:
libGLESv1_CM.so: No such file or directory.
Error while mapping shared library sections:
libETC1.so: No such file or directory.
Error while mapping shared library sections:
libsonivox.so: No such file or directory.
Error while mapping shared library sections:
libstagefright_foundation.so: No such file or directory.
Error while mapping shared library sections:
libmedia.so: No such file or directory.
Error while mapping shared library sections:
libnfc_ndef.so: No such file or directory.
Error while mapping shared library sections:
libusbhost.so: No such file or directory.
Error while mapping shared library sections:
libharfbuzz.so: No such file or directory.
Error while mapping shared library sections:
libhwui.so: No such file or directory.
Error while mapping shared library sections:
libbluedroid.so: No such file or directory.
Error while mapping shared library sections:
libdbus.so: No such file or directory.
Error while mapping shared library sections:
libandroid_runtime.so: No such file or directory.
Error while mapping shared library sections:
libvorbisidec.so: No such file or directory.
Error while mapping shared library sections:
libstagefright_yuv.so: No such file or directory.
Error while mapping shared library sections:
libdrmframework.so: No such file or directory.
Error while mapping shared library sections:
libchromium_net.so: No such file or directory.
Error while mapping shared library sections:
libstagefright_amrnb_common.so: No such file or directory.
Error while mapping shared library sections:
libstagefright_enc_common.so: No such file or directory.
Error while mapping shared library sections:
libstagefright_avc_common.so: No such file or directory.
Error while mapping shared library sections:
libstagefright.so: No such file or directory.
Error while mapping shared library sections:
libmtp.so: No such file or directory.
Error while mapping shared library sections:
libexif.so: No such file or directory.
Error while mapping shared library sections:
libmedia_jni.so: No such file or directory.
Error while mapping shared library sections:
libbcc.so: No such file or directory.
Error while mapping shared library sections:
libbcinfo.so: No such file or directory.
Error while mapping shared library sections:
libRS.so: No such file or directory.
Error while mapping shared library sections:
librs_jni.so: No such file or directory.
Error while mapping shared library sections:
libandroid.so: No such file or directory.
Error while mapping shared library sections:
libwebcore.so: No such file or directory.
Error while mapping shared library sections:
libGLES_android.so: No such file or directory.
Error while mapping shared library sections:
libsrv_um.so: No such file or directory.
Error while mapping shared library sections:
libIMGegl.so: No such file or directory.
Error while mapping shared library sections:
libEGL_POWERVR_SGX540_120.so: No such file or directory.
Error while mapping shared library sections:
libusc.so: No such file or directory.
Error while mapping shared library sections:
libGLESv1_CM_POWERVR_SGX540_120.so: No such file or directory.
Error while mapping shared library sections:
libGLESv2_POWERVR_SGX540_120.so: No such file or directory.
Error while mapping shared library sections:
libpvrANDROID_WSEGL.so: No such file or directory.
Error while mapping shared library sections:
libpvr2d.so: No such file or directory.
Error while mapping shared library sections:
gralloc.s5pc110.so: No such file or directory.
(no debugging symbols found)
(no debugging symbols found)
warning: Unable to find dynamic linker breakpoint function.
GDB will be unable to debug shared library initializers
and track explicitly loaded dynamic code.
warning: shared library handler failed to enable breakpoint
0x400a566c in __ioctl ()
   from /home/david/dbobjects/enginegame/eepp/android-project/obj/local/armeabi/libc.so

Original comment by Davidgui...@gmail.com on 28 Feb 2012 at 9:46

GoogleCodeExporter commented 9 years ago
Oh, now i know what's happening. Indeed, the __ioctl() error happens when 
libmain.so can't be loaded, and that's because the library wasn't generated, 
it's trying to compile against some source files that are not in the repository 
( a game that i'm developing ).
I committed some changes to the repository, now compiles against empty_window 
project, and use by default another android ABI. So if everything goes right 
you'll see a circle and a rectangle rotating, nothing fancy, just for testing.
If you want to load resources you'll need to upload them to the sdcard of your 
phone, or load them from the app APK ( i didn't test this, but it works, you 
need to load the apk as a zip file with cZip class ). To upload data to your 
sdcard look at data.sh file.
PD: I changed the format of the textures fonts a couple of days ago, so don't 
try to use a texture font from the SDK, regenerate them, or just use ttf fonts.

Original comment by spart...@gmail.com on 28 Feb 2012 at 3:04

GoogleCodeExporter commented 9 years ago
Closed.

Original comment by spart...@gmail.com on 30 Sep 2012 at 6:21