Skip to content

Building For ICS 4.0.4 Runtime Error #12

Open
No9 opened this Issue Oct 28, 2012 · 8 comments

3 participants

@No9
No9 commented Oct 28, 2012

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.

@paddybyers
Owner

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.

@No9
No9 commented Oct 28, 2012

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
No9 commented Oct 28, 2012

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) 
@paddybyers
Owner

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)

@No9
No9 commented Oct 29, 2012

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.

@paddybyers
Owner

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?

@No9
No9 commented Oct 31, 2012

@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.

@pierscowburn

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.