Hi there,
I'm trying to get this example worked: http://code.google.com/p/libjingle/source/browse/trunk/talk/examples/android and I'm following these instructions: http://code.google.com/p/libjingle/source/browse/trunk/talk/examples/android/README
Everything is okay, build process is succeed, libjingle_peerconnection_so.so is generated but for this line:<path/to/android-ndk-r8d>/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/arm-linux-androideabi-strip -o libs/armeabi-v7a/libjingle_peerconnection_so.so ../../../out/Debug/libjingle_peerconnection_so.soI got the following error message. "File format not recognized"
both of the build processes use hard coded java home like: /usr/local/buildtools/java/jdk7-64 when the process try to find jni.h ($JAVA_HOME/include and $JAVA_HOME/include/linux) Or it's not hard coded just I'm using it in wrong way :)
I also tried just copy the libjingle_peerconnection_so.so into libs/armeabi-v7a and in this case the apk was generated and was installed successfully on emulator but i got the following exception:
03-07 12:21:28.912: E/AndroidRuntime(1242): FATAL EXCEPTION: main
03-07 12:21:28.912: E/AndroidRuntime(1242): java.lang.NoClassDefFoundError: org.appspot.apprtc.AppRTCDemoActivity$PCObserver
03-07 12:21:28.912: E/AndroidRuntime(1242): at org.appspot.apprtc.AppRTCDemoActivity.<init>(AppRTCDemoActivity.java:68)
Hello,I tried do build the shared object, the output is a 64-bit so file (same as above), how can I build one for arm?kind regards,Micahel
1. gclient config http://libjingle.googlecode.com/svn/trunk 2. sync --force 3. set 'libjingle_java' to 1 in trunk/talk/build/common.gypi line 38 4. set correct JDK path in trunk/talk/libjingle.gyp line 61 5. export GYP_GENERATORS='ninja' 6. source ./build/android/envsetup.sh 7. gclient runhooks 8. ninja -C out/Debug libjingle_peerconnection_test_jar 9. cd talk/examples/android 10. cp ../../../out/Debug/libjingle_peerconnection.jar libs/ 11. <path/to/android-ndk-r8d>/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/arm-linux-androideabi-strip -o libs/armeabi-v7a/libjingle_peerconnection_so.so ../../../out/Debug/libjingle_peerconnection_so.so 12. ant debug 13. adb install -r bin/AppRTCDemo-debug.apk 14. adb shell am force-stop org.appspot.apprtc
Otherwise, you can open the android project in eclipse and link the java sourcefiles manually from talk/app/webrtc/java/src