anode icon indicating copy to clipboard operation
anode copied to clipboard

Building For ICS 4.0.4 Runtime Error

Open No9 opened this issue 12 years ago • 8 comments

Trying to deploy on ICS to leverage USB Support. Seems to compile fine with Android SDK Tools REV 20.0.3 Android SDK Platform-tools REV 14 SDK Platform API 15

But executing I get

Cannot load library: reloc_library[1286]:  1702 cannot locate '__aeabi_ldiv0'...

In RuntimeNative.java
On-line

System.load(runtimePath + '/' + RUNTIME_LIBRARY);

From what I can glean its a link issue but I can't make much headway into it and would appreciate a pointer if you have one.

No9 avatar Oct 28 '12 21:10 No9

I've not seen that error before, but I found this:

http://glandium.org/blog/?p=2510

I've been running on ICS, but with a binary compiled with NDK r7. What version are you using?

I'll have a look with the latest NDK.

paddybyers avatar Oct 28 '12 21:10 paddybyers

NDK : android-ndk-r8b I will downgrade to r7 and see if I can progress.
If that doesn't workout then I will get into the detail of the link. Thanks

No9 avatar Oct 28 '12 21:10 No9

Downgraded to r7 but it still has the same problem :( Can you let me know the output of

$ ndk-build -v
GNU Make 3.81

and

$  gcc - v 
gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) 

No9 avatar Oct 28 '12 22:10 No9

My gcc is different (and I'm on a Mac obviously):

gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)

paddybyers avatar Oct 28 '12 23:10 paddybyers

Also tried this on a windows machine with the same error. Maybe I am missing something during the upgrade to 4.0.3.

Do you have a list of items you change for an SDK 15 4.0.3 build? Which SDK and target device are you using? SDK 10 2.3.3? Thanks Again for all your support on this.

No9 avatar Oct 29 '12 17:10 No9

Sorry for the delay. I've been using a range of SDKs - initially SDK 10 but I know people have been building and running it on later SDKs as well.

I'm running on CM7, Android 2.3.7 as my main test device, but again I know it's been running on a range of different versions from 2.3.3 upwards and including 4.1.

Are you getting that error on an emulator or device?

paddybyers avatar Oct 31 '12 09:10 paddybyers

@paddybyers I am running it on a Samsung Note v1 and Sony Ericsson Experia Arc S with the same results. I am changing the project build targets to 4.0.3 as well as using the later SDKs. Do you change the build targets for the projects or do you leave them at the original level? I have moved them up.

No9 avatar Oct 31 '12 23:10 No9

I'm getting the same issue. Don't suppose anyone found a fix? It runs fine in the emulator, it's only on the phone that I get an issue.

I'm on GCC 4.2.1 and GNU Make 3.81, if it helps.

pierscowburn avatar Mar 07 '13 23:03 pierscowburn