Zhanchang / imsdroid

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

libtinyWRAP.so can not works #109

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I checkout doubango from svn
compile it step by step like wiki
http://code.google.com/p/imsdroid/wiki/Building_Source

but a deploy the libtinyWRAP.so to simulator.
it not works fine.

I get error:
No JNI_OnLoad found in /data/data/org.doubango.imsdroid/lib/libtinyWRAP.so 
0x43735690
+++ not scanning '/system/lib/libwebcore.so' for 'swig_module_init' (wrong CL)
+++ not scanning '/system/lib/libmedia_jni.so' for 'swig_module_init' (wrong CL)
Exception Ljava/lang/NoSuchMethodError; thrown during 
Lorg/doubango/tinyWRAP/tinyWRAPJNI;.<clinit>
Exception Ljava/lang/ExceptionInInitializerError; thrown during 
Lorg/doubango/imsdroid/Services/Impl/ServiceManager;.<clinit>

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?

Please provide any additional information below.

Original issue reported on code.google.com by kernel...@gmail.com on 23 Nov 2010 at 2:15

GoogleCodeExporter commented 9 years ago
- "No JNI_OnLoad found in..." is not an error but a debug message.
- Both "libwebcore.so" and "libmedia_jni.so" are part of Android system and 
have nothing to do with IMSDroid. You can safely ignore these debug messages.

The two last lines (errors) are caused by IMSDroid. It's hard for me to say why 
you have these problems wihtout more information.
Do you have the same problem with the official library?
Which SVN revision (IMSDroid and Doubango) are you using?
What is the Android OS version and API level?
Are you building with Neon optimizations?

Original comment by boss...@yahoo.fr on 23 Nov 2010 at 2:29

GoogleCodeExporter commented 9 years ago
Thanks for your reply first
The official lib is works fine,but the it not support handler INFO method.So I 
need modify source to handler INFO.
IMSDroid svn revision is 323,Doubango is 507
I using android Api level 3,simulator version is 1.5
the Neon optimization was used in compile phrase

Thanks again!

Original comment by kernel...@gmail.com on 23 Nov 2010 at 3:49

GoogleCodeExporter commented 9 years ago
follow is the other error info:

11-22 21:45:53.108: ERROR/AndroidRuntime(7295): Uncaught handler: thread main 
exiting due to uncaught exception
11-22 21:45:53.127: ERROR/AndroidRuntime(7295): 
java.lang.ExceptionInInitializerError
11-22 21:45:53.127: ERROR/AndroidRuntime(7295):     at 
org.doubango.imsdroid.Main.<init>(Main.java:127)
11-22 21:45:53.127: ERROR/AndroidRuntime(7295):     at 
java.lang.Class.newInstanceImpl(Native Method)
11-22 21:45:53.127: ERROR/AndroidRuntime(7295):     at 
java.lang.Class.newInstance(Class.java:1472)
11-22 21:45:53.127: ERROR/AndroidRuntime(7295):     at 
android.app.Instrumentation.newActivity(Instrumentation.java:1097)
11-22 21:45:53.127: ERROR/AndroidRuntime(7295):     at 
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2186)
11-22 21:45:53.127: ERROR/AndroidRuntime(7295):     at 
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2284)
11-22 21:45:53.127: ERROR/AndroidRuntime(7295):     at 
android.app.ActivityThread.access$1800(ActivityThread.java:112)
11-22 21:45:53.127: ERROR/AndroidRuntime(7295):     at 
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1692)
11-22 21:45:53.127: ERROR/AndroidRuntime(7295):     at 
android.os.Handler.dispatchMessage(Handler.java:99)
11-22 21:45:53.127: ERROR/AndroidRuntime(7295):     at 
android.os.Looper.loop(Looper.java:123)
11-22 21:45:53.127: ERROR/AndroidRuntime(7295):     at 
android.app.ActivityThread.main(ActivityThread.java:3948)
11-22 21:45:53.127: ERROR/AndroidRuntime(7295):     at 
java.lang.reflect.Method.invokeNative(Native Method)
11-22 21:45:53.127: ERROR/AndroidRuntime(7295):     at 
java.lang.reflect.Method.invoke(Method.java:521)
11-22 21:45:53.127: ERROR/AndroidRuntime(7295):     at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:782)
11-22 21:45:53.127: ERROR/AndroidRuntime(7295):     at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540)
11-22 21:45:53.127: ERROR/AndroidRuntime(7295):     at 
dalvik.system.NativeStart.main(Native Method)
11-22 21:45:53.127: ERROR/AndroidRuntime(7295): Caused by: 
java.lang.ExceptionInInitializerError
11-22 21:45:53.127: ERROR/AndroidRuntime(7295):     at 
org.doubango.tinyWRAP.ProxyVideoProducer.registerPlugin(ProxyVideoProducer.java:
89)
11-22 21:45:53.127: ERROR/AndroidRuntime(7295):     at 
org.doubango.imsdroid.Services.Impl.ServiceManager.<clinit>(ServiceManager.java:
72)
11-22 21:45:53.127: ERROR/AndroidRuntime(7295):     ... 16 more
11-22 21:45:53.127: ERROR/AndroidRuntime(7295): Caused by: 
java.lang.NoSuchMethodError: SwigDirector_DDebugCallback_OnDebugInfo
11-22 21:45:53.127: ERROR/AndroidRuntime(7295):     at 
org.doubango.tinyWRAP.tinyWRAPJNI.swig_module_init(Native Method)
11-22 21:45:53.127: ERROR/AndroidRuntime(7295):     at 
org.doubango.tinyWRAP.tinyWRAPJNI.<clinit>(tinyWRAPJNI.java:454)
11-22 21:45:53.127: ERROR/AndroidRuntime(7295):     ... 18 more

Original comment by kernel...@gmail.com on 23 Nov 2010 at 6:48

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Could you please update both IMSDroid and doubango to the latest SVN revisions?
According to the log your library doesn't contains all functions or the 
namespace is invalid. This could only happen if you change the java code or the 
wrappers. Could you confirm that only tinyWRAP.so has changed?

Original comment by boss...@yahoo.fr on 23 Nov 2010 at 7:13

GoogleCodeExporter commented 9 years ago
yes,but I run the swig script autogen.sh
So I think it's changed the java codes.
i had remove old version and re-checkout doubango from svn

Original comment by kernel...@gmail.com on 23 Nov 2010 at 8:21

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
You should not run the SWIG script unless you have modified the wrappers.
If I understand, you would like to add support for SIP INFO message? If yes, 
the first step is to modify the ANSI-C code. As startup, you can see how the 
OPTIONS dialog is implemented 
(http://code.google.com/p/doubango/source/browse/trunk/tinySIP/src/dialogs/tsip_
dialog_options.c). In the second step, create API functions to send and receive 
INFO messages(e.g. 
http://code.google.com/p/doubango/source/browse/trunk/tinySIP/src/api/tsip_api_o
ptions.c). In the last step, change the SWIG wrappers.

Original comment by boss...@yahoo.fr on 23 Nov 2010 at 8:48

GoogleCodeExporter commented 9 years ago
okay,Thanks again
I will try it out

Original comment by kernel...@gmail.com on 23 Nov 2010 at 8:53

GoogleCodeExporter commented 9 years ago
I had checkout the lasted version of doubango and compiled it,but it isn't 
works.
So can you tell me that which version can works fine?
such as doubango revision xxx,imsdroid revsion xxx.
Thanks in advance

follow is our problem
1. checkout doubango sdk from svn
2. compile doubango like wiki build source article,NEON option can not work.
get unrecognized command line option -Wno -psabi
3. copy the libtinyWRAP.so(doubango/android-projects/output) to simulator
4. run imsdroid,then the error occur

Dev env
NDK:android ndk r4
SDK:android sdk windows
EABI:arm-eabi-4.2.1

Original comment by kernel...@gmail.com on 24 Nov 2010 at 5:15

GoogleCodeExporter commented 9 years ago
As explained in the wiki page NEON option require NDKr4b or later. This is why 
you have the error.
It's not mandatory to enable NEON unless you want to make high quality video 
calls (H264/Theora up to VGA) or use iLBC codec.
In all case the Android emulator doesn't support armv7-a.
You can use: IMSDroid revision 337 and doubango revision 526.

Original comment by boss...@yahoo.fr on 24 Nov 2010 at 6:13

GoogleCodeExporter commented 9 years ago

Original comment by boss...@yahoo.fr on 1 Dec 2010 at 6:31