Closed GoogleCodeExporter closed 9 years ago
In a custom IMSDroid derivative project - I was able to get Doubango native JNI
library to load and run on the Motorola Atrix. The Atrix has a NVidia - Tegra2
CPU. Here are the specs:
http://en.wikipedia.org/wiki/Nvidia_Tegra#Tegra_2_.28T20.2FAP20H.29
This CPU is an ARMv7 (at least the installer reports that it is) but the CPU
does NOT have SIMD (neon) support.
Here are the compile switches I used to recreate a new libtinyWRAP.so without
SIMD support:
# export CFLAGS_COMMON+=-march=$(MARCH) -mtune=cortex-a8 -mfpu=neon -DHAVE_NEON=1 \
# -D__ARM_ARCH_7__ -D__ARM_ARCH_7A__ -Wno-psabi -mfloat-abi=softfp
export CFLAGS_COMMON+=-march=$(MARCH) -mtune=cortex-a8 \
-D__ARM_ARCH_7__ -D__ARM_ARCH_7A__ -Wno-psabi -mfloat-abi=softfp
Why did Motorola pick a CPU with no NEON support? without hardware acceleration
for media and digital signal processing, 2-way video & audio apps are not going
to perform well on this device.
Also we need to figure out the FFC API's. The HTC and Samsung OEM FFC API's are
not available or don't work...
Original comment by rich.ho...@gmail.com
on 14 Mar 2011 at 8:46
I neglected to mention, the FFMPEG 3rd party libraries may need to be
recompiled as well for ARMv7 without SIMD (neon) support!
Original comment by rich.ho...@gmail.com
on 14 Mar 2011 at 8:51
Original comment by boss...@yahoo.fr
on 15 Mar 2011 at 9:22
Motorola OEM specific FFC API's defined here for Droid 2.2 and 2.3 devices:
http://developer.motorola.com/docstools/library/motorola-front-facing-camera-api
/
Didn't work the first time for me, will keep trying...
In the FFC Sample is a text file with these comments:
Any existing Android camera app can be easily modified to try out Motorola
front facing camera API. We recommend developers to download one from online.
Let's use https://marakana.com/static/courseware/android/Camera.zip as the
example to illustrate how to call the API. If you can't access the link, please
let us know on MOTODEV discussion board
(http://community.developer.motorola.com/mtrl/).
* download https://marakana.com/static/courseware/android/Camera.zip and import
it to Eclipse or MOTODEV Studio for Android (File->Import...->Existing Project
into Workspace->Select archive file").
* in AndroidManifest.xml, add the following line above the line
"</application>".
<uses-library android:name="com.motorola.hardware.frontcamera"/>
Note: You should also add android:required = "false" to the "uses-library"
element if you want your app also runs on other phones that don't have Motorola
front facing camera API. In that case, we recommend using JAVA reflection to
check the existence of the API before calling it. For details, please see
MOTODEV technical article "Motorola's Front-Facing camera API" at
http://developer.motorola.com/docstools/library/.
* In Preview.java,
- add "import com.motorola.hardware.frontcamera.FrontCamera;"
- in method surfaceCreated(), replace "camera = Camera.open();" with "camera = FrontCamera.getFrontCamera();"
- in method surfaceDestroyed(), add "camera.release();" after "camera.stopPreview();"
* load the API stub jar ff_api_camera.jar which is in SDK add-on folder "libs"
to the build path by clicking on "add library ...". For detailed steps, see
MOTODEV technical article "Motorola's Front-Facing camera API" at
http://developer.motorola.com/docstools/library/.
* install the apk to Atrix. The app can take a picture using the front facing
cameraand save it to the folder "sdcard" which is the internal SD card.
Original comment by rich.ho...@gmail.com
on 16 Mar 2011 at 1:55
Another data point for rebuilding and removing neon support from ARMv7 builds
of Doubango and 3rd party ffmpeg libraries:
Motorola Atrix, Xoom, Samsung and LG have all announced Tegra 2 CPU
utilization...
Original comment by rich.ho...@gmail.com
on 16 Mar 2011 at 4:21
[deleted comment]
Got the MOTO FFC API's to work with IMSdroid, be sure to place this element
INSIDE the <application>...</application> tags:
<application>
...
<uses-library android:name="com.motorola.hardware.frontcamera"/>
</application>
Original comment by rich.ho...@gmail.com
on 23 Mar 2011 at 9:35
Issue 204 has been merged into this issue.
Original comment by boss...@yahoo.fr
on 25 Mar 2011 at 9:12
Issue 207 has been merged into this issue.
Original comment by boss...@yahoo.fr
on 5 Apr 2011 at 6:55
I copied "libs/armeabi/libtinyWRAP.so" to "libs/armeabi-v7a/libtinyWRAP.so" but
still it is not working
I have attached my log file here
Original comment by sahadeva...@gmail.com
on 7 Apr 2011 at 4:29
Attachments:
FYI -- the attached file appears to only have one IMSDroid statement in it and
process 1478 doesn't appear to IMSDroid:
http://code.google.com/p/imsdroid/issues/attachmentText?id=197&aid=-276543906067
0658953&name=logfileimsdroid&token=338d7f2622b8a70e686dbfc96423c621
Also be aware that BOTH ...armeabi-v7a\libtinyWRAP.so and
...armeabi\libtinyWRAP.so files checked into IMSDroid version 1 tree (file
revision #366) are identical, they are both ARMv7a with neon support. Copying
libtinyWRAP.so from the armeabi (v5) folder to armeabi-v7a will fail.
What I did to get IMSDroid version 1 working on the Moto Atrix is:
1. Delete the armeabi-v7a tree altogether, just leave the armeabi\ folder
2. Compile an explicit libtinyWRAP.so for ARMv5, just dropping NEON from the compile switches for ARMv7a was not enough, their are static 3rd party codecs that ALSO have to be linked in as ARMv5, it's safer to just build libtinyWRAP.so for ARMv5 afresh
- you can try mine, but I am not an IMSDroid maintainer, I am just a regular developer like you, Doubango/IMSDroid team can not support my private builds
3. copy the attached libtinyWRAP_armv5.so to ...\lib\armeabi folder
4. If desired - add the changes described earlier for MOTO FFC support for Java reflection to dynamically load the com.motorola.hardware.frontcamera.FrontCamera class
5. Rebuild IMSDroid
If this doesn't work for you, I suggest you wait till IMSDroid version 2
becomes public. That is where I believe the IMSDroid/Doubango team plans to
support devices based on Tegra2 (Atrix, Xoom and some Samsung devices)...
Original comment by rich.ho...@gmail.com
on 7 Apr 2011 at 12:35
Attachments:
Issue 212 has been merged into this issue.
Original comment by boss...@yahoo.fr
on 12 Apr 2011 at 11:06
FYI, 2.x preview still does not open on Motorola XOOM
Original comment by notfixin...@gmail.com
on 22 Apr 2011 at 10:14
The same issue is found in Acer Iconia Tab A500 running Android 3.0.1
Attached is the Logcat.
Original comment by sarfaraz...@googlemail.com
on 6 Jun 2011 at 6:56
Attachments:
The pre-built versions of IMSDroid won't work on NVidia-Tegra2 based CPU
devices (Mot-Xoom, Mot-Atrix, Acer-Iconia, TMO-G2X...), my post on April 7
explains the work around. For IMSDroid 2.x to work on Tegra2 devices, you need
to rebuild Doubango 2.x, Android NGN stack and IMSDroid 2.x for an ARMv5 target
end explicitly remove any ARMv7 binary folder).
NVidia-Integra is NOT an ARMv7a compliant CPU. The CPU designers left out the
'required' neon instruction set which makes the Android operating system
install the wrong the binaries (ARMv7a is what gets installed and will not work
on Tegra2 based devices).
Original comment by rich.ho...@gmail.com
on 6 Jun 2011 at 7:14
Will this make it easier for the IMSDroid devs to provide a solution for this
issue?:
http://android-developers.blogspot.com/2011/07/multiple-apk-support-in-android-m
arket.html
Original comment by mukkenb...@gmail.com
on 22 Jul 2011 at 8:27
Issue 279 has been merged into this issue.
Original comment by boss...@yahoo.fr
on 7 Sep 2011 at 9:16
Issue 162 has been merged into this issue.
Original comment by boss...@yahoo.fr
on 21 Nov 2011 at 6:27
Issue 306 has been merged into this issue.
Original comment by boss...@yahoo.fr
on 21 Nov 2011 at 6:28
Ran into the same bug, nVidia Tegra 2 CPUs don't have NEON instruction set.
Therefore, the tinyWrap library should be compiled for armv7 with without NEON
option.
Original comment by maksa...@cs.ubc.ca
on 2 Feb 2012 at 11:03
Revision r479 contains a workaround.
Here is an explanation on how to enable it:
http://code.google.com/p/imsdroid/source/browse/branches/2.0/imsdroid/src/org/do
ubango/imsdroid/Engine.java?spec=svn479&r=479#60
Original comment by boss...@yahoo.fr
on 20 Feb 2012 at 2:50
Issue 332 has been merged into this issue.
Original comment by boss...@yahoo.fr
on 10 Apr 2012 at 8:17
Issue 318 has been merged into this issue.
Original comment by boss...@yahoo.fr
on 10 Apr 2012 at 8:20
Issue 355 has been merged into this issue.
Original comment by boss...@yahoo.fr
on 6 Jun 2012 at 7:44
Issue 351 has been merged into this issue.
Original comment by boss...@yahoo.fr
on 6 Jun 2012 at 7:44
Issue 360 has been merged into this issue.
Original comment by boss...@yahoo.fr
on 11 Jun 2012 at 7:41
Should be fixed in 2.0.499
Original comment by boss...@yahoo.fr
on 21 Jun 2012 at 6:11
Comment 27 by project member boss...@yahoo.fr, Jun 20, 2012
Should be fixed in 2.0.499
===========================================================
I saw 2.0.498 fix this issue,install 2.0.498 to moto XT910.Start to
register,but it app doesn't launch,then closes.Does there have any other
problems?
Could you solve this issue,I am waiting...
Original comment by lehu...@gmail.com
on 9 Jul 2012 at 2:58
@lehui.B
It's clearly said that the issue is fixed in 2.0.499 (NOT IN 498).
Original comment by boss...@yahoo.fr
on 9 Jul 2012 at 4:14
Hi All,
I am getting these issues with Imsdroid...
Can you all please fix these...
07-02 15:08:55.167: D/org.doubango.ngn.services.impl.NgnSipService(323):
register()
07-02 15:08:55.167: D/org.doubango.ngn.services.impl.NgnSipService(323):
realm='sip: '85.138.37.223', impu='sip:1@85.138.37.223', impi='1'
07-02 15:08:55.176: D/org.doubango.ngn.services.impl.NgnSipService(323): STUN=no
07-02 15:08:55.176: D/org.doubango.ngn.services.impl.NgnSipService(323):
pcscf-host='85.138.37.223', pcscf-port='5060', transport='UDP', ipversion='ipv4'
07-02 15:08:55.176: D/org.doubango.ngn.services.impl.NgnNetworkService(323):
10.0.2.15
07-02 15:08:55.176: D/org.doubango.ngn.services.impl.NgnNetworkService(323):
127.0.0.1
07-02 15:08:55.176: D/org.doubango.ngn.services.impl.NgnSipService(323): Local
IP='10.0.2.15'
07-02 15:08:55.185: D/org.doubango.ngn.services.impl.NgnSipService(323): TLS -
pvk='null' pbk='null' ca='null' verify=false
07-02 15:08:55.185: D/org.doubango.ngn.services.impl.NgnNetworkService(323):
acquireNetworkLock()
07-02 15:08:55.195: D/org.doubango.ngn.services.impl.NgnNetworkService(323):
netType=0 and netSubType=3
07-02 15:08:55.217: D/org.doubango.ngn.services.impl.NgnSipService(323): Stack
started
07-02 15:08:55.229: D/org.doubango.ngn.services.impl.NgnSipService(323):
OnDialogEvent (Dialog connecting,1)
07-02 15:08:55.255: D/org.doubango.ngn.services.impl.NgnSipService(323):
OnDialogEvent ((un)REGISTER request successfully sent.,1)
07-02 15:08:55.255: D/org.doubango.imsdroid.Engine(323): showAppNotif
Original comment by rajeshai...@gmail.com
on 2 Jul 2013 at 9:45
Hi All,
I am getting this issues with Imsdroid when going to create other app using this code ...
please help to fix these issues...
07-19 18:46:19.568: E/AndroidRuntime(14088): FATAL EXCEPTION: main
07-19 18:46:19.568: E/AndroidRuntime(14088):
java.lang.ExceptionInInitializerError
07-19 18:46:19.568: E/AndroidRuntime(14088): at
org.doubango.imsdroid.MyMainClass.<init>(MyMainClass.java:56)
07-19 18:46:19.568: E/AndroidRuntime(14088): at
java.lang.Class.newInstanceImpl(Native Method)
07-19 18:46:19.568: E/AndroidRuntime(14088): at
java.lang.Class.newInstance(Class.java:1130)
07-19 18:46:19.568: E/AndroidRuntime(14088): at
android.app.Instrumentation.newActivity(Instrumentation.java:1061)
07-19 18:46:19.568: E/AndroidRuntime(14088): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2260)
07-19 18:46:19.568: E/AndroidRuntime(14088): at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2403)
07-19 18:46:19.568: E/AndroidRuntime(14088): at
android.app.ActivityThread.access$600(ActivityThread.java:154)
07-19 18:46:19.568: E/AndroidRuntime(14088): at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1270)
07-19 18:46:19.568: E/AndroidRuntime(14088): at
android.os.Handler.dispatchMessage(Handler.java:99)
07-19 18:46:19.568: E/AndroidRuntime(14088): at
android.os.Looper.loop(Looper.java:137)
07-19 18:46:19.568: E/AndroidRuntime(14088): at
android.app.ActivityThread.main(ActivityThread.java:5302)
07-19 18:46:19.568: E/AndroidRuntime(14088): at
java.lang.reflect.Method.invokeNative(Native Method)
07-19 18:46:19.568: E/AndroidRuntime(14088): at
java.lang.reflect.Method.invoke(Method.java:525)
07-19 18:46:19.568: E/AndroidRuntime(14088): at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:739)
07-19 18:46:19.568: E/AndroidRuntime(14088): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:555)
07-19 18:46:19.568: E/AndroidRuntime(14088): at
dalvik.system.NativeStart.main(Native Method)
07-19 18:46:19.568: E/AndroidRuntime(14088): Caused by:
java.lang.NullPointerException
07-19 18:46:19.568: E/AndroidRuntime(14088): at
org.doubango.ngn.NgnEngine.<clinit>(NgnEngine.java:75)
07-19 18:46:19.568: E/AndroidRuntime(14088): ... 16 more
Original comment by amardeep...@gmail.com
on 19 Jul 2014 at 1:35
Original issue reported on code.google.com by
rich.ho...@gmail.com
on 14 Mar 2011 at 3:29