austgl / quake2android

Automatically exported from code.google.com/p/quake2android
1 stars 3 forks source link

WARNING: Could not load libquake2.so #7

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I've been trying to run Quake 2 on my new Captivate (Froyo) with no luck so 
far. I tried both the automatic and manual download of the data files. I've 
attached the logs below and I think the crux of the matter is this: "WARNING: 
Could not load libquake2.so"... then it all goes down on "No implementation 
found for native [...] Quake2GetVersion".

--------------------------------------------------------------------------
Log Collector version: 1.1.0
Device model: SAMSUNG-SGH-I897
Firmware version: 2.2
Kernel version: 2.6.32.9
jetaek.lee@sep-11 )
#1 Tue Sep 21 19:12:29 KST 2010
Build number: FROYO

...
11-06 13:11:46.272 I/ActivityManager( 2489): Starting activity: Intent { 
act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] 
flg=0x10100000 cmp=com.jeyries.quake2/.Quake2 }
11-06 13:11:46.307 I/ActivityManager( 2489): Start proc com.jeyries.quake2 for 
activity com.jeyries.quake2/.Quake2: pid=9240 uid=10101 gids={3003, 1015}
11-06 13:11:46.307 D/StatusBar( 2489): manageDisableList what=0x0 pkg=android
11-06 13:11:46.319 W/InputManagerService( 2489): Window already focused, 
ignoring focus gain of: 
com.android.internal.view.IInputMethodClient$Stub$Proxy@4802ae10
11-06 13:11:46.350 I/Zygote  ( 9240): Zygote: pid 9240 has INTERNET 
permission, then set capability for CAP_NET_RAW
11-06 13:11:46.366 I/WindowManager( 2489): Setting rotation to 1, animFlags=1
11-06 13:11:46.374 I/ActivityManager( 2489): Config changed: { scale=1.0 
imsi=302/720 loc=en_US touch=3 keys=1/1/2 nav=1/1 orien=2 layout=34 uiMode=17 
seq=52 FlipFont=0}
11-06 13:11:46.456 I/JNI     ( 9240): Trying to load libquake2.so
11-06 13:11:46.456 E/JNI     ( 9240): WARNING: Could not load libquake2.so
11-06 13:11:46.456 I/Quake2.java( 9240): onCreate 1.81
11-06 13:11:46.460 I/global  ( 2489): Default buffer size used in 
BufferedInputStream constructor. It would be better to be explicit if an 8k 
buffer is required.
11-06 13:11:46.510 I/Quake2.java( 9240): onResume
11-06 13:11:46.557 I/ActivityManager( 2489): Displayed activity 
com.jeyries.quake2/.Quake2: 257 ms (total 257 ms)
11-06 13:11:48.280 V/WindowManager( 2489): Dsptch > Window{47fd0780 
com.jeyries.quake2/com.jeyries.quake2.Quake2 paused=false}
11-06 13:11:48.280 V/InputDevice( 2489): ID[0]=0(0) Dn(0=>1)
11-06 13:11:48.409 V/WindowManager( 2489): Dsptch > Window{47fd0780 
com.jeyries.quake2/com.jeyries.quake2.Quake2 paused=false}
11-06 13:11:48.409 V/InputDevice( 2489): ID[0]=0(0) Up(1=>0)
11-06 13:11:48.421 I/Quake2.java( 9240): copy_asset overlay1.tga to 
/sdcard/baseq2/overlay1.tga
11-06 13:11:48.464 I/Quake2.java( 9240): copy_asset overlay2.tga to 
/sdcard/baseq2/overlay2.tga
11-06 13:11:48.475 I/Quake2.java( 9240): copy_asset overlay3.tga to 
/sdcard/baseq2/overlay3.tga
11-06 13:11:48.561 D/libEGL  ( 9240): loaded 
/system/lib/egl/libEGL_POWERVR_SGX540_120.so
11-06 13:11:48.561 D/libEGL  ( 9240): loaded 
/system/lib/egl/libGLESv1_CM_POWERVR_SGX540_120.so
11-06 13:11:48.565 D/libEGL  ( 9240): loaded 
/system/lib/egl/libGLESv2_POWERVR_SGX540_120.so
11-06 13:11:48.600 I/Quake2.java( 9240): chooseConfig
11-06 13:11:48.600 I/Quake2.java( 9240): numConfigs=6
11-06 13:11:48.604 I/Quake2.java( 9240): found EGL config : EGLConfig rgba=5650 
depth=24 stencil=8 native=0 buffer=16 caveat=0x3038
11-06 13:11:48.604 I/Quake2.java( 9240): found EGL config : EGLConfig rgba=5650 
depth=24 stencil=8 native=0 buffer=16 caveat=0x3038
11-06 13:11:48.608 I/Quake2.java( 9240): found EGL config : EGLConfig rgba=8888 
depth=24 stencil=8 native=0 buffer=32 caveat=0x3038
11-06 13:11:48.608 I/Quake2.java( 9240): found EGL config : EGLConfig rgba=8888 
depth=24 stencil=8 native=0 buffer=32 caveat=0x3038
11-06 13:11:48.612 I/Quake2.java( 9240): found EGL config : EGLConfig rgba=8888 
depth=24 stencil=8 native=0 buffer=32 caveat=0x3038
11-06 13:11:48.612 I/Quake2.java( 9240): found EGL config : EGLConfig rgba=8888 
depth=24 stencil=8 native=0 buffer=32 caveat=0x3038
11-06 13:11:48.616 I/Quake2.java( 9240): selected EGL config : EGLConfig 
rgba=5650 depth=24 stencil=8 native=0 buffer=16 caveat=0x3038
11-06 13:11:48.690 D/Renderer( 9240): onSurfaceCreated
11-06 13:11:48.690 D/Renderer( 9240): onSurfaceChanged
11-06 13:11:48.690 W/dalvikvm( 9240): No implementation found for native 
Lcom/jeyries/quake2/Quake2;.Quake2GetVersion ()Ljava/lang/String;
11-06 13:11:48.733 D/dalvikvm( 2489): GC_EXPLICIT freed 15631 objects / 842328 
bytes in 101ms
11-06 13:11:48.761 W/dalvikvm( 9240): threadid=7: thread exiting with uncaught 
exception (group=0x4001d7d0)
11-06 13:11:48.772 E/AndroidRuntime( 9240): FATAL EXCEPTION: GLThread 9
11-06 13:11:48.772 E/AndroidRuntime( 9240): java.lang.UnsatisfiedLinkError: 
Quake2GetVersion
11-06 13:11:48.772 E/AndroidRuntime( 9240): at 
com.jeyries.quake2.Quake2.Quake2GetVersion(Native Method)
11-06 13:11:48.772 E/AndroidRuntime( 9240): at 
com.jeyries.quake2.Quake2.access$2000(Quake2.java:84)
11-06 13:11:48.772 E/AndroidRuntime( 9240): at 
com.jeyries.quake2.Quake2$QuakeRenderer.init(Quake2.java:1499)
11-06 13:11:48.772 E/AndroidRuntime( 9240): at 
com.jeyries.quake2.Quake2$QuakeRenderer.onSurfaceChanged(Quake2.java:1740)
11-06 13:11:48.772 E/AndroidRuntime( 9240): at 
android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1325)
11-06 13:11:48.772 E/AndroidRuntime( 9240): at 
android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1116)
11-06 13:11:48.776 W/ActivityManager( 2489):   Force finishing activity 
com.jeyries.quake2/.Quake2
11-06 13:11:48.780 I/        ( 2489): dumpmesg > /data/log/dumps

Original issue reported on code.google.com by djofplus...@gmail.com on 6 Nov 2010 at 8:28

GoogleCodeExporter commented 9 years ago
So it was a bad installation problem, which was fixed by copying the missing 
libquake2.so from the APK to the /data/data/com.jeyries.quake2/lib directory.

It runs great, I get 55 fps or so. Thanks!

Original comment by djofplus...@gmail.com on 7 Nov 2010 at 7:11